Re: Upload and download pdf-file to mySQL
Posted by:
Rick James
Date: October 11, 2014 10:08PM
SHOW CREATE TABLE filetable
`file` must be MEDIUMBLOB (or other sized BLOB), not some form of TEXT.
Suggest switching from real_escape_string to
$data = bin2hex(file_get_contents(...));
... INSERT ... VALUES ( ..., UNHEX('$data'), ...)
Subject
Written By
Posted
Re: Upload and download pdf-file to mySQL
October 11, 2014 10:08PM
November 03, 2014 12:13AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.