110,536
社区成员
发帖
与我相关
我的任务
分享
这是代码,也没有涉及编码的东西呀
public static void Base64ToFile(string source, string filename, string filepath)
{
try
{
byte[] bytes = Convert.FromBase64String(source);
using (var fs = new FileStream(filepath + filename, FileMode.Create, FileAccess.Write))
{
fs.Write(bytes, 0, bytes.Length);
fs.Flush();
}
}
catch (Exception e)
{
}
}