Movatterモバイル変換


[0]ホーム

URL:


Newbie has question that's not exactly Python...

Chris Gonnermanchris.gonnerman at usa.net
Tue Apr 3 23:28:36 EDT 2001


----- Original Message ----- From: "Dave LeBlanc" <whisper at oz.net>Subject: Re: Newbie has question that's not exactly Python...> I did an experiment where I tried to load a gif file into IE directly> from disk (File:Open). Instead of displaying it inline, it brought up> the helper app associated with gif files.Doesn't work that way.  IE uses it's internal mime-type handler whenprocessing Content-type: headers, but may call the helper app whenFile:Open is used.  My method is fundamentally correct. > I believe that you'll have to add just a bit of html around your image> before a browser is going to accept it. I don't believe that> "content-type image/gif" is enough! According to the html standard, at> least <html> is needed to start things off.Nope again.  The data following the blank line must be raw image dataof the type specified.  Starting with a DTD or <html> tag is only donewhen the Content-type: text/html is being processed (actually some browsers"guess" that HTML is required when the type is text/plain and the data "looks like" HTML... drives me nuts sometimes.)


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp