Re: inserting blobs

From: Date: Wed, 12 Jul 2000 22:45:07 +0000
Subject: Re: inserting blobs
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-6332@lists.php.net to get a copy of this message
MySQL has a function called LoadFile(file_name) that was introduced in version 3.23.0. Below is the link to the MySQL documentation page with the function description on it. Scroll all the way down to the bottom of the page. It's like the last function listed. http://www.mysql.com/documentation/manual.php?section=String_functions Regards, Tony Kirk ----- Original Message ----- From: "Monte Ohrt" <monte@ispi.net> To: <benton@goatrider.com> Cc: <php-general@lists.php.net> Sent: Wednesday, July 12, 2000 12:55 PM Subject: Re: [PHP] inserting blobs > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#6332) next »