为什么输出的图片会是乱码?
以下的代码,作用是输出数据库里所以的图片,为什么会是乱码来的?想不明白,请给个提示,谢谢????
<?php
include "connect.php";
$sql="select id,image from photos";
echo $sql;
$result=mysql_query($sql);
if($row=mysql_fetch_array($result))
{
Header("Content-type: image/jpg");
echo "image:".$row[image]."<br><p>";
}
?>