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
在您的帖子中使用FileEntity 。
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.