I want to decode a Base64 encoded string, then store it in my database. If the input is not Base64 encoded, I need to throw an error.

How can I check if a string is Base64 encoded?

23 Answers
23

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *