Actually, after some additional digging, it looks like the xmlrpclib module may have the piece I need, with it the Binary helper class:
binary_obj = xmlrpclib.Binary (open ('foo.pdf'). read ())
Here is an example from Trac XML-RPC Documentation
import xmlrpclib server = xmlrpclib.ServerProxy("http://athomas: password@localhost :8080/trunk/login/xmlrpc") server.wiki.putAttachment('WikiStart/t.py', xmlrpclib.Binary(open('t.py').read()))
Pat notz
source share