Android Base64 Byte Array Encode encode(byte[] bytes)

Here you can find the source of encode(byte[] bytes)

Description

encode

Declaration

public static String encode(byte[] bytes) throws Exception 

Method Source Code

//package com.java2s;

import android.util.Base64;

public class Main {

    public static String encode(byte[] bytes) throws Exception {
        return new String(Base64.encode(bytes, Base64.DEFAULT));
    }//from w w w .ja  v a2s.c  o  m
}

Related

  1. encode(byte[] data)
  2. encode(byte[] arr)
  3. encode(byte[] data)
  4. encodeWebSafe(byte[] source, boolean doPadding)