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

private static byte[] decode(String src) {
    return Base64.decode(src, Base64.DEFAULT);
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

private static byte[] toByte(String hexString) {
    return Base64.decode(hexString, Base64.DEFAULT);
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static byte[] base64Decode(String input) {
    return Base64.decode(input, Base64.NO_WRAP);
}

From source file:Main.java

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

From source file:Main.java

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