Re: Binary data in bytea field - Mailing list pgsql-sql

From Joe Conway
Subject Re: Binary data in bytea field
Date
Msg-id 3C9CCE10.3090703@joeconway.com
Whole thread Raw
In response to Binary data in bytea field  (Iklódi Lajos <il@mithrandir.hu>)
List pgsql-sql
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





pgsql-sql by date:

Previous
From: Jim Martinez
Date:
Subject: Re: false No rows returned error
Next
From: Iklódi Lajos
Date:
Subject: Re: Binary data in bytea field