Ben bunun yerine indirirken bir görüntü istiyorum.
Ben, benim veritabanı tablosundaki BLOB sütunu görüntü var.
Bu pasajı imajı indiren, ama ben bunun yerine görüntülemek istediğiniz:
$query = "SELECT * FROM upload";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$content = $row['content'];
$size = $row['size'];
$type = $row['type'];
header("Content-length: $size");
header("Content-type: $type");
// The following headers make the image download, but I don't want it to
// download, I want to show the image. What should I do?
// header("Content-Disposition: attachment; filename=$name");
echo $content;