Re: inserting blobs
| From: | Monte Ohrt | Date: | Wed, 12 Jul 2000 16:55:09 +0000 |
| Subject: | Re: inserting blobs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6184@lists.php.net to get a copy of this message | ||
Benton Jackson wrote:
>
> Hi,
> How do you read a binary file and insert it into a "blob" field in mysql? I
> tried "addslashes" and stuck it in an insert statement, but the data seems
> to get messed up.
>
> I read the data with "fread", which claims to be binary safe.
>
http://www.phpbuilder.com/columns/florian19991014.php3