Subject Re: [firebird-support] Re: Treat a VARCHAR OCTETS column as binary in Delphi
Author Helen Borrie
At 12:07 PM 13/02/2005 +0000, you wrote:


>--- In firebird-support@yahoogroups.com, Olivier Mascia <om@t...> wrote:
> > This is a dbExpress issue because the engine and the client dll have no
> > issues returning such a binary string, I did it often in the past (last
> > year). Unless a recent error has been introduced, it should be okay,
> > but I can't speak for the dbExpress driver.
>
>Wonder if I can CAST them to binary or something to cheat dbExpress.

Try using QuotedStr()

...field.AsString := QuotedStr('12 3B 00 AA');

./hb