Here I am again but with a different problem.

I have an object that reads data from the serial port. This is binary data that match some key presses. Each key press has a hexadecimal value that I must extract from the binary data.

My questions are the following :
1. Is it possible to convert binary data to hexadecimal data ?
2. If it is possible, how could I make the convertion between binary to hexadecimal ?

Thanks in advance.