解决 Make sure the Cursor is initialized correctly before accessing data from it

前言

在使用sqlite 数据库存储图片时遇到如下错误:

Android cursor Error : Make sure the Cursor is initialized correctly before accessing data from it


原因:

There is a 1MB limit per operation. (I am unsure if this is per row, or per column in the case of SQLite queries). The limit is due to the SQLite API interacting with sqlite out-of-process over the Binder/Parcel IPC system. The same limit applies for values within a Bundle (Intent extras, for instance).

简单的说 就是对二进制操作有大小的限制 


解决办法:

就是对图片进行压缩处理 即可

你可能感兴趣的:(Android)