projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68d5439
)
2002/05/30 02:32:58
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:47:43 +0000
(06:47 +0000)
committer
megacz
<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
patch
|
blob
|
history
diff --git
a/src/org/xwt/XMLRPC.java
b/src/org/xwt/XMLRPC.java
index
4616764
..
596151e
100644
(file)
--- 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 {
} 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) {
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(" ");
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("\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");
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");