Daniel C Posted December 8, 2014 Posted December 8, 2014 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
Matt_ Posted January 8, 2015 Posted January 8, 2015 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>"
Recommended Posts
This topic is 3953 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 accountSign in
Already have an account? Sign in here.
Sign In Now