Here you can find the source of base64Decode(String data)
Parameter | Description |
---|---|
data | to decode |
public static byte[] base64Decode(String data)
//package com.java2s; //License from project: Open Source License import java.util.Base64; public class Main { /**//from w w w . j av a2s.c om * Decodes the specified String into a byte array assuming that the string is Base64 encoded. * * @param data to decode * @return decoded byte */ public static byte[] base64Decode(String data) { byte[] d = Base64.getDecoder().decode(data.getBytes()); return d; } }