hi
Try to create your own protocol for example let the data size is 1024 bytes (so your buffer will be : 1024 bytes data size + packet header). Divide your file to packet size and sent them progressively.
Simple communication between 2 devices
ANDROID OTHER DEVICE
<----- REQUEST FILE
SEND INFO ABOUT FILE ---->
-------------------------------------------------------------------- do in loop
<----- REQUEST FIRS AND NEXT PACKETS
SEND FIRST PACKET AND NEXT PACKETS --->
<---- CONFIRM RECEIVE PACKET
PREPARE NEXT PACKET
-------------------------------------------------------------------- end loop
I will resolve very similar problem in my project. I need to send JPG to other none Android device (without operation system), but I have already have implemented our communication protocol, so I think it will be easy to do it for me
. The device for the other side is equipment in Bluetooth module and it works on Atmel processor. ;)
Regards Przemek