Re: Extracting data from BYTEA column to binary file using libpq - Mailing list pgsql-general

From Daniel Verite
Subject Re: Extracting data from BYTEA column to binary file using libpq
Date
Msg-id 676f7a06-f77a-4e5a-8b8a-5078634879f7@mm
Whole thread Raw
In response to Extracting data from BYTEA column to binary file using libpq  (Julia Jacobson <julia.jacobson@arcor.de>)
List pgsql-general
    Julia Jacobson wrote:

>   ofstream myFile ("picture.jpg", ios::out | ios::binary);
>   myFile.write (contents);

You must specify the number of bytes to write.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

pgsql-general by date:

Previous
From: Gary Fu
Date:
Subject: select sql slow inside function
Next
From: Tatsuo Ishii
Date:
Subject: Re: pgpool-II 3.0 + postgres 9rc1 + md5 authentication not working