How do I import a .sql file to create local database in SQLite

I am sorry if this question has been brought up previously. I did a search but couldn’t find anything helpful on this topic.

I have a test.sql file that was dumped from my SQLite database. The test.sql file resides in the application folder in document directory.

I was wondering if I can do db.exec(test.sql)

will that work?

The test.sql is storing images as BLOB which I need to retrieve within my application. Any help would be much appreciated.
[import]uid: 2949 topic_id: 3017 reply_id: 303017[/import]