Subject RE: [IBO] Pb storing binary 0 into TByteField Delphi 2007
Author Jason Wharton
Hi Thierry,

I've been looking into this more and I'm wondering if you meant to type TBytesField rather than TByteField.

I looked into this and it does seem that it tries to avoid truncating the string representation of things.
 
What version of Delphi are you using?
 
I could perhaps put together a TIBOBytesField to work around this problem.  Perhaps you could send me a sample app demonstrating the problem and I'll see about getting something to work for you.
 
 
Thanks!
Jason Wharton
 


From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Friday, December 01, 2017 12:35 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Pb storing binary 0 into TByteField Delphi 2007

Hi,

I want to store binary  data into a field defined as Char(20) character set octet. IBO correctly defines the field as TByteField, but I can not store all binary values into it. If data contains binary 0, all bytes after are ignored when I use Field.AsString. When I use Field.Value the bytes after binary 0 including the binary 0 itself are converted with spaces.

Does anyone know a way to acheave my goal ?