while(rs.next()){
String im = rs.getString("img_name");
byte[] image = im.getBytes();
Bitmap bitmapProfile = BitmapFactory.decodeByteArray(image, 0, image.length);
ImageView img = (ImageView) findViewById(R.id.imageview);
img.setImageBitmap(bitmapProfile);
}
在上面的代码中, bitmapProfile返回空值