2002/05/30 02:32:58
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:43 +0000 (06:47 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:43 +0000 (06:47 +0000)
darcs-hash:20040130064743-2ba56-95fa35813b99ecce2ba85a7736acf6d5a5a8d073.gz

src/org/xwt/XMLRPC.java

index 4616764..596151e 100644 (file)
@@ -184,7 +184,7 @@ class XMLRPC extends XML implements Function {
 
         } else if (o instanceof ByteStream) {
             try {
-                sb.append("                <value><base64>");
+                sb.append("                <value><base64>\n");
                 InputStream is = ((ByteStream)o).getInputStream();
                 byte[] buf = new byte[54];
                 while(true) {
@@ -196,10 +196,9 @@ class XMLRPC extends XML implements Function {
                         System.arraycopy(buf, 0, writebuf, 0, numread);
                     }
                     sb.append("              ");
-                    sb.append(Base64.encode(writebuf));
+                    sb.append(new String(Base64.encode(writebuf)));
                     sb.append("\n");
                 }
-                sb.append(((Boolean)o).booleanValue() ? "1" : "0");
                 sb.append("\n              </base64></value>\n");
             } catch (IOException e) {
                 if (Log.on) Log.log(this, "caught IOException while attempting to send a ByteStream via XML-RPC");