• Post Reply Bookmark Topic Watch Topic
  • New Topic

sending byte[] from controller to JSP

 
Saurabh Vohra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using this piece of code in my controller...sending byte[] stream to my JSP part




in my jsp




I want to see image on my page but its not displaying. what is the easiest way to display image?
 
Paul Clapham
Sheriff
Posts: 21875
36
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with HTML, which is what you are producing. The easiest (and in fact only) way to display an image in an HTML page is to include a link to that image. You certainly can't put an array of bytes in your HTML and hope that it will be turned into an image -- HTML just doesn't work that way.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!