libpq (C++) - Insert binary data

From: GOO Creations <goocreations(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: libpq (C++) - Insert binary data
Date: 2010-09-30 15:26:02
Message-ID: 4CA4AC0A.4030408@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,

I'm sitting for days now, and I can't get this to work:

I want to insert binary data (bytea) into my postgres DB via the c++ libpq.

What I have is a char* (actually a QByteArray) and I want to insert it
into the DB and the retrieve it from there again.

I can't find any good examples or tutorials online, so can anyone help
me (or direct met to a tutorial) on how to insert binary data and
retrieve it again?

Thank you very much
Christoph

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincenzo Romano 2010-09-30 15:30:16 Re: libpq (C++) - Insert binary data
Previous Message Pavel Stehule 2010-09-30 14:53:59 Re: [9.0] On temporary tables