RE: Inserting BLOB data from a CGI file upload field

From: Date: Thu, 09 Nov 2000 20:53:28 +0000
Subject: RE: Inserting BLOB data from a CGI file upload field
Groups: php.db 
Request: Send a blank email to php-db+get-4345@lists.php.net to get a copy of this message
Dont do that, save the PDF as a file and only have the path to the file in MySQL. You will be much happier with the results. -Kerry -----Original Message----- From: George A. Fitch III [mailto:george-fitch@orgella.com] Sent: Thursday, November 09, 2000 6:30 AM To: php-db@lists.php.net; win32@lists.mysql.com Subject: Inserting BLOB data from a CGI file upload field Whassup, I'm trying to insert a PDF file specified by a CGI file upload field into a MySQL database as BLOB data, but I can't figure out how. I'm able to do it in Perl DBI with the bind_param thing, but I can't find a similar function in PHP. I also can't find a function that's analogous to the quote function in the Perl DBI, which I'll need to toss the entire file into an "insert into" SQL statement. Any suggestions? Gaf --------------------------------------------------------------------- Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before posting. To request this thread, e-mail win32-thread4201@lists.mysql.com To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail win32-unsubscribe@lists.mysql.com instead.

« previous php.db (#4345) next »