Pulling BLOB image data from MySQL in PHP
问题 I was reading from a few tutorials on how to upload my image into the DB as binary opposed to putting them on the server itself, well I got it to work like this: PHP: $image = chunk_split(base64_encode(file_get_contents($tmpfile))); mysql_query("INSERT INTO images (`img_location`, `caption`, `user`, `genre`, `when`) VALUES ('$image', '$caption', '$id', '$genre', '$when')"); My issue is how do you now pull it from the database, I've read several ways of doing it, tried them all, can't figure