Right and in this case the question altered to What behavior do you expect if the input string doesn't conform to a base64 encoded string? Wrong size (there are not 4 input character to decode 3 binary data byte), forbidden char in string?