Problem Displaying Pics

Rami Chowdhury rami.chowdhury at gmail.com
Tue Oct 6 15:48:13 EDT 2009


On Tue, 06 Oct 2009 12:37:17 -0700, Victor Subervi  
<victorsubervi at gmail.com> wrote:

> I remember going round and round on this issue before until I finally  
> got it
> right. I haven't changed the code. It worked before. I just tried your
> update and it gave me the same result :( Any other ideas?
> TIA,
> V
>

I'm afraid changing the 'Content-type' header to be correct (which it's  
still not, by the way; you need to be printing '\r\n\r\n' after the  
content-type, to signal the end of the headers) is all I can think of.  
Apart from that, could it be a browser issue? When I went to the URL you  
provided in your first email, for instance, my browser (Opera 9.6 on  
Windows Vista) was expecting an image, as was Firefox 3.1 (again on  
Windows). However, neither seem to read valid data for the image, and both  
report it as 0x0.

Could you give us more information on what has changed? Have you upgraded  
the version of Python on the server? Have you changed the webserver  
serving your scripts? Have you changed the back-end database at all?



-- 
Rami Chowdhury
"Never attribute to malice that which can be attributed to stupidity" --  
Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)



More information about the Python-list mailing list