[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlrpc-user
Subject: Re: How do you convert a base64 object to original object?
From: Elvio Fernandez <elvio.fernandez () gmail ! com>
Date: 2005-11-07 3:55:32
Message-ID: 407fb5c90511061955tbe8fafek () mail ! gmail ! com
[Download RAW message or body]
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 =3D (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
>
[Attachment #3 (text/html)]
It works!!! :))<br>
<br>
John, Rudi thank you for your time.<br>
<br>
Elvio<br><br><div><span class="gmail_quote">2005/11/4, Starsscream Desepticon <<a \
href="mailto:kastanienreis@yahoo.co.uk">kastanienreis@yahoo.co.uk</a>>:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> Thanks for the help. I made some silly \
mistake.<br><br><br>In case you're still interested Elvio:<br><br>byte[] response = \
(byte[]) xmlrpc.execute("handler.test", parameters);<br><br>To transform \
between object/byte array see earlier post. As John said Apache does the Base64 \
<br>encoding.<br><br>Rudi<br><br><br><br>--- John Wilson <<a \
href="mailto:tug@wilson.co.uk">tug@wilson.co.uk</a>> wrote:<br><br>><br>> On \
4 Nov 2005, at 11:41, Starsscream Desepticon wrote:<br>><br>> > Thanks! \
<br>> ><br>> > But I still have the problem, that execute() \
returns<br>> > java.lang.Object. I cannot cast the response<br>> > \
(Object) to the original object, because it is a byte array. So how<br> > > can \
I get my original object?<br>><br>> You say you get an exception when you cast \
the result to byte[]?<br>><br>> can you put this in your code and post the \
output?<br>><br>> System.out.println (o.getClass().getName());<br>><br>> \
Then cast o to byte[] and post the stack trace<br>><br>><br>> John \
Wilson<br>> The Wilson Partnership<br>> <a \
href="http://www.wilson.co.uk">http://www.wilson.co.uk \
</a><br>><br>><br>><br><br><br><br><br>___________________________________________________________<br>To \
help you stay safe and secure online, we've developed the all new Yahoo! Security \
Centre. <a href="http://uk.security.yahoo.com"> \
http://uk.security.yahoo.com</a><br></blockquote></div><br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic