i have the next string array {10100100, 11010000, 01000001, 11011000, 00000000, 10111100}
how can i convert it to byte[].
i tried bitconverter and some encoding options it didnt work.
Any ideas?
checho
0
Light Poster
Recommended Answers
Jump to Postpublic static byte[] StrToByteArray(string str)
{
System.Text.ASCIIEncoding encoding=new System.Text.ASCIIEncoding();
return encoding.GetBytes(str);
}
All 5 Replies
abhay_pundir
0
Newbie Poster
checho
0
Light Poster
checho
0
Light Poster
checho
0
Light Poster
checho
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.