Java Base64 Encode toBase64(byte[] array)

Here you can find the source of toBase64(byte[] array)

Description

to Base

License

Open Source License

Declaration

private static String toBase64(byte[] array) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Base64;

public class Main {
    private static String toBase64(byte[] array) {
        return Base64.getEncoder().encodeToString(array);
    }//  ww  w. j a  v a  2  s . c om
}

Related

  1. base64UrlEncode(final byte[] v)
  2. encodeBASE64(InputStream in, OutputStream out)
  3. encodeBase64(InputStream is, OutputStream os)
  4. encodeBase64(String data)
  5. encodeBase64(String data)
  6. toBase64(byte[] aValue)
  7. toBase64(byte[] buf, int start, int length)
  8. toBase64(byte[] data)
  9. toBase64(byte[] data)