Java XML Base64 Encode Decode byteToBase64(byte[] data)

Here you can find the source of byteToBase64(byte[] data)

Description

byte To Base

License

Apache License

Declaration

public static String byteToBase64(byte[] data) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.DatatypeConverter;

public class Main {

    public static String byteToBase64(byte[] data) {

        return DatatypeConverter.printBase64Binary(data);

    }/* w  ww .  j  a va2 s. co  m*/
}

Related

  1. base64FromBinary(byte[] value)
  2. base64FromString(String value)
  3. base64ToByte(String data)
  4. byteArrayToBase64String(byte[] data)
  5. BytesToBase64String(final byte[] value)
  6. compressToBase64(byte[] message)
  7. createBase64EncodedStringFromURL(URL url)
  8. decode(String base64)
  9. decodeBase64(File file)