Hi everybody,
I'm struggling to recompose a picture sent from a server to the Android phone. The connection is established and I get each chunch of the buffer in _NewData event as a byte array.
Which is the most efficient way to reconstruct the image and show on phone's screen?
Thank you in advance.
Mauro Zanin
Thank you Erel. My idea is to load the image in a bigger array till the image is over. I have seen a growing kind of array(name took from Peter Collins' "A growin' kind of love"), maybe it's faster than a temp file??!! SLByteArrayBuffer could be the answer, let's try...
Mauro
I have sutisfied my needs using a fixed length byte array(the image is never bigger than 64000bytes). I have loaded the bytes received in it using persistent counters, then when the buffer is filled, serialize it in a inputstream then assign to a bitmap. A few instructions and no need for SSD space.