I can say I don’t know what I’m asking for help,because I don’t know the format,but I’ve got a picture.
I have a byte[] array ,how do I convert it to that format below(in right)?
alt text http://img512.imageshack.us/img512/3548/48667724.jpg
Its not plain ascii.
Use
b.ToString("x2")to format a byte value into a two character hexadecimal string.For the ASCII display, check if the value corresponds to a regular printable character and convert it if it is:
Or shorter:
To do it on an array: