Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GIF File Download

 
RNAGESHK
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic