2002/06/01 23:46:31
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:45 +0000 (06:47 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:45 +0000 (06:47 +0000)
darcs-hash:20040130064745-2ba56-575549dcf3a920433e2b337d50a3ef6ce5e2381a.gz

src/org/xwt/SOAP.java

index d2d4fec..0625751 100644 (file)
@@ -178,7 +178,7 @@ class SOAP extends XMLRPC {
 
         } else if (o instanceof ByteStream) {
             try {
-                sb.append("                <" + name + " xsi:type=\"SOAP-ENC:base64\">");
+                sb.append("                <" + name + " xsi:type=\"SOAP-ENC:base64\">\n");
                 InputStream is = ((ByteStream)o).getInputStream();
                 byte[] buf = new byte[54];
                 while(true) {
@@ -190,7 +190,7 @@ class SOAP extends XMLRPC {
                         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");