fouadalnoor
fouadalnoor

Reputation: 217

How to export base64 to file?

I am currently trying to decode an image attachment from my e-mail (jpg) from base64 into unicode and then export it into a file (so I can get the image back from the raw data).

I now have the data decoded from base64 into Unicode, but how do I convert Unicode back to an image?

Hope you can help!

Upvotes: 8

Views: 27833

Answers (2)

ItsMe
ItsMe

Reputation: 280

You don't have to convert it to unicode.

On a Linux box you can simply save the base64 decoded attachment to disk and do:

cat foo | base64 -d > bar.jpg

For windows you can download this tool:

http://www.f2ko.de/downloads/base64.zip

Upvotes: 18

Brig Ader
Brig Ader

Reputation: 799

If you just need to decode several files from attachment you can use spesial online services like Base64online.org/decode. It can decode your base64 encoded data into downloadable image.

Upvotes: 0

Related Questions