如何将base64导出到文件? [英] How to export base64 to file?
本文介绍了如何将base64导出到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在尝试将电子邮件附件(jpg)中的图像附件从base64解码为unicode,然后将其导出到文件中(这样我就可以从原始数据中获取图像了).
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).
现在我已将数据从base64解码为Unicode,但是如何将Unicode转换回图像?
I now have the data decoded from base64 into Unicode, but how do I convert Unicode back to an image?
希望您能提供帮助!
推荐答案
您不必将其转换为unicode.
You don't have to convert it to unicode.
在Linux机器上,您可以简单地将base64解码附件保存到磁盘并执行以下操作:
On a Linux box you can simply save the base64 decoded attachment to disk and do:
cat foo | base64 -d > bar.jpg
对于Windows,您可以下载此工具:
For windows you can download this tool:
http://www.f2ko.de/downloads/base64.zip
这篇关于如何将base64导出到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文