Re: Tips for storing files in the database - Mailing list pgsql-general

From Tom Lane
Subject Re: Tips for storing files in the database
Date
Msg-id 28626.1150645250@sss.pgh.pa.us
Whole thread Raw
In response to Tips for storing files in the database  (Kevin Jenkins <gameprogrammer@rakkar.org>)
List pgsql-general
Kevin Jenkins <gameprogrammer@rakkar.org> writes:
> Is there a way to send and read binary data directly from memory,
> without escaping characters, for SELECT and INSERT queries?

See PQexecParams --- an out-of-line bytea parameter, transmitted in
binary format, seems to be what you want on the send side.  For
reading, just ask for the result in binary format.

            regards, tom lane

pgsql-general by date:

Previous
From: Kevin Jenkins
Date:
Subject: Tips for storing files in the database
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Question about openSSL