You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
My friend and I were having an interesting discussion, why use MySQL to store images?
I have been working on a set of PHP scripts for a project, part of this project requires that the images be sotred in MySQL rather than written to the drive.
Some scripts, create a new directory and write the file to the disk, while others like mine, store it as a BLOB in MySQL.
I think it makes migration easier, and it makes it easier to control who can and cannot view a set of images. In some cases, like remote hosting you may not have wrote permissions to the drive or scripts may not be able to create new directories.
Can anyone else think of any advantages to storing images in a database rather than as a hard file? |
|
Posted On: 08/19/2009 12:09AM | View STGill's Profile | # |