On Mon, Feb 22, 2010 at 11:57 AM, Ray da Costa <raydaco...@gmail.com> wrote:
> Personnel possibility exists to transmit serialized object via HTTP in
> Android? I'm trying to use the HttpURLConnection but I get an exception
> saying that does not support
>

Once an object is serialised, it shouldn't be difficult to send it
over HTTP in the body of a HttpPost. You could write the object to a
String using a combination of ObjectOutputStream and
ByteArrayOutputStream (using a process similar to
http://www.singularsys.com/jep/doc/html/serialization.html). Then pass
it into an HttpPost command.

Or, you could use something like XStream to serialise the objects into
XML before transport...

http://xstream.codehaus.org/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to