//string转换为byte[]
byte[] file = Convert.FromBase64String(string数据);

//byte[]转换为string
Convert.ToBase64String(byte[])

相关文章: