aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "GIF File Download" Watch "GIF File Download" New topic
Author

GIF File Download

RNAGESHK
Greenhorn

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 :
<script>
var graphicURL = "GRAPHIC URL";
document.lcation.href = graphicURL;
</script>
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!
Nagesh.
 
Don't get me started about those stupid light bulbs.
 
subject: GIF File Download