Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending image from servlet using standard java io

 
Inderpal Singh
Greenhorn
Posts: 2
  • 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: 13074
6
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic