Saving GIFs on the Client Machine
-
Hi, My application is a HTA(HTML Application), which, runs on the Client side even when the Server cannot respond to the requests of the Client. To enable this application to run on the Client machine(during periods when Server does not respond), i need to have GIFs pertaining to the application, on the Client. So, when the Client connects to the Server, i want to save GIFs on the Client machine. I used the XMLHTTP object to get the GIF data in the binary form into a String.Now, i need to take this data and dump into a file, with extension .GIF FileSystemObject does not support Binary and Random access. I need to accomplish this using JavaScript. Can you give me any suggestions on how to proceed, regarding this? var objHTTP=CreateObject("Microsoft.XMLHTTP"); var objXML=CreateObject("Microsoft.XMLDOM"); objHTTP.open("GET", "http://vinodks/error.gif", false); objHTTP.send(); ' The binary data of the image is obtained in strFile var strFile=objHTTP.responseBody; I need to now dump the contents of strFile(which is binary data) into a file and store it as GIF. Vinod K S