This is a sample to compare the bease64 encoded string decoding behavior among following methods , org.apache.axiom.util.base64.Base64Utils.decode() java.util.Base64.getDecoder().decode()