What is the best way to store the image in the memory of app?

后端 未结 4 1107
再見小時候
再見小時候 2021-01-16 07:38

I\'m using sqlite db in my app and now I would like to allow user customize the background image make them able to select one from their gallery.

Should I just store

4条回答
  •  旧时难觅i
    2021-01-16 07:58

    SQLite has a cursor limit of 1Mb. So, you will probably not be able to store it completely in the DB, when you go to to request it will probably be truncated. Store the path to the image in the database table, and access it that way.

提交回复
热议问题