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.

Welcome!

I am a software developer from Calgary, Canada. I like to dabble in open-source software when not slinging Java at my day job.

You're currently only seeing the public areas of my site. For access to personal photos, videos, and blog posts, you'll need to login.

Around the Web

Recent Blog Posts

tech blog%> Google releases App Inventor framework
2010-07-12 at 12:51 pm
play blog%> Why Geo-Exchange Heating?
2010-06-21 at 12:52 pm
play blog%> Why Solar Hot Water?
2010-06-21 at 12:51 pm
play blog%> Why build Green?
2010-06-21 at 12:49 pm
play blog%> Basement development
2010-06-10 at 09:18 pm
play blog%> Welcoming Connor Davis
2010-05-14 at 11:37 am
play blog%> Mechanical systems and siding progressing
2010-04-21 at 07:34 pm
play blog%> Feds shut down housing efficiency program
2010-04-04 at 01:11 pm

Recent Comments

Listening To