Base64 编码的字符串到文件 [英] Base64 encoded string to file
本文介绍了Base64 编码的字符串到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 base64 编码的字符串.
I have a base64 encoded string.
如何将这个 base64 编码的字符串写入文件?
How can I write this base64 encoded string to a file?
推荐答案
试试这个:
File.WriteAllBytes(@"c:yourfile", Convert.FromBase64String(yourBase64String));
这篇关于Base64 编码的字符串到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文