I am making a camera application. And I have to save the images after camera click on to server and as the size of the image captured is very large always ( in Mb’s) . So it is always dificult for me to save the large sized image on the server. Is there any to compress the image before saving it.??
And I have to only use android native camera
Thanks
Another approach would be to directly make smaller pictures. The advantage would be that you use less memory, but you might need a big picture in another part of your app.
This can be done as follows:
To choose the optimal size, you can use any criteria you want. I tried to make it as close as possible to the screen size: