UIImage equivalent on Android -
this question has answer here:
- how convert byte array bitmap 2 answers
is there equivalent uiimage ios class in android? need object can take in byte array , store image in memory can use later.
you can convert bitmap byte array , store want. use that
bitmap bmp = intent.getextras().get("data");
bytearrayoutputstream stream = new bytearrayoutputstream();
bmp.compress(bitmap.compressformat.png, 100, stream);
byte[] bytearray = stream.tobytearray();
Comments
Post a Comment