sir,
I am displaying my image from my data base,
my code is as follows.
@MYSQL_CONNECT("localhost","root","");
@mysql_select_db("shopping");
$query = "select bin_data,filetype from binary_data where id=$id";
$result = @MYSQL_QUERY($query);
$data = @MYSQL_RESULT($result,0,"bin_data");
$type = @MYSQL_RESULT($result,0,"filetype");
Header( "Content-type: $type");
echo $data;
echo $type;
it gives binary information of the image only.
it dont get the real image in browser.
if any one get answer please reply to me