Picture downloading in IE
| From: | HostWare Kft . ) | Date: | Wed, 03 Dec 2008 10:50:50 +0000 |
| Subject: | Picture downloading in IE | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-284050@lists.php.net to get a copy of this message | ||
Hi,
I have a strange error / misfunction with PHP header and IE7.
I render a JPG from a database BLOB to show it on a page.
In Firefox, when the user clicks on the image, and selects "Save image as... ", (s)he can
download it in JPG format.
But when a user in IE7 does the same, (s)he only can getit in BMP.
The header I sent is the same both case:
header('Content-Type: image/pjpeg');
I tried to set Content-Disposition to "inline" or "attachment", set filename to
different values, but get the same result.
Now all I can say is "HEEEEEELP" :)
Thanks,
SanTa