How to take a picture and save in SQLite database on iOS

后端 未结 3 927
小蘑菇
小蘑菇 2021-02-06 19:33

I have a camera application in which when I click on the camera button the camera opens and user can take picture from camera or from photo-library.

I have done the came

3条回答
  •  野的像风
    2021-02-06 19:57

    You can create a blob type data field in your database and then save the byte data into that column. But it is a bad practice to save images in database. Instead you can save images in documents directory unless it is very necessary to save images in database.

提交回复
热议问题