Base64 decode with android.util.Base64 - Android android.util

Android examples for android.util:Base64

Description

Base64 decode with android.util.Base64

Demo Code

import android.util.Base64;

public class Main{

    public static byte[] getBase64decode(String content) {
        return getBase64decode(content.getBytes(), 0, content.length(), 0);
    }//from w  ww  .ja va 2  s . c o  m
    public static byte[] getBase64decode(byte[] input) {
        return getBase64decode(input, 0, input.length, 0);
    }
    public static byte[] getBase64decode(byte[] input, int offset, int len,
            int flags) {
        return Base64.decode(input, offset, len, flags);
    }

}

Related Tutorials