Example usage for android.util Base64 decode

List of usage examples for android.util Base64 decode

Introduction

In this page you can find the example usage for android.util Base64 decode.

Prototype

public static byte[] decode(byte[] input, int flags) 

Source Link

Document

Decode the Base64-encoded data in input and return the data in a new byte array.

Usage

From source file:Main.java

public static byte[] decode(String base64) throws Exception {
    return Base64.decode(base64.getBytes(), Base64.DEFAULT);
}

From source file:Main.java

public static String bytesToString(byte[] bytes) {
    return new String(Base64.decode(bytes, Base64.DEFAULT));
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static String base64Decode(String str) {
    byte[] strByte = Base64.decode(str, Base64.DEFAULT);
    return strByte.toString();
}

From source file:Main.java

public static String deToStr(String str) {
    String deStr = new String(Base64.decode(str.getBytes(), Base64.DEFAULT));
    return deStr;
}

From source file:Main.java

public static String getFromBASE64(String s) {
    byte[] result = Base64.decode(s, Base64.DEFAULT);
    return new String(result);
}

From source file:Main.java

public static String base64Tostring(String data) {
    return new String(Base64.decode(data, Base64.DEFAULT));
}

From source file:Main.java

public static byte[] getByteArrFromStringFromBase64(String str) {
    return Base64.decode(str, Base64.DEFAULT);
}

From source file:Main.java

public static byte[] decode(String paramString) throws Exception {
    return Base64.decode(paramString, 0);
}