Here you can find the source of toBase64String(final byte[] data)
Parameter | Description |
---|---|
data | data to be converted |
public static String toBase64String(final byte[] data)
//package com.java2s; //License from project: Apache License public class Main { /**// w w w. j a v a 2 s .com * Converts the specified data to base64 encoded string. * * @param data data to be converted * * @return the specified data converted to base64 encoded string */ public static String toBase64String(final byte[] data) { return javax.xml.bind.DatatypeConverter.printBase64Binary(data); } }