dbTalk Databases Forums  

Reading binary data that contains x'0A' characters, inserts x'0D' characters

comp.database.ms-access comp.database.ms-access


Discuss Reading binary data that contains x'0A' characters, inserts x'0D' characters in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeremy
 
Posts: n/a

Default Reading binary data that contains x'0A' characters, inserts x'0D' characters - 06-18-2004 , 10:27 AM






I an trying to read a binary opened in random mode with a specified
file length. The binary data may contain the following HEX string "03
0A FE 2A..." starting in position 100
When I display position 100 I get x"03", 101 x"0A", 102 x"0D", 103
x"FE", etc...
The result is that the record layout is increased by one character, so
nothing aligns correctly.

I am using MS Access 2000 (9.0.3821 SR1).
This problem only happens on Windows 2000 Server SP 4, it doesn't
occur on Windows XP 2002 SP 1 or Windows 2000 Professional SP 4.

Is this an environment setting?
Why is it inserting CR/LF pairs in the wrong order, normally x"0D0A",
not that it matters?

Reply With Quote
  #2  
Old   
Luc
 
Posts: n/a

Default Re: Reading binary data that contains x'0A' characters, inserts x'0D' characters - 06-20-2004 , 12:03 PM






Is it a large file? Is there any file description.
In any case, I can perhaps help you to convert you HEX file with a tool I
have on my computer.

"Jeremy" <jtytherleigh (AT) tnsi (DOT) com> a écrit dans le message de
news:94b7bc62.0406180727.2cd64d80 (AT) posting (DOT) google.com...
Quote:
I an trying to read a binary opened in random mode with a specified
file length. The binary data may contain the following HEX string "03
0A FE 2A..." starting in position 100
When I display position 100 I get x"03", 101 x"0A", 102 x"0D", 103
x"FE", etc...
The result is that the record layout is increased by one character, so
nothing aligns correctly.

I am using MS Access 2000 (9.0.3821 SR1).
This problem only happens on Windows 2000 Server SP 4, it doesn't
occur on Windows XP 2002 SP 1 or Windows 2000 Professional SP 4.

Is this an environment setting?
Why is it inserting CR/LF pairs in the wrong order, normally x"0D0A",
not that it matters?



Reply With Quote
  #3  
Old   
Jeremy
 
Posts: n/a

Default Re: Reading binary data that contains x'0A' characters, inserts x'0D' characters - 06-21-2004 , 09:47 AM



The files are quite large and contain financial data. The files
contain normal ASCII based reocrds, i.e. delimited by CR/LF pairs, but
each record contains binary strings (position 100 to 350) in the
middle which cannot be converted, because it will corrupt the binary
data.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.