Here you can find the source of BytesToBase64String(final byte[] value)
public final static String BytesToBase64String(final byte[] value)
//package com.java2s; //License from project: Creative Commons License import javax.xml.bind.DatatypeConverter; public class Main { public final static String BytesToBase64String(final byte[] value) { return DatatypeConverter.printBase64Binary(value); }//from w ww. j a v a 2s .c o m }