For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > February 2005 > IE save, other shows image









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author IE save, other shows image
Ing. Branislav Gerzo

2005-02-10, 8:55 am

Hi all,

I have simple question, in my CGI script I have:

print $query->header(-type=>'image/jpg');
print my $image = im_new($param);

im_new() return image. Image shows, when I open URL
in opera, mozilla, but when I open it in Internet Explorer,
it opens open/save dialog. I expect same behavior like Mozilla (shows
the image).

Any suggestions ?

--

--. ,-- ,- ICQ: 7552083 \|||/ `//EB: www.2ge.us
,--' | - |-- IRC: [2ge] (. .) ,\\SN: 2ge!2ge_us
`====+==+=+===~ ~=============-o00-(_)-00o-================~
A threefold cord is not easily broken. - Ecclesiastes 4:12




David Dorward

2005-02-10, 8:55 am

On Thu, Feb 10, 2005 at 10:30:59AM +0100, Ing. Branislav Gerzo wrote:
> I have simple question, in my CGI script I have:
>
> print $query->header(-type=>'image/jpg');


This is wrong, the registered MIME type for JPEG images is image/jpeg

--
David Dorward http://dorward.me.uk

Ing. Branislav Gerzo

2005-02-10, 8:55 am

David Dorward [DD], on Thursday, February 10, 2005 at 09:41 (+0000)
wrote about :
[color=darkred]
DD> This is wrong, the registered MIME type for JPEG images is image/jpeg

thanks a lot, problem solved! :)

--

...m8s, cu l8r, Brano.

["When the going gets tough, the tough get f*cked over" - Carlin]


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com