0

I want to upload a bitmap to a php server through HTTP / POST. I saw some solutions, which used base64 encoding to POST the image, but in my eyes this approach seems a bit inconsistent. Are there better ways to upload the image?

Best regards, Lukas

Lukas
  • 1,346
  • 7
  • 24
  • 49

2 Answers2

0

Use the FileEntity in your post.

K5 User
  • 606
  • 1
  • 6
  • 10
0

If you are using bitmap class, then change the value of 100

bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);

else place your code.

hope this work.

AbuQauod
  • 919
  • 14
  • 30