This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
 
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