Bitmap to Base64 conversion

ByteArrayOutputStream baos = new ByteArrayOutputStream();

bitmap.compress(Bitmap.CompressFormat.JPEG,100,baos);


byte[] b = baos.toByteArray();

String outputString = new String (Base64.encode(b,resultCode);

Comments

Popular posts from this blog

What is Android ?