Lou Olsten wrote:
What SQL statement can I use to insert a PDF into a BLOB column? I don't want a pointer to the file, I want the actual file stored as a BLOB.

If the file is on the server already -


insert into pdfs (content) values(load_file('/path/to/file.pdf'))

If the file is on the client, use some client language (C,Perl,PHP), call mysql_real_escape_string() on the contents of the file and insert the escaped string.



--
Sasha Pachev
Create online surveys at http://www.surveyz.com/

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to