inserting blobs

From: Date: Wed, 12 Jul 2000 16:02:28 +0000
Subject: inserting blobs
Groups: php.general 
Request: Send a blank email to php-general+get-6169@lists.php.net to get a copy of this message
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. _______________________________________________ __ __ ___ _ |_) |_ |\ | | / \ |\ | Benton Jackson |_) |_ | \| | \_/ | \| benton@goatrider.com http://www.goatrider.com Maplewood, MN, USA

« previous php.general (#6169) next »