Here you can find the source of encode(byte[] arr)
Parameter | Description |
---|---|
arr | - The array to be encoded |
public static String encode(byte[] arr)
//package com.java2s; //License from project: Open Source License import android.util.Base64; public class Main { /**/* w w w. ja va2s . co m*/ * Converts byte array to String * @param arr - The array to be encoded * @return - The returned String */ public static String encode(byte[] arr) { return Base64.encodeToString(arr, Base64.DEFAULT); } }