upload2/image.jsp can be use to retrieve images from the database.  It takes two URL parameters, image_id and size.  An example get an image with image_id 6 and size thumbnail would be:

proj/upload2/image.jsp?image_id=6&size=thumbnail