"SATISH" <g.satis...@gmail.com> wrote in
message news:49d4a5bc.0c636e0a.6f6d.4...@mx.google.com
> I tried what u suggested me,I got a compiler error cannot convert
> const void * to void* .

Make it

const void* data = sqlite3_column_blob(my_stmt, col_no);
int size = sqlite3_column_bytes(my_stmt, col_no);
CString str(static_cast<const char*>(data), size);

Is that really so hard that you had to ask?

> I am storing string as blob because I want hide my data from others

I'm not sure why you expect a column of type BLOB to be any more 
difficult to examine than a column of type TEXT.

> I am
> writing an application which works on portable apps in my apps I am
> using
> sqlite if any one opens the database using tools available in the
> internet
> any one can view my data

http://www.hwaci.com/sw/sqlite/see.html
http://www.sqlite-crypt.com

> i.e. what I am carrying so I am avoiding
> this by
> storing it using blob.

Not really - rather, you are burying your head in the sand and believing 
that noone can see you now.

Igor Tandetnik 



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

Reply via email to