how to convert a string of byte array to a byte[] C# code example Example: c# byte array to string var str = System.Text.Encoding.Default.GetString(result);