ftplib storbinary problem

Sandipan Gangopadhyay sandipan at vsnl.com
Fri May 18 15:28:39 EDT 2001


From: "Robin Becker" <robin at jessikat.fsnet.co.uk>
> In article <mailman.990191606.31921.python-list at python.org>, Sandipan
> Gangopadhyay <sandipan at vsnl.com> writes
> >I am using storbinary('STOR a.jpg', openfilepointer, 1024) from the
> >ftplib to upload a picture to an FTP server 
...
> >
> >Anyone know where I am going wrong ?
> >
...
> are you opening the openfile pointer thing in binary mode
>

Oops ! I forgot to change it ...

Thanks a ton for the hint.

Sandipan






More information about the Python-list mailing list