Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export base64 to file?

Tags:

base64

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!

like image 812
fouadalnoor Avatar asked Feb 01 '13 01:02

fouadalnoor


1 Answers

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

like image 109
ItsMe Avatar answered Jun 29 '23 04:06

ItsMe