how to convert bytes to string in .net code example
Example 1: c# bytes to string
string result = System.Text.Encoding.UTF8.GetString(byteArray);
Example 2: convert bytes to string and back c#
string base64 = Convert.ToBase64String(bytes);
byte[] bytes = Convert.FromBase64String(base64);