Problem Displaying Pics
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Oct 7 10:51:52 EDT 2009
En Tue, 06 Oct 2009 17:26:19 -0300, Victor Subervi
<victorsubervi at gmail.com> escribió:
> The code in question is generated automatically from another script. I
> took
> your idea of the \r\n\r\n and added triple quoting and now it prints out
> this:
That's still wrong. The output should be:
- a line containing Content-Type: image/jpeg
- a blank line (no more!)
- the actual image data
A Content-Type of text/html is just *wrong* for an image...
--
Gabriel Genellina
More information about the Python-list
mailing list