Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

S2: how to show the image on the JSP page -using inputStream / bytes[]  RSS feed

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to know what should be the JSP code to present an image. The image comes as a inputStream data (or bytes[]) from a BLOB

my action looks like this:



Thank you!
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here the class that I use for streaming in one project. (Ignore the extended class TiltoBase...)


Should be pretty self-explanatory with the JavaDocs.
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, what would you put in the JSP page?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the Javadocs of the code that was posted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!