如果您已经有字节数组,请使用BitmapFactory: Bitmap bitmap = BitmapFactory.decodeByteArray(yourByteArray, offset, length);