question: public static String createBase64 ( Bitmap mBitmap ) { ByteArrayOutputStream baos1 = new ByteArrayOutputStream ( ) ; mBitmap . compress ( Bitmap . CompressFormat . JPEG , 100 , baos1 ) ; byte [ ] b1 = baos1 . toByteArray ( ) ; return Base64 . encodeToString ( b1 , Base64 . DEFAULT ) ; }
target:  generate base64 from bitmap image