convert base64 String to Byte code in java

java

Solution

You can also use Apache Commons Codec (http://commons.apache.org/codec/)

String example = "SGVsbG8gV29ybGQ="
byte[] decoded = org.apache.commons.codec.binary.Base64.decodeBase64(example .getBytes());

Problem

Possible Duplicate: Decode Base64 data in java I am working on java profile, I want to know , how to convert the base64 string to byte array. could any one please provide code & it will be help fule to me.

Original source

Related problems