Problem while uploading a binary file using cgi module

Gerson Kurz gerson.kurz at
Mon Feb 4 14:22:55 CET 2002

On Sun, 3 Feb 2002 21:49:59 -0500, "J. Wang" <jw9 at>

>My problem is that it works fine with a text file, but failed everytime
>with a binary file such as jpeg file, even a very small (5k) binary file.

Rather than writing



#!e:/Python22/python.exe -u

IIRC there is an entry in the FAQ for this, although I cannot find it
right now.

More information about the Python-list mailing list