Java XML Base64 Encode Decode base64(final byte[] bytes)

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

Description

Converts the given byte array to a base64 string.

License

Open Source License

Declaration

public static String base64(final byte[] bytes) 

Method Source Code

//package com.java2s;

import javax.xml.bind.DatatypeConverter;

public class Main {
    /** Converts the given byte array to a base64 string. */
    public static String base64(final byte[] bytes) {
        return DatatypeConverter.printBase64Binary(bytes);
    }//  w  w  w  .j  a  v a  2  s .  c  o m
}

Related

  1. base64(final byte[] bytes)
  2. base64Decode(String base64)
  3. base64decode(String base64Content)
  4. base64Decode(String property)
  5. base64en(String string)