SetLength(ByteArray, (length(aHexString) div 2) ) class function TConvert.HexToPythonEscAscii(const aHexString: string): string Please feel free to comment and make suggestions to improve the code. to turn my original hex string into the required format I'm using this code, hope this helps someone else in the future. I have successfully deciphered what is going on with this now. These are biometric templates used by the Suprema Reader if that helps. HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml charset=ISO-8859-1 Transfer-Encoding: chunked Date: Thu, 17:28:41 GMT What I want to know is how do I convert the hex I have to the format they are using in Delphi xe4?īTW the two block do not contain the same data but it is the same type of data ie the format is the same just different encodingĮxample of the data being sent POST ******** HTTP/1.1 Host: 172.16.1.136:8080 Accept-Encoding: identity Content-Length: 1552 Content-Type: text/xml Authorization: 1344354:PASS User-Agent: ********* i'm struggling to identify the encoding used and the manufacturer is not providing much help. I know that \x is usually used to represent ascii chars using their hex values in 2 digit pairs but looking at the data this not the case. The software in the device as far as I know is written in Python and i'm writing the interface in Delphi. Im working on a program to interface with some hardware that is sending data that has been encoded and wrapped to send within a CDATA block in an XML document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |