I find something else though.
equally gets the conversion done. The fully qualified name of the class is sun.misc.BASE64Decoder and it 'ships' with
java se (well, the
Sun Oracle implementation).
For those who want to use this to convert a html dataURL to binary data (good old bytes), you'll keep getting exceptions if you try convert directly. That's because, dataURL contains some metadata (
http://tools.ietf.org/html/rfc2397) before the actual data. It you print the data url, you'll see similar to:
data:image/png;base64,iVBORw0KGgoAAAA
The actual data starts after
base64,
So you do this first:
But of course you already knew that.