} 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) {
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");