Hi, I'm trying to send a file using RFCOMM protocol and Symbian OS C++.
This is my code:
but something doesn't go. The loop never ends and at the receiver only a part of the jpeg image is received.Code:RFs fsSession = CEikonEnv::Static()->FsSession(); RFile file; _LIT(KStoreFileName, "C:\\Nokia\\Images\\test2.jpg"); TInt err1 = file.Open(fsSession, KStoreFileName, EFileRead); if (err1==KErrNone){ TBuf8<1024> buffer; buffer.Zero(); while(buffer.Length()!=0) { iSendingSocket.Write(buffer, iStatus); User::WaitForRequest(iStatus); file.Read(buffer); } file.Close(); } }
Any suggestion?
Thx a lot!



