Android byte array batches
<p>I am sending image through Bluetooth pro-grammatically. When i send image as Byte array at the sending side the byte array length is = 83402 and at the receiving side i am getting byte bacthes of 1024.</p>

<p>I want to combine these 1024 batches into single byte array so that i again convert it as an image.</p>

<p>Here in the msg.obj i get 1024 bacth of byte array.</p>

<p>case MESSAGE_READ:</p>

<pre><code> byte[] readBuf = (byte[]) msg.obj;

 Bitmap bmp=BitmapFactory.decodeByteArray(readBuf,0,readBuf.length);
</code></pre>

<p>After that i am also getting this warning..</p>

<p>"Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer is required"</p>

<p>any help would be appreciated.</p>

<p>Thanks</p>
