ftplib - recievebinary
Suchandra Thapa
ssthapa at classes.cs.uchicago.edu
Wed Dec 25 17:56:22 EST 2002
Frederik Fuest <ffrederik at gmx.de> wrote:
> i'm using the retrbinary-method from the ftplib to download files from an
> ftp-server.
> Under Linux it runs succesfully, but under Windows (i tried only XP) i've
> the problem that downloaded movies are damaged!? As well they've a different
> filesize after the download!?
>
> Does anybody knows the reason for this?
As well as checking that the ftp transfer is done in binary mode, you
should check to make sure that the ftp class is writing to a file which has
been opened in binary mode.
--
----------------------------------------------------------------------------
Suchandra Thapa
s-thapa-11 at NOSPAMalumni.uchicago.edu
----------------------------------------------------------------------------
More information about the Python-list
mailing list