marclile Posted May 22, 2003 Posted May 22, 2003 does anyone know how to convert binary data, received from the registry as a Byte Array, to something readable, like a string? Quote
*Experts* Bucky Posted May 22, 2003 *Experts* Posted May 22, 2003 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: s = System.Text.Encoding.ASCII.GetString(b) Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.