From: Joe Conway <mail@joeconway.com>
To: Iklódi Lajos <il@mithrandir.hu>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Binary data in bytea field
Date: Sat, 23 Mar 2002 10:48:48 -0800
Message-ID: <3C9CCE10.3090703@joeconway.com> (raw)
References: <3C9CC6CE.B269A510@mithrandir.hu>
Iklódi Lajos wrote:
> I have a table with field of tyte bytea. I'm reading this table with C,
> libpq.
> The result is a string, with octal groups, like '\200'.
> Is it possible to get data as it is, every byte in one byte?
> Thanks
>
Sure -- just use a binary cursor.
HTH,
Joe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@joeconway.com, il@mithrandir.hu
Subject: Re: Binary data in bytea field
In-Reply-To: <3C9CCE10.3090703@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox