On Monday, December 15, 2014 2:27 PM, Medhavi Mahansaria
<[email protected]> wrote:
What I am asking actually is how do I display the contents of a BLOB? I am
able to print its length but not its contents.
As documented (http://soci.sourceforge.net/doc/3.2/exchange.html#blob), soci
provides blob interface on top of soci session object to preform read and write
operations on blob data type. So to read the blob type, you use:
- std::size_t read(std::size_t offset, char *buf, std::size_t toRead);
Ensure to allocate memory to buf before reading. Also, although not tested, it
should be possible to read the blob type directly into C++ std::string.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users