easy one

  • Thread starter Thread starter boxim
  • Start date Start date
B

boxim

how to get from byte[] to string?

i can't remember method to use, Encoding method i think?

TIA
Sam
 
boxim said:
how to get from byte[] to string?

i can't remember method to use, Encoding method i think?

Yes - use the GetString method of the appropriate encoding, eg
string x = Encoding.UTF8.GetString(myBytes);
 
Back
Top