Display the BLOB image in php

by mariganesh 2013-02-12 12:11:28

Display the BLOB image in php



$result = mysql_query($MainSQL,$link);
$row =mysql_fetch_array($result,MYSQL_BOTH);
$data = $row[0];
echo "<img src='data:image/jpeg;base64," . base64_encode($data) . "' />";

506
like
0
dislike
0
mail
flag

You must LOGIN to add comments