Link to home
Start Free TrialLog in
Avatar of matchz
matchz

asked on

Preview JPG File.

Hi experts,

I would like to create a web album with JSP. My idea is about I put all my d-cam photos in a directory. At the same time, I will put an index.jsp in that directory.

When my friends are accessing the directory, they will see the image preview. They can see the original image when they click it.

I would like to know how can I generate a image preview (thumbnail) with Java?

If possible, please provide few lines of code for reference.
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elpp
elpp

Or, instead of re-inventing the wheel, take a look at this project:

http://sourceforge.net/projects/keptar/

Avatar of matchz

ASKER

Hi girionis, the sample code in the link is exactly what i want. Thank you very much.

elpp, for your suggestion, it also helps me a lot. It will save me a lot of time if i can deploy it successfully, but I  find it is quite bugs. I cannot login even now.

= P
 Thank you :-)