Transferring images via Bluetooth to Android

I am developing an Android application that needs to transfer an image from one Android device to another via bluetooth. Image size increases from 3 to 4 MB. The problem I am facing is that when I send an image in the form of bytes, the image is received not in parts, but in parts. For example, I transmitted an image whose length after conversion to bytes was equal to 64k, but at the receiving end it was received in a batch of 1024. How to successfully transfer an image?

Is there an effective way to transfer images?

Am I doing it right or not?

Any help would be appreciated.

+5
source share
3

OK, :) , . -, 1024 . , 1024.I , , . , , .

+1

setType ( "image/jpeg" ) png ,

0

All Articles