File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 8866
    
    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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display Image from database using Struts 2