Java XML Base64 Encode Decode toB64(byte[] bytes)

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

Description

to B

License

MIT License

Declaration

public static String toB64(byte[] bytes) 

Method Source Code

//package com.java2s;
/*/*from w w w  .  j ava 2s  . c  om*/
 * Utils.java - Copyright(c) 2013 Joe Pasqua
 * Provided under the MIT License. See the LICENSE file for details.
 * Created: Jul 8, 2013
 */

public class Main {
    public static String toB64(byte[] bytes) {
        return javax.xml.bind.DatatypeConverter.printBase64Binary(bytes);
    }
}

Related

  1. getBase64(byte[] bytes)
  2. getHashBase64(String origStr, String digestAlgorithm)
  3. readBase64Bytes(String str)
  4. readFileToBase64(String filePath)
  5. sha256SaltBase64(String password, String salt)
  6. toBase10(String base64)
  7. toBase64(byte[] array)
  8. toBase64Encoded(String unencoded)
  9. toBase64String(final byte[] data)