From: Belorion Date: 2005-01-13T06:55:06+09:00 Subject: Re: [Long, Detailed] Re: Image decompression, eruby > - Output, the usual binary/non-binary output CRUFT that windows > forces you to occupy your mind with. I think the solution to that problem > has been posted several times. ># image contained in +data+ > require 'cgi' > c = CGI.new > c.print c.header( 'type' => 'image/gif', 'length' => data.length ) > STDOUT.binmode if PLATFORM =~ /32/ > c.print data> Okay ... so everything was working fine and dandy in my Firefox browser on windows. However, I still cannot convince IE6 that the file is of type jpeg. When I click on the link for the image, IE6 doesn't know the file type (it asks to save the file of unknown type). I've tried this with and without STDOUT.binmode. Firefox works in either case, properly identifying it as content type: image/jpg... but windows does not. The really funny part is if I screw up and put a typo in my cgi script, I get a server error (as expected), but when I hit refresh after fixing the typo the image pops up just fine. But, that is the *only* time I can get IE6 to display the image. Any suggestions?