Am Sun, Aug 28, 2022 at 11:04:28PM +0200 schrieb Vadim Zeitlin:
>  Anyhow, the idea is that you're supposed to use soci::blob data type for
> binary data. It's not supported by all backends, but should work fine with
> Postgres, have you tried using it?

Correct me if I am wrong, but soci::blob is for Large Objects, not for
accessing bytea? The latter works just like regular text, but can
contain embedded NULs that break normal SOCI use. I tried looking at
passing sizes down properly at some point, but run out of time. I'm
dealing with it by explicitly encoding/decoding the bytea in the
application for now.

Joerg


_______________________________________________
soci-devel mailing list
soci-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soci-devel

Reply via email to