@Calendee

Converting base64 to an Image

A very long time ago, I wrote a post about Getting base64 of an Image.

Today, I needed to do the inverse of that. I had a text file with base64 data that needed to be converted into a JPEG file.

How to proceed? Well, first, check the docs:

> man base64

Then, it's pretty easy to figure out:

base64 -D -i ~/Downloads/base64_data.txt -o ~/Downloads/new_image.jpg  

Tada! You will now have a JPEG image from base64 data.