For future reference, if you want to save binary file to blob cell in mysql, you can use addslashes
function to your data, like:
addslashes($blob_data);
An example of working code is located here: try addslashes on binary data variable. addslashes($variable)