XML-RPC -- send file

Skip Montanaro skip at pobox.com
Tue Apr 19 12:49:48 EDT 2005


    codecraig> I thought i read somewhere that by using pickle or something,
    codecraig> that u could get a string representation of your object (or a
    codecraig> file in my case) and send that.  Any ideas?

Sure:

    stuff = xmlrpclib.Binary(open(somefile).read())
    server.call_some_remote_function(stuff)

At the other end a similar decoding will have to be done.

Skip

    



More information about the Python-list mailing list