From: megacz Date: Fri, 30 Jan 2004 06:47:43 +0000 (+0000) Subject: 2002/05/30 02:32:58 X-Git-Tag: RC3~1715 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=903894f81543b6f907783d979c4cd3bc98c5ff3b 2002/05/30 02:32:58 darcs-hash:20040130064743-2ba56-95fa35813b99ecce2ba85a7736acf6d5a5a8d073.gz --- diff --git a/src/org/xwt/XMLRPC.java b/src/org/xwt/XMLRPC.java index 4616764..596151e 100644 --- a/src/org/xwt/XMLRPC.java +++ b/src/org/xwt/XMLRPC.java @@ -184,7 +184,7 @@ class XMLRPC extends XML implements Function { } else if (o instanceof ByteStream) { try { - sb.append(" "); + sb.append(" \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 \n"); } catch (IOException e) { if (Log.on) Log.log(this, "caught IOException while attempting to send a ByteStream via XML-RPC");