corrupted GIF through CGI

Brian Quinlan brian at sweetapp.com
Tue May 6 21:09:31 EDT 2003


> print """Content-Type: image/gif
> Content-Length: %d
> """%(len(buf))
> print buf

At the very least you are corrupting the GIF by an extra EOL character.
Try:

sys.stdout.write(buf)

Cheers,
Brian






More information about the Python-list mailing list