byte[]和string相互转换

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

//byte[]转换为string
Convert.ToBase64String(byte[])
原文地址:https://www.cnblogs.com/zecVip/p/4485530.html