December 8, 201411 yr 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
January 8, 201511 yr 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>"
Create an account or sign in to comment