GeeCON Prague 2014*
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: 61306
    
  66

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]
 
 
subject: blob object