http://www.sqlite.org/c3ref/column_blob.html
sqlite3_column_bytes should do what you need.
-Original Message-
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Paolo Bolzoni
Sent: Thursday, April 18, 2013 7:02 AM
To: sqlite-users@sqlite.org
Subject: [sqlite] sqlite3_column_blob does not return the size of the blob?
I need to save some blob (arbitrary precision numbers representations) on my
sqlite3 database.
And confused by the function:
const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);
I would expect an output parameter (example type size_t*) to get the size of
the blob, but it is not there.
How can I know the length of the blob to read it correctly?
Thanks,
Paolo
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users