XML-RPC -- send file
F. Petitjean
littlejohn.75 at news.free.fr
Tue Apr 19 14:31:46 EDT 2005
Le 19 Apr 2005 11:02:47 -0700, codecraig a écrit :
> Experient I have been :)
>
> Here is what I am getting now....
>
> CLIENT
> -----------
> d = xmlrpclib.Binary(open("C:\\somefile.exe").read())
open the file with mode "rb"
fin = open(r'C:\somefile.exe', 'rb')
contents = fin.read()
fin.close()
d = xmlrpclib.Binary(contents)
> server.sendFile(d)
>
> any ideas?
>
More information about the Python-list
mailing list