public static String encodeBase64(byte[] buffer){
  return new String(Base64.encode(buffer));
}

public static String encodeBase64 ( byte [ ] buffer ) { return new String ( Base64 . encode ( buffer ) ) ; }
convert from a byte array to a base64 encoded string .
