wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 8877
    
    8

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display Image from database using Struts 2