MemoryStream ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("字符串");
string str = Convert.ToBase64String(ms.ToArray());
原文地址:https://www.cnblogs.com/MasterLin/p/9810191.html
时间: 2024-10-27 16:29:30
MemoryStream ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("字符串");
string str = Convert.ToBase64String(ms.ToArray());
原文地址:https://www.cnblogs.com/MasterLin/p/9810191.html