Tuesday, June 30, 2009

Convert byte [] to string

public string convertByteArrayToString(byte[] input)
{
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
string str = enc.GetString(input);
return str;
}

No comments:

Post a Comment

 
Locations of visitors to this page