Jump to content

Insert as Reference Stops Animated GIF


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

Recommended Posts

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

Link to comment
Share on other sites

  • 5 weeks later...

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>"
Link to comment
Share on other sites

This topic is 3368 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.