Java Base64 base64(byte[] buff)

Here you can find the source of base64(byte[] buff)

Description

base

License

Open Source License

Declaration

public static String base64(byte[] buff) 

Method Source Code

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

import java.util.Base64;

public class Main {
    public static String base64(byte[] buff) {
        return new String(Base64.getEncoder().encode(buff));
        //return DatatypeConverter.printBase64Binary(buff);
    }/*from   www . jav a 2  s .  c o  m*/
}

Related

  1. base64()
  2. base64(byte[] buf)
  3. base64(byte[] data)
  4. base64(byte[] raw)
  5. base64(final byte[] stringArray)
  6. Base64(String msg)