This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GIF File Download

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 :
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!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic