With the help of several on this list, I now have a home grown xml-rpc client and Webware chatting happily. This question may be basic python, rather than Webware specific.
I would like to read a custom-made binary file on the server and pass it via xml-rpc to the client. The client, which understands the binary structure, will then process the binary appropriately. Transferring a zip or jpg would be a good example.
I tried this:
data = file(filepath, 'rb')
return dataThat did not work as hoped. Next I tried:
data = file(filepath, 'rb')
result = data.read()
data.close()Now I get something back but it is not in the form that I expected.
What is a correct way to pass binary data to a client so the client can restore the binary file locally?
Mark Phillips Mophilly & Associates On the web at http://www.mophilly.com On the phone at 619 444-9210
------------------------------------------------------- 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
