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

