Android Base64 decode from base64 String

Description

Android Base64 decode from base64 String


import android.util.Base64;

public class Main {
    public static void main(String[] argv) throws Exception {
        String base64Str = "";
        System.out.println(decodeFromBase64(base64Str));
    }//from   w ww  .  j ava2s.c  om

    public static String decodeFromBase64(String base64Str) {
        return new String(Base64.decode(base64Str, Base64.DEFAULT));
    }
}



PreviousNext

Related