diff --git a/util/src/main/java/com/infineon/esim/util/Bytes.java b/util/src/main/java/com/infineon/esim/util/Bytes.java index 498e821..a3483f3 100644 --- a/util/src/main/java/com/infineon/esim/util/Bytes.java +++ b/util/src/main/java/com/infineon/esim/util/Bytes.java @@ -383,7 +383,8 @@ public static String encodeBase64String(byte[] input) { * @return Byte array with decoded data */ public static byte[] decodeBase64String(String input) { - return Base64.getDecoder().decode(input); + String str = input.replace("\n",""); + return Base64.getDecoder().decode(str); } public static String encodeString(byte[] input) {