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