This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 63208
    
  69

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: blob object
 
It's not a secret anymore!