Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dispalying image in a particular cell  RSS feed

 
Steve Grant
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
I have a jsp which displays the data in tabular format.Now one column cells displays the images . Now i have stored the image in the database in the form of binary . I am able to get the bytes for the image from the table but how should i display this image in cells in my jsp.
regards,
Siddharth k
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a browser builds a page it makes a separate request for images. I suggest you make an all HTML mockup of what you want the page to look like. When you get it looking right, work on converting it to JSP.
Serving an image can't be done by a JSP since JSP are optimized for building pages out of characters.
This image problem has been discussed A LOT on this forum, so browse around.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!