Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create binary
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01503600
Message ID:
01503690
Views:
49
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform