|
Posted by Jussist on 06/27/07 09:16
> Best practice: dont use a database to store images. Just store image
> references and metadata.
This is not as simple as that - both approaches have their advantages,
which you can google easily. There are cases where both are better
approach - I usually store them to filesystem.
One point just came to my mind is a case where an application running
on a server needs to be moved to another server. In php-applications
the filesystem -stored files are usually easily found - but if one
expects that software installation and database transfer would have
the application (and content) fully running, this would not be the
case if files would be in filesystem, they would need to be
transferred separately. If the files would be stored to the database,
the db could be burned to cd/dvd, and imported - no need to seek for
the files according to their location. But this all of course depends.
Just some thoughts, on tea-daze.
--
Jussi
Deep abstraction kills strong typing.
http://disczero.com
http://naamio.net
http://hoffburger.com
Navigation:
[Reply to this message]
|