Hacker News new | ask | show | jobs
by devadvance 971 days ago
Note: depending on the language, you might have to do more work to ensure that the original data is in a format that base64 encoding will support.

For example, in JavaScript, that involves making sure it's a well-formed string. I did a write-up of that here: https://web.dev/articles/base64-encoding.