C#: convert the byte array to string

byte[] arrData = new byte[myLength];
Stream.Read(arrData, 0, myLength);
 
String s = System.Text.ASCIIEncoding.ASCII.GetString(arrData);

Tags:

Comments are closed.