Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Base64; public class Main { public static Bitmap toBitmap(String s) { //byte[] Buffer = s.getBytes(); byte[] buffer = Base64.decode(s, Base64.DEFAULT); //ByteArrayInputStream inputStream = new ByteArrayInputStream(Buffer); //Bitmap bitmap = BitmapFactory.decodeStream(inputStream); return BitmapFactory.decodeByteArray(buffer, 0, buffer.length, null); } }