XML-RPC -- send file
codecraig
codecraig at gmail.com
Tue Apr 19 14:02:47 EDT 2005
Experient I have been :)
Here is what I am getting now....
CLIENT
-----------
d = xmlrpclib.Binary(open("C:\\somefile.exe").read())
server.sendFile(d)
SERVER
--------------
def sendFile(tmp):
print "FILE:", tmp
The server receives the file, because it prints it out, but on the
client I get this....
xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError:cannot marshal None
unless allow_none is enabled'>
so it sends it, but the client is getting an error. The error occurs
on the, server.sendFile(d) line.
any ideas?
More information about the Python-list
mailing list