What is a correct way to pass binary data to a client so the client can
restore the binary file locally?

Actually, not so much a python OR webware question, but an XML-RPC one. You need to convert binary data to base64-encoded before sending it. In python, the base64 module will do this:


returnVal = base64.encodestring(data.read()) and origdata = base64.decodestring(returnVal)

- Luke


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to