how to convert byte array to string c# code example
Example 1: c# store byte array as string
public static void Main()
{
byte[] bytes = Encoding.Default.GetBytes("ABC123");
Console.WriteLine("Byte Array is: " + String.Join(" ", bytes));
string str = Encoding.Default.GetString(bytes);
Console.WriteLine("The String is: " + str);
}
Example 2: c# byte array to string
var str = System.Text.Encoding.Default.GetString(result);