Sending binary data over CGI

Bob Ippolito bob at redivi.com
Mon Mar 8 07:36:41 EST 2004


On 2004-03-07 00:26:32 -0500, Walter Huf <hufman at cobalty.com> said:

> 
> 
>> import msvcrt
>> ...
>> msvcrt.setmode( stdout.fileno(), os.O_BINARY )
> 
> Now, what would I do if I want to do the same in Unix/Linux?

Windows is the only operating system that I know of that tries to 
translate stdout.  You wouldn't have had the problem in the first place 
anywhere else.

-bob




More information about the Python-list mailing list