>Try
http://www.tek-tips.com/faqs.cfm?fid=4461>
>>Hi All, just messing around - not a work thing - if I have a string of binary digits such as
>>
>>
>>string s = "0101000001000101010101000100010101010010"
>>
>>
>>how do I convert it to text ?, all the Convert.* methods I've looked at require a byte[] array as an arg and I don't know how to create one !
Hi Neil, I wanted a c# solution but ! this is what I've tried so far - the binary string s1 represents "PETER"
UTF8Encoding enc = new UTF8Encoding;
string s1 = "0101000001000101010101000100010101010010";
byte[] b = enc.GetBytes(s1);
string s2 = Convert.ToBase64String(b);
any ideas ?
Regards,
Peter J. Kane
Pete