Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009

    Sending file via Bluetooth


    I want to create an mobile application which will be able to send a file to other mobile via Bluetooth.

    Can anybody help me in this issue. If possible give me the code.


  2. #2
    Super Contributor
    Join Date
    Jan 2008
    Amravati, India

    Re: Sending file via Bluetooth

    You can do this using Bluetooth OBEX.
    Bluetooth OBEX is Object Exchange protocol over RFCOMM. RFCOMM is protocol over L2CAP. L2CAP is protocol over actual Bluetooth technology.
    You can use JSR 82 Java APIs for Bluetooth.
    But OBEX feature of JSR 82 is not recommended since it is buggy in many phones. You should code your own OBEX over RFCOMM. But still you can go with OBEX feature of JSR 82 if your phone has no bug with it.
    Use OBEX PUT request, set headers NAME, TYPE and LENGTH and then send file contents.
    Search this forum Wiki for some examples.

  3. #3
    Registered User
    Join Date
    Mar 2003
    maruffaiz, you do not like to search (or code) on your own, do you? Does this help?

    By the way, if you are new to J2ME, MIDlets and Bluetooth, I recommend to start with a book or tutorials rather than code examples as you will have to debug a lot on your own. There are a lot of bugs, tweaks and lessons to be learnt. Bluetooth is complicated. I do not have a good J2ME book at hand right now, however, start with the references of this one for JSR-82 (perhaps your library has its previous edition) or read at least the PDF coming with the specification. If you like to start with tutorials, continue here…

Similar Threads

  1. Problem in sending file to printer via bluetooth
    By madhurahuja in forum Bluetooth Technology
    Replies: 4
    Last Post: 2009-12-02, 10:03
  2. Tranfering file by bluetooth
    By hassan83 in forum Symbian
    Replies: 5
    Last Post: 2008-04-18, 17:01
  3. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  4. J2ME file sending via bluetooth from PC to mobile
    By danishsk in forum Mobile Java General
    Replies: 2
    Last Post: 2007-02-12, 12:56
  5. Delete a file after bluetooth sending
    By cqq in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-07-24, 05:27

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts