c# integer to bit string
int value = 8;
string binary = Convert.ToString(value, 2);
c# integer to bit string
int value = 8;
string binary = Convert.ToString(value, 2);
convert string to bits c#
string str = "1000111"; //this is your string in bits
byte[] bytes = new byte[str.Length / 7];
int j = 0;
while (str.Length > 0)
{
var result = Convert.ToByte(str.Substring(0, 7), 2);
bytes[j++] = result;
if (str.Length >= 7)
str = str.Substring(7);
}
var resultString = Encoding.UTF8.GetString(bytes);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us