Hi, I'm receiving some bytes from Linux, (video file, I also tried a string, via RFCOMM).
On receiving the bytes I would like to save the data onto a file. So I start sending data from the Linux program, and on reception (receiving socket already opened), the RunL() function executes.
However I try to write data to my file, and the file size is still 0 bytes. If in the loop I manually write some other data, that data is written so its not a file issue thing.
Code:void CBTStreamPassive::RunL() { if (iStatus.Int() == KErrNone) { iBTSocketListen.RecvOneOrMore(iFirst_buffer,0,iStatus, iLen); ReceiveFramesL(); SetActive(); //socket has connected successfully, start listening }Please note that,Code:void CBTStreamPassive::ReceiveFramesL() { //User::LeaveIfError(iFile.Write(KBTest)); User::LeaveIfError(iFile.Write(iFirst_buffer)); }
TBuf8<KMessageLength> iFirst_buffer;
Now I'm questioning myself whether I can actually store bytes on a TBuf8 descriptor, cause it seems that this data is not being modified. If not, on what data type can I write my receiving data on?
thanks



