sending a file chunk by chunk instead as a whole to a web server

Sanjeeb sanjeeb25 at gmail.com
Mon Aug 2 08:52:18 CEST 2010


Hi,
I have a web client which send a file to a server as multipart form
data, the sending of data is from
http://code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/.

I dont want to open the whole file to memory(at cliend end) and then
send, i just want to send part by part, say chunk of 1024 bytes to the
server and then assemble at the server end.

Could some one suggest what would be the best way to do this?

Regards
-Sanjeeb



More information about the Python-list mailing list