[Solved] how to display a bitmap on imageview fetched from sqlite database in android
look at this code: you must load image bytes from cursor and convert it to Bitmap. byte[] imageBytes = getBlob(cursor, “ImageFieldName”, null); if (imageBytes != null) { Bitmap bmp= convertByteArrayToBitmap(imageBytes); imageview1.setImageBitmap(bmp); } private byte[] getBlob(Cursor cursor, String colName, byte[] defaultValue) { try { int colIndex; if (cursor != null && (colIndex = cursor.getColumnIndex(colName)) > -1 … Read more