wood burning stoves 2.0*
The moose likes Struts and the fly likes Displaying images and thumbnails directly from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying images and thumbnails directly from database" Watch "Displaying images and thumbnails directly from database" New topic
Author

Displaying images and thumbnails directly from database

Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
I couldn't find many good examples on displaying images directly from the database (especially related to resizing), so I figured I'd post some code snips here to save people in the future some time:

ImageTools.java


DisplayImageAction.java:


DisplayThumbnailAction:
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Thanks for posting...could be useful. Does this code use just standard Java libraries for the image manipulation?

- Brent
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
Yes, it is standard java libraries.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying images and thumbnails directly from database
 
Similar Threads
Need help ImageToCode
how to pass the image from servlet to jsp
Image to BufferedImage converter
lagging on loading image
works on WinXP jdk 1.6 but not Linux jdk 1.5