I’m trying to store an image into an SQL database without using temporary files. I don’t want to use temporary files as too many of them could cause problems. I saw this tutorial: but that uses temporary files as does this question and this . I have the image as a php resource and not a file. Trying to put a base64 string of the image in fails as well.I am writing to a blob. Thanks for looking, any help would be appreciated.
Share
Output buffering!
$image now holds image data you can write to a blob field in your mysql database.