Why does BitmapFactory.decodeByteArray return null?

后端 未结 7 870
失恋的感觉
失恋的感觉 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:27

    You get null because you supply invalid bitmap data.

    See documentation of BitmapFactory.decodeByteArray().

提交回复
热议问题