I am trying to store a file larger then 1MB in a SQLite db.  Problem is that even though by default SQLite field can hold up to 950 MB or so and maximum length of an SQL statement  is 1000000 (~970KB).   There is a way described for C/C++ (http://www.sqlite.org/limits.html):  Maximum Length Of An SQL Statement
 
   The maximum number of bytes in the text of an SQL statement is  limited to SQLITE_MAX_SQL_LENGTH which defaults to 1000000.  You can redefine this limit to be as large as the smaller