Bit convector : Get byte array from string
Posted
by nCdy
on Stack Overflow
See other posts from Stack Overflow
or by nCdy
Published on 2010-05-20T05:24:41Z
Indexed on
2010/05/20
5:30 UTC
Read the original article
Hit count: 193
When I have a string like "0xd8 0xff 0xe0" I do
Text.Split(' ').Select(part => byte.Parse(part, System.Globalization.NumberStyles.HexNumber)).ToArray();
But if I got string like "0xd8ffe0" I don't know what to do ?
also I'm able for recommendations how to write byte array as one string.
© Stack Overflow or respective owner