I need to post a large image from camera with max resolution (for example 12mpx). But I often get OutOfMemoryError when I decode filestream to get a byteArrayInputStream to post. Is there any other way of posting large images?
P.s. I don’t need to display or scale this photo.
Yes, you can post images/files by MultipartEntity, please find sample snippet, below:
To use multipart entity you would need to download and add httpmime-4.1.2.jar to the build path of the project.