How to store image in SQLite database from gallery

前端 未结 3 1485
半阙折子戏
半阙折子戏 2021-01-01 07:40

i have tried this code to upload an image from gallery to sqllite database in my application but when my application tries to open gallery it gives FORCE TO CLOSE Error and

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-01 08:06

    Using BLOB data type we can store an image in the SQLite database. The data that actually gets stored in the database is the bytes that make up an image or a file.

    As for obtaining pic from gallery, look here, it seems, you have forgotten "super" call.

提交回复
热议问题