Java XML Base64 Encode Decode BytesToBase64String(final byte[] value)

Here you can find the source of BytesToBase64String(final byte[] value)

Description

Bytes To Base String

License

Creative Commons License

Declaration

public final static String BytesToBase64String(final byte[] value) 

Method Source Code

//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
}

Related

  1. base64EncodeBasicCredentials(String username, String password)
  2. base64FromBinary(byte[] value)
  3. base64FromString(String value)
  4. base64ToByte(String data)
  5. byteArrayToBase64String(byte[] data)
  6. byteToBase64(byte[] data)
  7. compressToBase64(byte[] message)
  8. createBase64EncodedStringFromURL(URL url)
  9. decode(String base64)