c# BluetoothListener file receiving
<p>I am unable to receive/read the data from "BluetoothListener". I am sending PNG file from mobile via bluetooth and trying to receive the file from PC(Bluetooth dongle). Below is the code that I am using</p>

<p>Sample 1:</p>

<pre><code>   void listening()
    {
        try
        {
            Guid Rffcomm = BluetoothService.ObexObjectPush;
            bool run = true;
            BluetoothListener btl = new BluetoothListener(Rffcomm);
            btl.Authenticate = false;
            btl.Start();
            while (run)
            {
                try
                {
                    BluetoothClient btReceiver = btl.AcceptBluetoothClient();
                    if (btReceiver.Connected)
                    {
                        FileStream fileStream = File.Create("C:\\TEST\\Output\\test.png");
                        DownloadFile(btReceiver.GetStream(), fileStream);
                        fileStream.Close();
                    }
                    else
                    {
                        Console.WriteLine("BTClient  listening ::Not connected");
                    }

                }                
                catch (Exception ex)
                {
                    Console.WriteLine("BTClient  listening ::" + ex);
                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("BTClient  listening ::" + ex);
        }
    }
</code></pre>

<p>Sample 2:</p>

<pre><code>   Guid service = new Guid("{63236351-8712-4052-8A8E-A94C3ABF2B7D}");
            BluetoothListener btl = new BluetoothListener(service);
</code></pre>

<p>I am getting only 7bytes of data when i read the network stream. I am not sure whether I have to send some ACK for the 7 bytes or missing some initialization.
I tried both ways but i am getting "Transfer is forbidden by target device" in Mobile(Source.)</p>

<p>I am trying to read the data that is available(stream.DataAvailable) , if no data is available then wait for 60 secs and try another read. But data is not available evenafter that! Please correct me where I am going wrong.</p>
