Author Topic: Too big file -- Exception  (Read 1792 times)

Raj

  • Guest
Too big file -- Exception
« on: January 14, 2009, 08:12:05 AM »
Hi Mike,

I have a scenario where I have taken some photos from Mobile Device,

Doing something with that photograph, Now I want to send the photograh to same mobile through object push connection (not File transfer)


when I open the connection through
objOppclient.Open();

then in connect Event i.e objOppclient_Connect Event
I am getting e.result =0 that means successful connection, but when I am putting the file then a exception is thrown that "Too Big File".

I have checked the file size which is 194 kb (198,746 bytes) only.

Please let me know that what I am doing wrong.


My Code is below:

if (e.Result == 0)
            {
                try
                {
                    wclOPPClient objOppclient = (wclOPPClient)sender;
                    FileStream fStream = File.OpenRead(CurrentFileToSend);
                    Stream objStream = (Stream)fStream;
                    try
                    {
                        String AFile = System.IO.Path.GetFileName(CurrentFileToSend);
                        objOppclient.Put(AFile, fStream);
                    }
                    catch
                    { throw; }
                    finally
                    {
                        fStream.Close();
                        fStream = null;
                    }
                }
                catch
                {
                    throw;
                }
            }



Regards
Raj


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3053
  • Karma: 1000
    • Soft Service Company
Re: Too big file -- Exception
« Reply #1 on: January 14, 2009, 12:19:35 PM »
The demo version has limitation for the sending file size.

 

Sitemap 1 2 3 4 5 6 7 8 9