Jump to content

print out an image source stored as mediumblob in a database


adam291086

Recommended Posts

I have an image being stored in a database as a medium blob data type. How can i convert this into the image with php. I am trying a simple echo but nothing

 

<?php

require_once('class/mysqldb/ez_sql.php');
$data = $db->get_results("SELECT * FROM persons",ARRAY_A);

echo '<pre>';
print_r($data);
echo '</pre>';

echo '<img src="'.$data["0"]["photo"].'">';



?>

 

you can see whats happening here http://www.adamplowman.com/CASE/test.php

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.