binary data

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?
 
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)
 
Back
Top