[GENERAL] libpq (C++) - Insert binary data

2010-09-30 Thread GOO Creations
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 exampl

Re: [GENERAL] libpq (C++) - Insert binary data

2010-09-30 Thread GOO Creations
he length. Second of all, is this actually the correct way of doing it, isn't there a beter way? Christoph On 2010/09/30 05:30 PM, Vincenzo Romano wrote: 2010/9/30 GOO Creations: Hi there, I'm sitting for days now, and I can't get this to work: I want to insert binary data (

Re: [GENERAL] libpq (C++) - Insert binary data

2010-09-30 Thread GOO Creations
bpq as dependcy, so I'm able to use that. Chris On 2010/09/30 05:38 PM, Steve Atkins wrote: On Sep 30, 2010, at 8:26 AM, GOO Creations wrote: 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 th

Re: [GENERAL] libpq (C++) - Insert binary data

2010-09-30 Thread GOO Creations
, Sep 30, 2010 at 11:42 AM, GOO Creations wrote: Yes there is a reason I'm not using Qt's libraries. Qt doesn't come out with PSQL as default driver (meaning you have to manually download the driver for Qt postgres). I'm developing a plugin for an app that restricts Qt, no