Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- imgBitmap = BitmapFactory.decodeStream(in);
- File imageFile = new File(dir, fileName);
- os = new FileOutputStream(imageFile);
- imgBitmap.compress(Bitmap.CompressFormat.JPEG, 50, os);
- os.flush();
- os.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement