File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending image from servlet using standard java io

 
Inderpal Singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to send an image (gif file) from servlet to client browser using standard java io. I have a file object with me, which is nothing but a complete path of image. I am setting the contentType to image/gif and have tried so many things but didn't get through. So thought of writing in the forum.

I would appreciate if someone provide me answer for the above question as it is little bit urgent. Thanks in advance!

Cheers,
Inderpal Singh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this example of sending image data kindly provided by Ben Souther.
Bill
 
Inderpal Singh
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill. I will try and post if I face any problems.....

Regards,
Inderpal Singh
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic