What I had to do was use fopen in binary mode and write the data to a file on the computer and then open that new file.  Worked like a charm.

 

And yes use the c_str function when writing the data to a file!

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Kubach
Sent: Thursday, September 14, 2006 1:17 PM
To: [email protected]
Subject: [libpqxx-general] Retrieving binary data

 

I'm using libpqxx 2.5.5 and I'm trying to retrieve binary data from a database.  What's the best way to do this?  I'm using the c_str function, but I'm getting '\' in the data that aren't there.  Are there any methods to get the raw data from the sql query?

Thanks

_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to