Hi,
It's very simple, you have to use one of the encoding classes provided in
the framework. You see, depending of how you generated the bytes[] from the
original string you get a different set of data, UNICODE are stored as two
bytes, where ASCII are encoded as 1 byte.
Once you know this you use osmething like ASCIIEncoding.GetString( byte[] );
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"EOS" <no****@nospam.org> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl...
Hi,
I would like to ask on how to convert array of bytes, Byte[] into String?
I tried StringIwant = System.Convert.ToString(byteData);
but it actually return "System.Byte[]" rather than convert the data I
wanted into string.
I guess it should be a rather simple question.
By the way, I am using compact framework for PDA.
Thanks in advance. : )