aspose file tools*
The moose likes Struts and the fly likes Display Image from database using Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display Image from database using Struts 2" Watch "Display Image from database using Struts 2" New topic
Author

Display Image from database using Struts 2

chain singh
Ranch Hand

Joined: Feb 28, 2012
Posts: 117
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

Joined: Oct 29, 2001
Posts: 8997
    
    9

Struts has a Stream Result you can put in the configuration file, then you write the image directly to a InputStream in your action


[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display Image from database using Struts 2