I\'m trying to decode a simple Base64 string, but am unable to do so. I\'m currently using the org.apache.commons.codec.binary.Base64 package.
org.apache.commons.codec.binary.Base64
The test
Modify the package you're using:
import org.apache.commons.codec.binary.Base64;
And then use it like this:
byte[] decoded = Base64.decodeBase64("YWJjZGVmZw=="); System.out.println(new String(decoded, "UTF-8") + "\n");