XML-RPC -- send file
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Tue Apr 19 14:31:46 EDT 2005
codecraig schrieb:
> CLIENT
> -----------
> d = xmlrpclib.Binary(open("C:\\somefile.exe").read())
> server.sendFile(d)
>
> SERVER
> --------------
> def sendFile(tmp):
> print "FILE:", tmp
This returns None. Don't know what XML-RPC expects, but you may either try
to return something else from the function or make XML-RPC return nothing
(don't know if that works).
> xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError:cannot marshal None
> unless allow_none is enabled'>
The obvious error. :)
Stefan
More information about the Python-list
mailing list