android cursor.getBlob not working

后端 未结 1 514
灰色年华
灰色年华 2021-01-23 10:26

Hi I tried to store and retrieve image to and from sqlite database. My following codes is not working. I\'m not sure what wrong I did. Please help. I created the database table

相关标签:
1条回答
  • 2021-01-23 11:12

    You cannot simply treat byte arrays as text. (To use blobs with execSQL, you would have to use blob literals.)

    To insert a row, use the insert method, which has support for byte arrays.

    0 讨论(0)
提交回复
热议问题