Android Base64 Encode base64Encode(final byte[] data)

Here you can find the source of base64Encode(final byte[] data)

Description

base Encode

Declaration

static String base64Encode(final byte[] data) 

Method Source Code

//package com.java2s;

import org.apache.commons.codec.binary.Base64;

public class Main {
    static String base64Encode(final byte[] data) {
        String res = null;/*www.j  av a2  s  . c  o  m*/
        try {
            res = new String(Base64.encodeBase64(data));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return res;
    }
}

Related

  1. encodedBase64(String currentString)
  2. toBase64(String value)
  3. toBase64(byte[] bytes)
  4. base64Encode(byte[] bytes)
  5. base64Digest(String input)
  6. encode(byte[] src)
  7. to64(String a)
  8. toBase64(byte[] barray)
  9. encodeBase64(byte abyte0[])