Upload of binary files

Levente Sandor sandorlevi at yahoo.com
Thu Mar 13 01:53:25 CET 2003

"Peter Mott" <peter.mott at btconnect.com> wrote in message news:<b4nul3$7d2$1 at knossos.btinternet.com>...
> I am having problems with uploading binary files. I have searched the
>     while 1:
>         line = fileinfo.file.readline()

It is _absolutely not_ a good idea to use the readline() method on binary files.
Use the read() method instead, it should work.


More information about the Python-list mailing list