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[ ]
//Convert byte[] to string
ASCIIEncoding aEncoding=new ASCIIEncoding();
string outputString= aEncoding.GetString(bytes);
Here bytes is your byte[ ]
No comments:
Post a Comment