Duplex communication with pipes - is possible ?

Daniel Dittmar daniel.dittmar at sap.corp
Tue Jun 20 08:38:12 EDT 2006


Dara Durum wrote:
> Now I trying with packet size decreasing. Are PIPE-s can handle the
> binary data packets, or I need to convert them with base64 ?

In the client, you need to set the mode of sys.stdin to binary, 
otherwise, you get the DOS translation of linefeeds. See
http://mail.python.org/pipermail/python-list/2000-January/020463.html
for some hints.

I assume that the stream returned by subprocess.popen are also opened in 
text mode and you have to change them tobinary, see the second hint in 
the link mentioned above.

Daniel



More information about the Python-list mailing list