I'm trying to figure out how to send files with an aplication I'm working in. I have to send files from mobile to laptop and vice versa, my mobile is S40. (I am able to start the connection and sending characters using Streamconnection for the moment)

I will use javax.bluetooth SPP (not javax.OBEX) , but I don't know if there is any method to send entire files or should I split them in pieces and send them as separate bytes. How can I make it? Do you have any similar code for having a look?

By the way I'm interested about sending audio files. I can record voice in amr format, is there any way to play an amr file with any method in java library?

Thanks a million