Im using a RFCOMM socket, i can successfully sending and receive the command data by RecvOneOrMore function.
however, now i want to receive a jpg file, but it look like doesnt receive my sent file correctly.
does RecvOneOrMore has a size limited?
TBuf8<700000> iBuffer; // i put 700000 bcos my jpeg file has 300KB, so i set more buffer in case nt enuf space.
iSendingSocket.RecvOneOrMore(iBuffer, 0, iStatus, iLen);
if(iBuffer.Length() != iLen()) // i use this to chk but it is correct in my code
but after this function, i has another read() function behind and it will still keep receive some of the code. So, it show that my jpeg file is nt fully received by the previous RecvOneOrMore. if i send a smaller file, the read() function behind wont get data after that.
so i guess maybe RecvOneOrMore function has limited size. Anyone can help to solve my problem?
Or I shall use read() instead of RecvOneOrMore?
p/s: series 60 symbian os 7s, n6600 and n6260