android中怎么读取DB数据库中的图片

![![图片说明](https://img-ask.csdn.net/upload/201704/12/1491984794_156326.png)图片说明

求具体显示代码,使用JAVAEE编程

看你发的意思 应该是 你们数据库存储方式 是 Base64存储的图片, 代码如下
public Bitmap stringtoBitmap(String string){
//将字符串转换成Bitmap类型
Bitmap bitmap=null;
try {
byte[]bitmapArray;
bitmapArray=Base64.decode(string, Base64.DEFAULT);
bitmap=BitmapFactory.decodeByteArray(bitmapArray, 0, bitmapArray.length);
} catch (Exception e) {
e.printStackTrace();
}

return bitmap;
}



public String bitmaptoString(Bitmap bitmap){

//将Bitmap转换成字符串
String string=null;
ByteArrayOutputStream bStream=new ByteArrayOutputStream();
bitmap.compress(CompressFormat.PNG,100,bStream);
byte[]bytes=bStream.toByteArray();
string=Base64.encodeToString(bytes,Base64.DEFAULT);
return string;
}