Java tutorial
//package com.java2s; import android.util.Base64; public class Main { public static String bytesToString(byte[] bts) { String bmpStr = ""; try { bmpStr = Base64.encodeToString(bts, Base64.DEFAULT); } catch (Exception e) { // TODO: handle exception } return bmpStr; } }