Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bitmap bitmab = ((BitmapDrawable) imageView.getDrawable()).getBitmap();
- ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
- bitmab.compress(Bitmap.CompressFormat.JPEG, 100, byteArrayOutputStream);
- image = Base64.encodeToString(byteArrayOutputStream.toByteArray(), Base64.DEFAULT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement