I’m about to write server side aplication(most probably it would be PHP but JAVA is also possible) and android client side aplication. I try to figure out what is the best way to send photo from android aplication to server and receive it in server side. And if this any way to optimize/serialize sending more than one picture at a time?
Please provide me some reference or hint.
Thanks in advance.
I’m about to write server side aplication(most probably it would be PHP but JAVA
Share
U can use HTTP post for this.
get ByteArrayOutputStream and compress JPEG image and use ByteArrayBody and post it using HttpClient
You can find related code here. http://vikaskanani.wordpress.com/2011/01/11/android-upload-image-or-file-using-http-post-multi-part/