Here you can find the source of base64ToByte(String data)
Parameter | Description |
---|---|
data | The base64 representation |
public static byte[] base64ToByte(String data)
//package com.java2s; //License from project: Apache License import javax.xml.bind.DatatypeConverter; public class Main { /**//w w w . jav a2s. c o m * From a base 64 representation, returns the corresponding byte[] * * @param data The base64 representation * @return el array binario */ public static byte[] base64ToByte(String data) { return DatatypeConverter.parseBase64Binary(data); } }