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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top