Hi all,

I try to read/write image files in tcl with sqlite.
I would like to keep it simple and not convert to/from base64.

1. write the image:

package req sqlite3
sqlite3 db test
db eval {create table img(data blob)}
set fd [open t.png r]
fconfigure $fd -translation binary
set c [read $fd]
close $fd
db eval {insert into img values(@c)}

2. read the image:

db eval {select * from img}

--> here I get back a string and not the original binary data?


Thank you
rene



--
Sent from: http://sqlite.1065341.n5.nabble.com/
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to