You can use syntax, for example:
echo "insert into mytable values(1,1, \"`cat image`\")" | sqlite3 yourDb
I am not sure about the meaning of "around blob". Pay attention to back quotes around the cat command, means that the cat command will be executed before the echo.
[EDIT]
Blob is stored as a hexadecimal digit with the prefix "X". You can use the "hexdump" unix command to create a hexadecimal string, but it would be better to write a command line tool that would read the image and paste it. More on this post: http://comments.gmane.org/gmane.comp.db.sqlite.general/64149
source share