convert to and from uncompressed bitmap to byte array
问题 I am trying to implement two methods. One that takes an ImageView as input and outputs uncompressed byte array. The second takes byte array input and converts to a bitmap. These are the two methods I use however bytesToImage() fails to produce a valid bitmap representation of the output of imageToBytes: private static byte[] imageToBytes(ImageView iv) { byte[] imageInByte = null; Bitmap originalImage; BitmapDrawable drawable = (BitmapDrawable) iv.getDrawable(); originalImage = drawable