Here you can find the source of decode(String str)
Parameter | Description |
---|---|
str | - The String to be decoded |
public static byte[] decode(String str)
//package com.java2s; //License from project: Open Source License import android.util.Base64; public class Main { /**//w w w . j av a2s .c o m * Converts from String to byte array * @param str - The String to be decoded * @return - The returned byte array */ public static byte[] decode(String str) { return Base64.decode(str.getBytes(), Base64.DEFAULT); } }