字节数组与字符串的转换


将字符串转为byte[],相反把GetBytes()改为GetString().
        byte[] byteArray = System.Text.Encoding.Default.GetBytes(str);

原文地址:https://www.cnblogs.com/msdncrazy/p/3021286.html