Why does BitmapFactory.decodeByteArray return null?

后端 未结 7 829
失恋的感觉
失恋的感觉 2020-11-28 16:02

It\'s the simple code and instead of getting result to set the Bitmap, I get null. Can anyone tell me where I am making a mistake?

String test = \"test\";
by         


        
相关标签:
7条回答
  • 2020-11-28 16:35

    byte array of compressed image data - what is this and how it is different from byte[] data = new byte[sz]?

    Nobody so far gave clear answer! All that people been talking about is that there is an invalid Bitmap. A more informative answer would be how to create a valid byte array on the low level

    0 讨论(0)
提交回复
热议问题