 <p>I wouldn't store images in the database, grows you database way too big. I would make references to the images on the file system. Database reserved for meta data on the images in question.</p> <p>Also curious why you don't just opt for an open source image gallery to start with like ZenPhoto? And build on that for the customer?</p>