Converting byte[] to string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I wonder... is it possible to convert a 'byte[]' array to a string? (
cocerning the byte[] array was initialized using System.String.ToCharArray() )
 
Nadav said:
Hi,

I wonder... is it possible to convert a 'byte[]' array to a string? (
cocerning the byte[] array was initialized using System.String.ToCharArray() )

Here is the example:

byte[] b= "hello".ToCharArray();
string str = b.ToString();


Keep in mind that every object has ToString() function.

Andrey aka Muzzy
 

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