how to show incoming binary data as hex values
i have porgram that is data reading via usb..
i have to check with diff devices ...have diff buffer size(so cant be fixed).
i send comand to read fone and i get result in binary..
currently am converting it in string..
but i need those as hex values...
comand
Code:
Byte[] sp ={0x1B, 0x00, 0x10, 0x53, 0x00, 0x05, 0x00, 0x0F,
0x03, 0x12, 0x0D};
result
Code:
string spp = read_write_str(deviceHandle, sp, sp.Length);
Thread.Sleep(100);
richTextBox2.Text += spp
also how to undefien buffer size...