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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -