is it possible to send raw data through ftp?

daniel daniel.huangfei at gmail.com
Fri Oct 20 00:26:07 EDT 2006


well, I'm trying to use ftplib to upload data that received from
socket, and the application is required to  restart the transfer at a
specific interval so as to generate a different target file on the
server to store subsequent data.

the problem is 'storbinary' accepts only file-like object, I have to
use socketobj.makefile() to do that, how can I stop and resume that
transfer then? the abort() generates lots of wierd and unexpected
behavior, I guess if there is a way to upload raw data buffer, the
restart action should be implemented more easily. 

thanks.

daniel




More information about the Python-list mailing list