[Zope] xml-rpc with Java - binary data

Tom Content tomcontent@gmx.de
Wed, 3 Apr 2002 15:38:50 +0200 (MEST)


Hi all,

i have a little big Problem with the xml-rpc in Zope. Is it possible to
transport binary Data (e.g. Images) with xml-rpc to a Java-Client ? I have
written a little Java-Progi where i can receive a pure html(dtml)-Dokument
(tom_htm):

Part of the Java-Progi.:
........
XmlRpcClient server = new XmlRpcClient("http://localhost:8080/tom/");
server.setBasicAuthentication("xx","xx");
// Empty Parameter list.
Vector params = new Vector();
// Server Call and Printout Result
String result = (String) server.execute("tom_htm",params);
System.out.println("Inhalt von tom_htm: " + result);
            } catch (XmlRpcException exception) {......}
........

The Program prints out the Source Code of the tom_htm-document, which is ok.
 In the same Zope-Folder (/tom) is a beautiful Picture (Pic1). When i try
now to change the line:
String result = (String) server.execute("tom_htm",params);
into 
String result = (String) server.execute("pic1",params);
 --> I only get errors !

How can i receive the Picture or any other binary data ? How do i have to
change my program ? Or do i have to modify something in my Zope-Project ? Maybe
i need a addon/product ??

Thank you in advance for your help,

Tom

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net