Thursday, February 19, 2009

Convert byte[] to String

I was going to make one big entry containing lots of little bits of code, then realised I only had one to put in, because I keep forgetting it...

Converting a byte[] (array) into a String:

string outStr = System.Text.Encoding.UTF8.GetString(inByteArr);

No comments:

Post a Comment