wood burning stoves 2.0*
The moose likes JSP and the fly likes Getting a Image from a Blob using Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Getting a Image from a Blob using Servlet

Karthik Kris
Greenhorn

Joined: Mar 16, 2006
Posts: 7
Hi

We have images stored in a Blob in Oracle Database. I was able to retrieve the bytes of the images from the blob. However in the response output I get a screen of binary characters.

I tried r
response.setContentType("image/gif");

as well. In this scenario it shows me a image place holder on the screen. No image is displayed here as well.

Bytes are read fine from the database. I did verify this.

I am using Oracle application server 10 g env.


Thanks
Karthik
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting a Image from a Blob using Servlet
 
Similar Threads
Inserting image into the oracle database
how to display images on JSP in struts2
Images stored in the database
Image Read from Blob
Storing images to database through JDBC