从不同资源获取位图时,请尝试以下代码…
BitmapFactory.Options options = new BitmapFactory.Options();options.inJustDepreBounds = true;BitmapFactory.depreByteArray(base64converted,0,base64converted.length,options);// Calculate inSampleSizeoptions.inSampleSize = calculateInSampleSize(options, 500, 500);// Depre bitmap with inSampleSize setoptions.inJustDepreBounds = false;Bitmap bmp1=BitmapFactory.depreByteArray(base64converted,0,base64converted.length,options);
遵循此链接上的教程有效显示位图的方法



