-3

I use C# Windows Form. I seem need convert to string. How I can do this?

byte[] data = new byte[256];
Babaev
  • 101
  • 10

1 Answers1

1

Make sure you're using System.Text and this should work:

string mystr = Encoding.UTF8.GetString(data);
Ousmane Traore
  • 623
  • 2
  • 7
  • 15