IOException in file transfer RRS feed

  • Question

  • Gud day,

    iam developing a simple file transfer using bluetooth. iam trying to send a pdf file from my wm6 to any devices. i was able to send a txtfile from my wm6 to other devices but when i'm trying to send a pdf file it always return a "conflict, final" or a IOException. the connection was forcibly closed by the remote host. is der is a way to force the remote host to accept the file that im trying to send. iam using a inthehand.dll with its newest release 2.4 beta.

    this is my code when i'm sending the pdf file.





    string filepath = @"\Program files\sample\FirstAid.pdf";


    Cursor.Current = Cursors.WaitCursor;


    Uri uri = new Uri("obex://" + (BluetoothAddress)cmbSearch.SelectedValue + "/" + filepath);


    ObexWebRequest request = new ObexWebRequest(uri);



    ObexWebResponse response = (ObexWebResponse)request.GetResponse();





    Cursor.Current = Cursors.Default;



    catch (Exception ex)



    MessageBox.Show("Error:" + ex.Message);


    any form of comment are much appreciated. thanks in advance!

    Thursday, July 30, 2009 5:04 AM


  • Hi,

    Are you sending a big pdf file?
    if so, I guess you may need to set some properity of  request to keep the connection alive during the sending process.
    Since it is not a microsoft class, I think you need to refer to their document on how to do it.


    Friday, July 31, 2009 7:56 AM