Re: BLOB in MySQL
| From: | David Tod Sigafoos | Date: | Wed, 16 Oct 2002 23:28:39 +0000 |
| Subject: | Re: BLOB in MySQL | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16421@lists.php.net to get a copy of this message | ||
GR> I was wondering how do you actually insert a blob if it's an image (say a
GR> JPEG) in a MySQL DB.
You would read the file in and then update with the variable read.
BUT .. i would suggest that you don't store images, or anything that
is of 'file' origin into the db. It is easier, faster and seems to
make more sense to simply store the path/file of the object.
fwiw
--
DSig `````
David Tod Sigafoos ( O O )
mailto:dsig@teleport.com _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2