×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    61

    Arrow send JPEG over RFCOMM

    Hi, I'm trying to send a file using RFCOMM protocol and Symbian OS C++.

    This is my code:

    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();
              }   
    }
    but something doesn't go. The loop never ends and at the receiver only a part of the jpeg image is received.

    Any suggestion?

    Thx a lot!
    Last edited by Mich2424; 2006-01-05 at 15:52.

  2. #2
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    61

    Re: send JPEG over RFCOMM

    really no one can help me?

    please... I'm doing a project for my school, it's urgent!

    Thx very much
    Last edited by Mich2424; 2006-01-05 at 14:46.

  3. #3
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    61

    Re: send JPEG over RFCOMM

    sorry for ask again but I really need an answer! Please help me!

    No one has a working example on how to send an image using RFCOMM?

    Nokia experts?

    Thank you!

  4. #4
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    54

    Re: send JPEG over RFCOMM

    From what I see, the loop definitely would not end because buffer.Length() is always equal to 1024
    Btw, I am also trying to send image over RFComm but to no success either. I could only send small data but with images of 10000bytes it does not work.
    It appears you can receive a portion of the image. Mind sharing more in details.
    You can refer mine at http://discussion.forum.nokia.com/fo...t=image+RFcomm

    Thanks
    ckt

Similar Threads

  1. suckho, i have encontered the same problems. Could you tell me how you resolved it?
    By dicson_hu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-12-09, 10:56
  2. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00
  3. Nokia 6600 Socket Server send delay Problem
    By dicson_hu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-31, 07:37
  4. Send SMS through VB application using nokia 8210, infra-red port
    By alvinyoong in forum General Messaging
    Replies: 4
    Last Post: 2005-01-27, 11:22
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×