how to save image in sqllite database?

后端 未结 3 889
囚心锁ツ
囚心锁ツ 2021-01-28 05:11

this is my code below which browse imagew gellery and pick image but how do insert image view in database? this code sucessfuly show on screen selected image but not store in da

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-28 05:43

    i would suggest to avoid saving images to database , not only on android .

    this makes sense since it will slow down anything that is related to the database . also , the cursor won't be able to cache the results in order to move between the rows of the tables.

    instead , put a filename to point to a path on your app's storage . you could also add where it's stored (internal/external storage) .

提交回复
热议问题