Yes, it should be raw binary data. My question is, how do I create the file of binary data from VFP?
I cannot just say:
STRTOFILE(Hex2Bin("74"),"C:\Test.txt")
The output would be an ASCI file with the content of "01110100".
>Isn't that just raw binary data? Read it from a file and send it (with FileToStr() or FREAD). If you really need a string there's CreateBinary() and STRCONV() which can turn data into blobs that can be sent over COM.
>
>+++ Rick ---
>
>>Hello,
>>
>>A client needs to get a raw iso message, which we need to send to their application.
>>
>>The message requires the data to be sent in raw binary format.
>>
>>As a comparison, I have the hex values to the left, and the binary values to the right, to see how that should translate.
>>
>>I played with Hex2Bin, but the output is different than what I see here, I get the '0' and '1' notation as string, but it should look like this:
>>
>>
>>00 00 00 74 60 00 03 00 00 02 00 30 38 05 80 20 ...t`......08.€
>>
>>
>>Anybody did something like this before?
Christian Isberner
Software Consultant