Java tutorial
//package com.java2s; import android.util.Base64; public class Main { /** * Decodes the base64 string into byte array * * @param imageDataString * - a {@link java.lang.String} * @return byte array */ private static byte[] decodeFile(String imageDataString) throws IllegalArgumentException { return Base64.decode(imageDataString, Base64.DEFAULT); } }