"SATISH" <[email protected]> wrote in message news:[email protected] > I have written a string into database by converting into "BLOB > Data Type".writing into database is Ok I got a problem when reading > from the database to read a blob from the database I am using the > function "const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);" > this functions returns me const void * where I want to convert this > into "CString".please any one of you can help me in converting const > void * to CString.
Try this: void* data = sqlite3_column_blob(my_stmt, col_no); int size = sqlite3_column_bytes(my_stmt, col_no); CString str(static_cast<char*>(data), size); But why do you store your string as BLOB, and not as text, in the first place? Igor Tandetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

