I have resolved my problem!, I think it is easy for everyone, but I unknown data binary object attribute. So, code for store a file that is passed as a binary object would be:
file = calltoreceivemethod() placetostore=open(filename,'wb') data=file.data placetostore.write(data) Regards, Naxo _____ De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Jose Ignacio Gisbert Enviado el: miércoles, 12 de diciembre de 2007 9:12 Para: python-list@python.org Asunto: xmlrpclib.binary to a file doubt 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
-- http://mail.python.org/mailman/listinfo/python-list