2002/06/01 23:46:31
[org.ibex.core.git] / 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");