It's not a secret anymore!
The moose likes Servlets and the fly likes blob object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "blob object" Watch "blob object" New topic

blob object

raj baig
Ranch Hand

Joined: Jul 11, 2006
Posts: 96
i am storing a jpg file as blob in mysql db.
i want to display it in the browser.
can you tell me how to display this.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Use a servlet to stream the data to the browser after setting the appropriate headers. See previous topics in the Servlets forum as this has been asked many times.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: blob object
It's not a secret anymore!