1

I find the next possible ways

1) convert Image into Base64 string and put this string into the JSON object. Send image as json entry android

2) create an array of bytes out of the bitmap, and then create a new string with that array of bytes, and then send it to the server

http://blog.3dmick.com/2012/06/android-app-for-uploading-images-on-server/

Which else libraries or ways do u know ?? Which ways are popular on the enteptise projects?

Community
  • 1
  • 1
Mikhail
  • 2,690
  • 4
  • 28
  • 43
  • Why not simply send the image as byte array in the body of a POST request? The is the smallest regarding the size of the uploaded data... – Robert Apr 14 '14 at 15:19
  • im a new in programming. but how about a huge image (15 mb)? I convert this image as byte array. then my phone suddenly switched off and uploading was interrupted on 98%. at the next time i want to finish my uploading. Are the libraries which also include such cases ? – Mikhail Apr 14 '14 at 16:38

0 Answers0