csharp bytes to string
Code Example - csharp bytes to string
string result = System.Text.Encoding.UTF8.GetString(byteArray);
convert system.byte a string csharp
string result = System.Text.Encoding.UTF8.GetString(byteArray);
string from byte array csharp
var str = System.Text.Encoding.Default.GetString(result);
convert bytes to string and back csharp
string base64 = Convert.ToBase64String(bytes);
byte[] bytes = Convert.FromBase64String(base64);