From Newsgroup: comp.databases.mysql
On 10/30/2019 3:51 PM, ^Bart wrote:
Hi guys,
I'd like to know your opinion about how to store in a MySQL db a link to some user's images!
I thought to create a VARCHAR field where I could save a link to the
user's private area, I don't like to use LONGBLOB...
Regards.
^Bart
There is nothing wrong with BLOBs - long or otherwise.
You can create a VARCHAR field which points at a file (which would work,
if you insist) but then you have a potential problem with data
integrity. What happens if, for instance, the user deletes or even
renames the file? Your link is now invalid. That doesn't happen with
BLOB fields.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
--- Synchronet 3.21d-Linux NewsLink 1.2