servlet that produces thumbnails

Hi there,

Does anyone know how to create thumnails and display them in a results page?

I ve created a search servlet that enables you to search documents and images on a server and then displays the results in a webpage.

I ve basically been stuck trying to create thumbnails of the images and displaying them within the HTML.

however i found a thumbnail class that creates thumnails of the image and outputs the thumbnail to a file using the fileoutput stream.

what someone else suggested is that i write a class that takes the location of the file and

returns an outputstream with the image info to the servlet.

I am not exactly sure how to do this. Do I pass a HttpServletResponse object to the new class and then return it to the main servlet somehow?

Or another suggestion was to create the HTML with the url to a tumbnail servlet in an image tag?

ie <img SRC="/servlets/Serlvetlocation?location="blah.txt">

I doubt this would work!

Anyone have any ideas?

Thanks a million

Dave

[1086 byte] By [davejet] at [2007-9-26 1:48:11]
# 1
Dave,I don't have a solution for you, but I too am looking for a thumbnail creating class. Can you share the one you found?edgar
edgartu at 2007-6-29 2:48:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
> <img SRC="/servlets/Serlvetlocation?location="blah.txt">> I doubt this would work!Actually, that works just fine. :-)The only requirement is that the servlet sets content-type to "image/gif", "image/png" or whatever.
trejkaz at 2007-6-29 2:48:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...