> You really don't want to do this. Store the files on the file
> system and keep data about them in the database instead. Use a
> rewrite map or, better, a series of rewrite rules to serve the files
> directly from your web server instead of using passthrough. That
> will bypass your problem entirely and be much more scalable.
>
There are good reasons for storing images in a BLOB column in the
database.
There are also good reasons for storing images on the filesystem and
referencing them by filename.
You shouldn't make unequivocal statements that either solution is
_always_ better or _always_ worse, without understanding the
application that the developer is designing.
Thirty lashes with a wet noodle! :-)
Regards,
Bill Karwin
没有评论:
发表评论