postgresql bytea escaping in driver

Hi, I am looking for a solution for writing to a bytea field in postgresql driver. The databaserecord blob field type does not seem to properly escape binary data for bytea column types. And there is not a corresponding option I have found for recordsets with blob fields. I was hoping there might be some workaround or combination of features that someone has already worked through for this issue. I have not used the Xojo plugin for postgresql much, I have always used PG4SQL driver, but it doesn’t compile under newer versions of Xojo.

Did you check out the example project in:
Example projects/database/PostgreSQL/LargeObjects ?