我正在从SqliteDatabase转换Base64图像数据并将其存储到字符串中并附加到imageview
获取nullpointer
异常代码
beloArrayList<Requirement_vo> vo=sqllietDatabaseConnection.getAllRequirmentData();
if(vo != null){
for(Requirement_vo vo1:vo){
String imageEncoded1=vo1.getFLAG1();
Log.v("ImageDetails====>", ""+imageEncoded1);
Log.v("ImageDetailsLat====>", ""+vo1.getFLAG2());
Log.v("ImageDetailsLan====>", ""+vo1.getFLAG3());
byte[] decodedString = Base64.decode(imageEncoded1, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
display.setImageBitmap(decodedByte);
}
}