aspose file tools
The moose likes JSP and the fly likes Getting a Image from a Blob using Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
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: 56150
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://jrebel.com/download
 
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
Storing images to database through JDBC
Image Read from Blob
Images stored in the database