corrupted GIF through CGI
Seung Chan Lim
info at djslim.com
Tue May 6 20:51:37 EDT 2003
This is on apache 1.3 python 2.2 (straight up cgi) on a windows
machine
The following is the code I have
#!d:\progra~1\python22\python.exe
buf = (open("generic.gif", "rb")).read()
print """Content-Type: image/gif
Content-Length: %d
"""%(len(buf))
print buf
This code shows the gif perfectly fine under LINUX running APACHE 1.3
and python 1.5
but it shows a half truncated and mutated image on WINDOWS runnin
APACHE 1.3 and python 2.2
Can anyone tell me why? Is this a result of some internal change from
python 1.5 to python 2.2 or is it a linux vs. windows issue??
thanks in advance
More information about the Python-list
mailing list