my dog learned polymorphism
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

Getting a Image from a Blob using Servlet

Karthik Kris

Joined: Mar 16, 2006
Posts: 7

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

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Getting a Image from a Blob using Servlet
It's not a secret anymore!