Here you can find the source of base64Encode(byte[] param)
public static byte[] base64Encode(byte[] param)
//package com.java2s; //License from project: Open Source License import java.util.Base64; public class Main { public static byte[] base64Encode(byte[] param) { return Base64.getEncoder().encode(param); }/*from w w w . ja v a 2 s .co m*/ }