Posted By

roboninjapiratejesus on 10/13/11


array byte conversion c#

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Byte array to String in .Net 3.5

 / Published in: C#

ASCIIEncoding class has another method, GetByte(), which does the opposite of this one.

  1. // Converting a Byte Array to a String object
  2. using System.Text;
  4. public byte[] ByteArrayToString(string str)
  5. {
  6. return new ASCIIEncoding().GetString(str);
  7. }

Report this snippet  

You need to login to post a comment.