Friday, 10 October 2014

How to convert byte[ ] to string?

To convert byte[ ] to string write the following code:

//Convert byte[] to string
 
 
ASCIIEncoding aEncoding=new ASCIIEncoding();

string outputString= aEncoding.GetString(bytes);



Here bytes is your byte[ ]

No comments:

Post a Comment