Problem while uploading a binary file using cgi module

Gerson Kurz gerson.kurz at t-online.de
Mon Feb 4 08:22:55 EST 2002


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

>
>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

use

#!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