how to insert image in sqlite database in iphone

前端 未结 1 1231
盖世英雄少女心
盖世英雄少女心 2021-01-29 03:00

How to insert image in database, I tried to but its not inserting. Where is the problem in query? This is my model class .m file: code in this file after sqlite3_prepare_v

相关标签:
1条回答
  • 2021-01-29 03:10

    You should not insert blobs in db, this will make your db very very slow!!

    You should save the image in documents directory of the app and in the db save only the path of the image.

    0 讨论(0)
提交回复
热议问题