Here you can find the source of decode(String base64)
Parameter | Description |
---|---|
hex | a parameter |
public static byte[] decode(String base64)
//package com.java2s; //License from project: Apache License import javax.xml.bind.DatatypeConverter; public class Main { /**// w w w . j a va 2s . c om * Decode the given Base64 String to a byte array * @param hex * @return */ public static byte[] decode(String base64) { return DatatypeConverter.parseBase64Binary(base64); } }