Here you can find the source of fromBase64decodedImageToByte(String base64encoded)
public static byte[] fromBase64decodedImageToByte(String base64encoded)
//package com.java2s; //License from project: Apache License import java.util.Base64; public class Main { public static byte[] fromBase64decodedImageToByte(String base64encoded) { if (base64encoded == null || base64encoded.trim().length() == 0) { return null; }/*from w w w. j a v a 2s . c o m*/ String[] split = base64encoded.split(","); if (split.length < 2) return null; String base64Image = split[1]; return Base64.getDecoder().decode(base64Image); } }