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

From Joe Conway
Subject Re: Binary data in bytea field
Date
Msg-id 3C9D0F4A.5050101@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:
>>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
> 
> 
> Thanks, really it is in docs.
> How can I make binary updates?
> 
> Lajos
> 

See:
http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/libpq-exec.html
section 1.3.3 "Escaping binary strings for inclusion in SQL queries".

Joe



pgsql-sql by date:

Previous
From: Iklódi Lajos
Date:
Subject: Re: Binary data in bytea field
Next
From: "jack"
Date:
Subject: About temporary table