Android Save images to SQLite or SDCard or memory

前端 未结 5 953
小蘑菇
小蘑菇 2020-11-29 05:58

I need to fetch images and some other data from server and then display it in the List. But as the number of records can be pretty large so I am not sure if I should save im

5条回答
  •  -上瘾入骨i
    2020-11-29 06:43

    It's generally considered bad form to save binary data like an image in a database. In most cases, for some technical reasons, it will actually end up damaging the performance of your database. Instead, save the images you want to cache to the SD card and just store the filepath of those images in the database.

提交回复
热议问题