File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

Display images in a JSP page

 
Chatura Dilan
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33700
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Chatu,
You could save the images to disk and then have the img tags link to them.
 
Chatura Dilan
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic