Mar 312013
 

How would I display BLOB data with PHP? I’ve entered the BLOB into the DB, but how would I retrieve it? Any examples would be great.
sorry, by BLOB, i meant like a picture

Simple example:

$blob_data = “something you’ve got from BLOB field”;

header(‘Content-type: image/jpeg’); // e.g. if it’s JPEG image
echo $blob_data;

Source