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

Display Image from database using Struts 2

 
chain singh
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,


any one please give the right procedure to display image which is came from database in streams. I just want to display it in jsp page.


thanks in advance
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts has a Stream Result you can put in the configuration file, then you write the image directly to a InputStream in your action
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic