Example usage for android.util Base64 DEFAULT

List of usage examples for android.util Base64 DEFAULT

Introduction

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

Prototype

int DEFAULT

To view the source code for android.util Base64 DEFAULT.

Click Source Link

Document

Default values for encoder/decoder flags.

Usage

From source file:Main.java

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

From source file:Main.java

public static String encode(String str) {
    return Base64.encodeToString(str.getBytes(), Base64.DEFAULT);
}

From source file:Main.java

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

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 base64Decode(String str) {
    byte[] strByte = Base64.decode(str, Base64.DEFAULT);
    return strByte.toString();
}

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 base64(String str) {
    return Base64.encodeToString(str.getBytes(), Base64.DEFAULT);
}

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[] stringToBytes(String string) {
    return Base64.encode(string.getBytes(), Base64.DEFAULT);
}

From source file:Main.java

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