Exchange data between Android and Server-Servlet

  • Replies:1
  • OpenNot stickiedUnanswered

Sep 24, 2012 10:57:39 AM via Website

Dear Fellas,

I would like to exchange data between android client and server-servlet. I want to use the JSON for the exchange data format. But the data that should be exchanged contains image. So could I store byte image within JSON and send it to the server?? if yes, could anyone show me the example how to do it??

If I can not pack the image within the JSON, what is the best way to do this?? since My data contains alot of text and image so I need an efficient way to send the packet.

Thank you in advance

Feb 4, 2013 1:01:32 PM via Website

first thing if you are working with JSON you have a certain format to send the data to server as JSON has defined a pattern. You can send the image either in byte or file format whatever is accepted in your JSON pattern.

Second thing you can not send data to server with two different services.

if still problem send me the code.