The code below get image from some location - and make this image compress image. But i need to make the compress Image to be File ... How can i do it ?
Fil
image.compress
already writes the image to the file, assuming you gave a correct file name.
So use it like this:
File file = new File(Environment.getExternalStorageDirectory() + "/myimage.png");
FileOutputStream fOut = new FileOutputStream(file);
image.compress(Bitmap.CompressFormat.PNG, 100, fOut);
fOut.close();