Here you can find the source of ImageBase64Decode(String base64_str)
Parameter | Description |
---|---|
base64_str | a parameter |
public static byte[] ImageBase64Decode(String base64_str)
//package com.java2s; import android.util.Base64; public class Main { /**/*www . java2 s . com*/ * Image Base64 Decode * @param base64_str * @return */ public static byte[] ImageBase64Decode(String base64_str) { byte[] b = Base64.decode(base64_str, Base64.DEFAULT); for (int i = 0; i < b.length; i++) { if (b[i] < 0) { b[i] += 256; } } return b; } }