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

This sounds like it could be a bug.  I'd like to look into this more.  Would you put together a little sample app showing me the problem?
 
PS. Please send Sara's and my warm regards to the family for all the good memories of our visit there in France.
 
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 ?