How should I base64 encode a PDF file for transport over XML-RPC in Python?
You can do it with the base64 library, legacy interface.