[ http://issues.apache.org/jira/browse/XMLRPC-38?page=all ]
     
Jochen Wiedmann closed XMLRPC-38:
---------------------------------

    Resolution: Won't Fix
     Assign To:     (was: rpc-dev mailing list)

The applet specific code is no longer supported with version 3.


> XMLRPC applet fails to xmit Base64 coded data.
> ----------------------------------------------
>
>          Key: XMLRPC-38
>          URL: http://issues.apache.org/jira/browse/XMLRPC-38
>      Project: XML-RPC
>         Type: Bug

>   Components: Source
>     Versions: unspecified
>  Environment: Operating System: Linux
> Platform: All
>     Reporter: Lee Haslup

>
> Package: org.apache.xmlrpc.applet
> File: SimpleXmlRpcClient.java
> Class: XMLWriter
> Method: write(byte[])
> Attempts to write a byte array to the response by calling the append method
> on class StringBuffer with the byte array as an argument.  There is no 
> specific
> method for appending byte[] to a string buffer so the default behavior for 
> appending an Object is used.  This is to append the result of calling 
> toString()
> on the object.  In the case of a byte array this results in sending
> the symbolic object handle instead of the contents.
>         /**
>          *
>          * @param text
>          */
>         public void write(byte[] text)
>         {
>             // This doesn't work... ->  buf.append(text);
>             // This does... -v
>             int size = text.length;
>             for(int i=0;i<size; i++) {
>               buf.append((char)text[i]);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to