Payload extraction in byte sequence

Sep 11, 2012 at 4:53 PM

I have extracted the packet payload using libpcap. The extracted payload is in the form of hexadecimal and ascii. For my further project development i have to extract packet payload as a byte sequence. Could any one help me how can i extract payload in the form of byte array or sequences.

Coordinator
Sep 14, 2012 at 11:46 AM

Do you just need to convert Hexadecimal string to bytes?

http://stackoverflow.com/questions/321370/convert-hex-string-to-byte-array