Friday, 10 August 2018

Decode base64 into bytes




public static final String CHAR_ENCODING = "ISO-8859-1";
    public static byte[] getBytesDecoded(String toDecode) throws UnsupportedEncodingException{
        return Base64.getDecoder().decode(toDecode.getBytes(CHAR_ENCODING));
    }




No comments:

Post a Comment

links for Data Structure

  1) 𝐁𝐞𝐜𝐨𝐦𝐞 𝐌𝐚𝐬𝐭𝐞𝐫 𝐒𝐧 π‹π’π§π€πžπ 𝐋𝐒𝐬𝐭:  https://lnkd.in/gXQux4zj 2) 𝐀π₯π₯ 𝐭𝐲𝐩𝐞𝐬 𝐨𝐟 π“π«πžπž π“π«πšπ―πžπ«π¬πšπ₯𝐬...