Base64 encoded string to file

前端 未结 2 1674
既然无缘
既然无缘 2020-12-08 09:13

I have a base64 encoded string.

How can I write this base64 encoded string to a file?

相关标签:
2条回答
  • 2020-12-08 09:32

    Try this:

    File.WriteAllBytes(@"c:\yourfile", Convert.FromBase64String(yourBase64String));
    
    0 讨论(0)
  • 2020-12-08 09:41

    As a first pointer, check out MSDN's documentation on the XmlTextreader's ReadBase64 Method... http://msdn.microsoft.com/en-us/library/system.xml.xmltextreader.readbase64.aspx

    0 讨论(0)
提交回复
热议问题