Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. problem in sending file with bluetooth

problem in sending file with bluetooth

Scheduled Pinned Locked Moved C#
csharpdatabasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    behzadcp
    wrote on last edited by
    #1

    hi guys i want to send files with bluetooth and for this i use obex and inthehand components i write this codes for send

    int index = Selected;
    InTheHand.Net.BluetoothAddress address = this.address_array[index];
    System.Uri uri = new Uri("obex://" + address.ToString() + "/" + "1.jpg");
    ObexWebRequest request = new ObexWebRequest(uri);
    request.ReadFile("1.jpg");
    ObexWebResponse response = (ObexWebResponse)request.GetResponse();
    response.Close();

    this code is true but i have a problem this code send for s40 nokia phone and but cant send for symbians thanks a lot

    P 1 Reply Last reply
    0
    • B behzadcp

      hi guys i want to send files with bluetooth and for this i use obex and inthehand components i write this codes for send

      int index = Selected;
      InTheHand.Net.BluetoothAddress address = this.address_array[index];
      System.Uri uri = new Uri("obex://" + address.ToString() + "/" + "1.jpg");
      ObexWebRequest request = new ObexWebRequest(uri);
      request.ReadFile("1.jpg");
      ObexWebResponse response = (ObexWebResponse)request.GetResponse();
      response.Close();

      this code is true but i have a problem this code send for s40 nokia phone and but cant send for symbians thanks a lot

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      As you are using third party components, and the code works for one type of phone but not the others, this would suggest a problem either with the library or with configuration of the library. Your best bet with such a specific query is to post this question in the support forum of the relevant libraries as their support teams will be much better placed to field such a query.

      I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups