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 Displaying images and thumbnails directly from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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