I would guess it's a problem with whitespace in the Base64 encoding of the
byte[] array. I would guess that the PHP code puts a newline after 72
characters (This is allowed by the spec so the PHP code is quite valid).
This would result in the decoding being corrupt after 55 characters.

The Base64 code in the Apache XML-RPC system has been changed a couple of
times (the initial change was due to licensing issues I think).

I think the version of XML-RPC in CVS handles whitespace in Bas64 correctly.
Can you try that version?

John Wilson
The Wilson Partnership
http://www.wilson.co.uk

----- Original Message -----
From: "Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 1:21 PM
Subject: Problem with byte[]


> Hi!
>
> I'm new in java and xml-rpc and I have a big problem: if I call procedure
> via PHP then I get a correct byte[] (100kB JPG file) but with
> java+apache.xmlrpc i got incorrect byte [] array (size is 102kb). I
compared
> the context of files and I saw that first 55 bytes are same, but following
> bytes are different. Where is problem?

Reply via email to