Java tutorial
//package com.java2s; import android.util.Base64; public class Main { /** * 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); } }