[Pythonmac-SIG] blocksize problem? (ftplib)
Sean Hummel <seanh@unforgettable.com>
seanh@unforgettable.com
Wed, 1 Mar 2000 22:23:34 +0000 (GMT)
On Wed, 1 Mar 2000, JoanCarles p Casas[ISO-8859-1] =EDn wrote:
Well I'm not intimately familiar with the ftplib, but it looks as if you
are trying to store the document as binary, when it is a text document.
> #Erik guessed maybe has to do with the block size
> #I've also tried 512, 2048 and 4096 and still missing
> #something, different each time.=09=09=09=09=09=09
> =09=09ftp.storbinary('STOR '+ docname, f, 1024)
>=20
> =09=09f.close()
> =09=09ftp.close()
>=20
Also, have you actually tried trapping the output with something like
"OTSessionWatcher"? Just to make sure that ftplib is sending all the
data? Could just be a timing issue as well, try not closing the file "f",
and seeing if the transfer works.