UIImage equivalent on Android -


this question has answer here:

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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -