Re: Binary data in bytea field

From: Joe Conway <mail(at)joeconway(dot)com>
To: Iklódi Lajos <il(at)mithrandir(dot)hu>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Binary data in bytea field
Date: 2002-03-23 18:48:48
Message-ID: 3C9CCE10.3090703@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Iklódi Lajos 2002-03-23 23:18:23 Re: Binary data in bytea field
Previous Message Jim Martinez 2002-03-23 18:27:58 Re: false No rows returned error