I am trying to transfer an image via bluetooth, I see the bytes being received but when I try to load it in ImageView, nothing appears! I have looked at and tried the solutions for other similar posts but nothing is working.
Sender: Bitmap bm = BitmapFactory.decodeResource(getResources(), R.drawable.white); ByteArrayOutputStream baos = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.JPEG, 100,baos); byte[] b = baos.toByteArray(); //also tried reading from inputstream // Bluetooth outStream.write(b); Receiver: mmInStream.read(buffer); Bitmap bm1 = BitmapFactory.decodeByteArray(buffer, 0, buffer.length); image.setImageBitmap(bm1); I tried reading the buffer to one complete string then loading to "decodeByteArray" (after changing it to bytes). Does it have to do something with UUID (mine is fa87c0d0- afac-11de-8a39-0800200c9a66)? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

