Hi,
i can't display the blob pictute in PHP. It only shows a place for the picture in PHP.
Thanks
This is the record in database.
id name type size content
------- ------------- -------------- ------- -------
6 action.JPG image/pjpeg 2707 BLOB
<?php
$id = 6;
$query = "SELECT name, type, size, content FROM upload WHERE id = $id";
$result = mysql_query($query);
if($row = mysql_fetch_array($result)){
$imageData = $row['content'];
$imageType = $row['type'];
}
header("Content-type: $imageType");
echo $imageData;
?>