我想将图像存储在SQLite数据库中。
我尝试使用BLOB和String来存储它,在这两种情况下都可以存储图像并且可以检索到它,但是当我使用BitmapFactory.decodeByteArray(...)将其转换为位图时,它返回null。
我已经使用了这段代码,但它返回null。
我已经使用了这段代码,但它返回null。
Bitmap bitmap = BitmapFactory.decodeByteArray(blob, 0, blob.length);