I use a web service that returns an XSTRING from a SAP system encoded as hexadecimal in the Web service (characters 0 to 9 and A to F). I capture that XSTRING as a string in my code, but now I need to convert it to an array of bytes in order to later convert that array of bytes to a .pdf file.
How do you exactly make that initial conversion from hexadecimal to byte[]?