File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes GIF File Download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "GIF File Download" Watch "GIF File Download" New topic

GIF File Download


Joined: Aug 20, 2002
Posts: 3
Dear folks,
I have a question!
How can we download a GIF file from server on Load of an HTML Document.
I am getting a stream for that Graphic from the server. Also I am invoking this url (of stream) in a IFrame.
Main page contains an Iframe. On click of a button in the Main Page, IFrame will be targetted to get the Graphic in it. as a response in that IFrame, I am getting the following :
var graphicURL = "GRAPHIC URL";
document.lcation.href = graphicURL;
graphicURL is the ultimate GRAPHIC stream which comes from the Database as a Blob with proper mime-type. I am able to download all of other formats. (JPG and JPEGs are shown in another pane with a third-part tool component.) Only with GIFs I got stuck.
I have seen in Yahoo, they are able to download GIF attachments straightly with a window dialog for download. I want it in the same way.
I appreciate if anybody could help me out regd this.
Thanks alot!
I agree. Here's the link:
subject: GIF File Download
jQuery in Action, 3rd edition