here is my pc side:
Using java Syntax Highlighting
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
- ImageIO.write(bufferedImage, "png", baos);
- byte[] b = baos.toByteArray();
- sendString("img"+b.length);
- os.flush();
- os.write(b,0 , b.length);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
and in android side :
note : l is the exact value of the size, the probleme doesn't come from that.
Using java Syntax Highlighting
- byte[] b=new byte[l];
- input.read(b, 0, l);
- img = BitmapFactory.decodeByteArray(b, 0, l);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
and on my log i get this line:
11-04 08:19:25.363: DEBUG/skia(9311): --- decoder->decode returned false
can you help me ? what is wrong ?

