aspose file tools*
The moose likes Struts and the fly likes Display images in a JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Display images in a JSP page

Chatura Dilan
Ranch Hand

Joined: Feb 13, 2007
Posts: 44
I have created an ArrayList which contains Member objects. Each Member object has an attribute called picture (Data type is byte[]).
I need to show all pictures in one JSP page and I like to use <img> tags for that.
How can I do that? Any ideas
Thanks.


-----------------------------------<br />If at first you don't succeed, try again without cry. Everytime You will learn what not to do next time, untill you succeed.<br /> <br />SCJP 1.4 (78%)<br />SCWCD 5 (95%)<br />BICT - UCSC
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30510
    
150

Chatu,
You could save the images to disk and then have the img tags link to them.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Chatura Dilan
Ranch Hand

Joined: Feb 13, 2007
Posts: 44
Hello Jeanne,
could we do that without saving to the disk? or what is the best place to save?
[ April 14, 2007: Message edited by: Chatu Dil ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61196
    
  66

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display images in a JSP page