Msg#: 3704208 posted 7:36 am on Jul 22, 2008 (gmt 0)
I'm currently building a new website which will have a number of image galleries. Over time more and more galleries will be added. What will be be the best way to store the image JPG files? Just as plain JPG files on the server in a directory for each gallery or as blobs in the MySQL database in the table I have for each gallery. What are the advantages/disadvantages of each method?
Now I use one table as index for all galleries holding a title, description, keyframe image name and image directory per gallery and for each gallery I have a table in which each row contains the names of the thumbnail and large image files and a caption.
Msg#: 3704208 posted 2:22 am on Jul 23, 2008 (gmt 0)
How many image Galleries will be added, and how big will the Galleries be? Will the site need to grow to the point where will be multiple web servers serving it up? Or is it for example for a simple gallery of pictures for family and friends?
Msg#: 3704208 posted 9:22 am on Jul 23, 2008 (gmt 0)
Thanks everyone for the response! It is a small website for a regional sporting club with about 100 members. So the number of visitors won't be high and the galleries will contain pictures of tournaments and events. Each with, I guess, from 10 to at most 100 pictures. For me it is my fist attempt to make extensive use of a database and MySQL. In the past I mainly used flat files for storage. For now I will go for the option to store the images on the server and store the filenames in the DB.