Hello,
I have a general question: I have to read a binary file and write the Data to a Database.
My client provides data in 8-byte-blocks. Each block is definied as follows:
v1: byte (just a number)
v2: byte (just a number)
v3: word (should contain a date- and/or time-value)
v4: word (should contain a date- and/or time-value)
v5: byte (just a number)
v6: byte (just a number)
Here are my questions:
1. does this mean, that the variables v3 and v4 should be a 2-byte (HEX)- Value?
2. How can I translate this two-byte Hex-Value to a date/time value?
Anybody any idea?
I am really interested in learning about this "binary"-reading of any file in ASP.
P.S.: I already have written the script, that creates an sql-string from the HEX-code to be written to the database. However: the date- values I get, do not really make sense (e.g. Jan. 3rd, 2048)!
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).