[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!!!&nbsp; :))<br>
<br>
John, Rudi thank you for your time.<br>
<br>
Elvio<br><br><div><span class="gmail_quote">2005/11/4, Starsscream Desepticon &lt;<a \
href="mailto:kastanienreis@yahoo.co.uk">kastanienreis@yahoo.co.uk</a>&gt;:</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(&quot;handler.test&quot;, 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 &lt;<a \
href="mailto:tug@wilson.co.uk">tug@wilson.co.uk</a>&gt; wrote:<br><br>&gt;<br>&gt; On \
4 Nov 2005, at 11:41, Starsscream Desepticon wrote:<br>&gt;<br>&gt; &gt; Thanks! \
<br>&gt; &gt;<br>&gt; &gt; But I still have the problem, that execute() \
returns<br>&gt; &gt; java.lang.Object. I cannot cast the response<br>&gt; &gt; \
(Object) to the original object, because it is a byte array. So how<br> &gt; &gt; can \
I get my original object?<br>&gt;<br>&gt; You say you get an exception when you cast \
the result to byte[]?<br>&gt;<br>&gt; can you put this in your code and post the \
output?<br>&gt;<br>&gt; System.out.println (o.getClass().getName());<br>&gt;<br>&gt; \
Then cast o to byte[] and post the stack trace<br>&gt;<br>&gt;<br>&gt; John \
Wilson<br>&gt; The Wilson Partnership<br>&gt; <a \
href="http://www.wilson.co.uk">http://www.wilson.co.uk \
</a><br>&gt;<br>&gt;<br>&gt;<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