String转换为byte数组用byte[] arr = System.Text.Encoding.Default.GetBytes("abcde")byte数组转换为String用:string str = System.Text.Encoding.Default.GetString(arr);