Forum Moderators: open

Message Too Old, No Replies

Internet Explorer Image Problem

Images Download not View if opened with IE

         

vincevincevince

10:01 pm on May 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've a medium-small problem. Internet Explorer is doing something strange with images I am outputting from my server.

Ie, click on
[widgets.com...]
and instead of opening it in a browser window for display, it opens a save or open dialogue.

The images are stored as longblob in a mysql database and returned via a 404 page. The headers are:

HTTP/1.1 200 OK
Date: Mon, 26 May 2003 23:01:16 GMT
Server: Apache/1.3.26 (Unix) PHP/4.3.0
X-Powered-By: PHP/4.3.0
Content-length: 61481
Connection: close
Content-Type: image/jpg

As far as I know, that is nothing unusual? I added the 200, the conent type, and the length via PHP. The image displays if it is within an <IMG tag, and behaves as expected using Mozilla. How can I make IE treat my images like images from any other server?

outrun

12:01 am on May 27, 2003 (gmt 0)

10+ Year Member



This has happened to me before but only on my machine have you tried on another machine? Try to repair internet explorer, or if that fails reinstall internet explorer.

regards,
Mark

vincevincevince

12:04 am on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it happens on 3 machines i've tested it on.

it's something to do with the way i send the image, but i can't find any information on what the trouble could be.

outrun

12:08 am on May 27, 2003 (gmt 0)

10+ Year Member



Try changing the
Content-Type: image/jpeg

regards
Mark

vincevincevince

3:09 am on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yes, as in my first post in this thread, i have set

Content-Type: image/jpg

thanks anyway

RonPK

11:25 am on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vince, I guess outrun meant to say that you're using
Content-Type: image/jpg
instead of
Content-Type: image/jpeg

vincevincevince

12:15 pm on May 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks so much :-)

that worked a dream