It works!!!  :))

John, Rudi thank you for your time.

Elvio

2005/11/4, Starsscream Desepticon <kastanienreis@yahoo.co.uk>:
Thanks for the help. I made some silly mistake.


In case you're still interested Elvio:

byte[] response = (byte[]) xmlrpc.execute("handler.test", parameters);

To transform between object/byte array see earlier post. As John said Apache does the Base64
encoding.

Rudi



--- John Wilson <tug@wilson.co.uk> wrote:

>
> On 4 Nov 2005, at 11:41, Starsscream Desepticon wrote:
>
> > Thanks!
> >
> > But I still have the problem, that execute() returns
> > java.lang.Object. I cannot cast the response
> > (Object) to the original object, because it is a byte array. So how
> > can I get my original object?
>
> You say you get an exception when you cast the result to byte[]?
>
> can you put this in your code and post the output?
>
> System.out.println (o.getClass().getName());
>
> Then cast o to byte[] and post the stack trace
>
>
> John Wilson
> The Wilson Partnership
> http://www.wilson.co.uk
>
>
>




___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com