Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

blob object

 
raj baig
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic