xmlrpclib.binary to a file doubt

Jose Ignacio Gisbert jigisbert.etra-id at grupoetra.com
Wed Dec 12 03:11:35 EST 2007


Hi all,

 

I have a problem in my application which uses xml-rpc methods. From one hand
I can send a file to a server doing 

 

f=open(Myfile,'rb')

g=f.read()

name=(f.name).split("/")

name=name[len(name)-1]

calltosendmethod(xmlrpclib.Binary(g),name)

 

And it works fine. But on the other hand I have to get a document from the
server, which method returns document content in xmlrpclib.binary format,
and I am not able to store it on a local file. If somebody knows how to,
please tell me something, anything will helps. 

 

Thanks in advance, 

_______________________________
José Ignacio Gisbert Sanus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071212/5d4c73ff/attachment.html>


More information about the Python-list mailing list