android图片转byte数组,android – 将图像的字节数组转换成imageview
尝试下面的代码转换位图到bytearray和bytearray到位图,它将解决你的问题。将位图转换为ByteArray: –Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);ByteArrayOutputStream stream = new ByteArrayOutputStream...