Photo Servlets
These servlets can be used to allow people to upload photos (JPEG or GIF) to your website. The full-sized photos are saved along with thumbnails and page sized versions created with Unix 'convert'. The viewing servlet can read the files, but the web server doesn't serve them. The servlet decides if, for a given photo, the viewer has the access level required to view it. If so, it writes out the photo as a stream to the web browser.
Don't expect these to work right away for you. Take a look at the code and tweak it for your site. I've included the code for handling uploads and displaying photos to users based on their level of access.
Old code that stored photos as blobs in database. I moved the new code above as this gets way too slow with more than a couple of hundred photos.



















