Search Postgresql Archives

libpq (C++) - Insert binary data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 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

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux