Convert Bytes to String in C#
string str = “”;
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
byte[] b = new byte[1024];
str = enc.GetString(b);
string str = “”;
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
byte[] b = new byte[1024];
str = enc.GetString(b);
You must be logged in to post a comment.