vbnet convert charatcer to binary

The solution for “vbnet convert charatcer to binary” can be found here. The following code will assist you in solving the problem.

Dim txtBuilder As New System.Text.StringBuilder

For Each Character As Byte In System.Text.ASCIIEncoding.ASCII.GetBytes(MyString))
txtBuilder.Append(Convert.ToString(Character, 2).PadLeft(8, “0”))
txtBuilder.Append(” “)

MyBinary = txtBuilder.ToString.Substring(0, txtBuilder.ToString.Length – 0)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts