2,209
社区成员
发帖
与我相关
我的任务
分享
create table pic(picture Blob)
Cursor cursor = db_test.rawQuery("select picture from pic",null);
if (cursor != null && cursor.getCount() > 0){
Toast.makeText(this,"读取图片成功:" + cursor.getCount(),Toast.LENGTH_SHOW).show();
}
Cursor cursor = db_test.rawQuery("select picture from pic",null);
if (cursor != null && cursor.getCount() > 0 && cursor.moveToFirst()){
Toast.makeText(this,"读取图片成功:" + cursor.getCount(),Toast.LENGTH_SHOW).show();
}
else {
Toast.makeText(this,"读取图片失败" ,Toast.LENGTH_SHOW).show();
}