May 22, 2003 #1 M marclile Member Joined Mar 11, 2003 Messages 7 does anyone know how to convert binary data, received from the registry as a Byte Array, to something readable, like a string?
does anyone know how to convert binary data, received from the registry as a Byte Array, to something readable, like a string?
May 22, 2003 #2 Bucky Well-known member Joined Dec 23, 2001 Messages 791 Location East Coast User Rank *Expert* Depending on the encoding of the byte array (ASCII, UTF8, etc.), there are different classes for conversion from byte arrays to strings and back. If the encoding is ASCII, for example, you would do this, assuimg b is the byte array and s is a string: Code: s = System.Text.Encoding.ASCII.GetString(b)
Depending on the encoding of the byte array (ASCII, UTF8, etc.), there are different classes for conversion from byte arrays to strings and back. If the encoding is ASCII, for example, you would do this, assuimg b is the byte array and s is a string: Code: s = System.Text.Encoding.ASCII.GetString(b)