MemoryStream ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("字符串");
string str = Convert.ToBase64String(ms.ToArray());
MemoryStream ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("字符串");
string str = Convert.ToBase64String(ms.ToArray());