Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3607 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi Everyone,

 

I have an animated GIF (spinner icon) in a web viewer that I display while running a script to show the system is busy. One of the script steps inserts a file as a reference. This step takes about 5 to 10 seconds to complete. I have noticed that if the file path uses an address with a mapped drive it is much quicker than a UNC address, unfortunately I need to use a UNC file path. When the script gets to the insert file as reference it stops the animated gif and causes the web viewer to go blank until the insert file step completes. Any ideas on a fix to keep the GIF animated while the insert file as reference completes or any other solutions?

 

Thanks for your help

 

Daniel

  • 5 weeks later...
Posted

Hi there,

 

I tried doing something similar with a solution a while back. What I ended up doing, and turned out to be a clever trick was this:

 

-Take your animated GIF and convert it to base64 (I used this website: http://www.base64-image.de/)

-Create a web viewer object and insert the HTML below as your web address, substituting your_base_64_data_goes_here

 

I've found this to be a quick way to accomplish this, and haven't noticed any obvious performance degradation as a result.

"data:text/html,
<html>
<head>
<style type="text/css">
body {border:none; text-align: center;  margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;
    padding: 0; background-color:#b3b4b4;}
</style>
</head>

<body>


<img src="data:image/gif;base64,your_base_64_data_goes_here">




</body>

</html>"

This topic is 3607 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.