On Sun, Apr 3, 2011 at 3:15 PM, Lynton Grice <lynton.gr...@logosworld.com>wrote:

>  Thanks, issue solved with the following:
>
> len = sqlite3_column_bytes(stmt,2);
> memcpy(msg->raw_stream_in, sqlite3_column_text(stmt, 2), len);
>
> sqlite3_column_blob is a better function to use. sqlite3_column_text will
add a zero character and if your database uses UTF16 encoding will give you
an interesting result.

Regards,

Paul.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to