This code works perfectly for me:
using (SQLiteTransaction mytransaction = myconnection.BeginTransaction())
{
SQLiteCommand mycommand = new SQLiteCommand(myconnection);
SQLiteParameter myparam = new SQLiteParameter("@myparam");
SQLiteParameter myparam2 = new SQLiteParameter("@myparam2");
mycommand.CommandText = "INSERT INTO table VALUES(@myparam, @myparam2)";
mycommand.Parameters.Add(myparam); // <- myparam1 is int
mycommand.Parameters.Add(myparam2); // <- in myparam2 I save the blob image
ms = new MemoryStream();
myparam.Value = 1;
pictureBox1.Image.Save(ms, pictureBox1.Image.RawFormat);
myparam2.Value = ms.ToArray(); // <- here I save the image
mycommand.ExecuteNonQuery();
mytransaction.Commit();
}
hope this work for you