Daily Shaarli

All links of one day in a single page.

January 8, 2024

How to check whether a string is Base64 encoded or not - Stack Overflow
thumbnail

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?