• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Dispalying image in a particular cell

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic