wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "blob object" Watch "blob object" New topic
Author

blob object

raj baig
Ranch Hand

Joined: Jul 11, 2006
Posts: 96
hi,
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
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: blob object
 
Similar Threads
clob and blob
Retrieving blob object
Reading and Displaying Image from database
Display image in JSP
Display pictures in an applet