• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

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.
  • 2
1 Solution
Or, instead of re-inventing the wheel, take a look at this project:


matchzAuthor Commented:
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 :-)

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now