×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    11

    Read MMS : how to open attachment ?

    Hi,

    I write an MMS application for S60 3rd FP1/FP2.

    To retrieve MMS text or audio file I used MMsvAttachmentManager with GetAttachmentFileL.

    So I obtain a RFile but when I make Read() I've got a crash.

    Does someone have succeed to read MMS files ?

    Thanks

    Rudy

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: Read MMS : how to open attachment ?


  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    11

    Re: Read MMS : how to open attachment ?

    No specific code, it's not a leave, I have exit code 0 and it's crash on a RFile::Read or RFile::FullName().

    So I think that the RFile that GetAttachmentFileL gives is wrong but why ?

    If I call CMsvAttachment::FilePath() I've got a path like this c:\\private\\1000484b\\Mail2\\00001001_S\\3\\00100063_F\\Fjajm_tj.txt

    Perhaps it's a crash because the file is located in a private directory. But how read MMS files in this case ?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: Read MMS : how to open attachment ?

    Based on your descriprtion you have probably tried the Crash Monitor.
    You can still try the ErrRd-way, there is an installer behind the "here" in the "You can obtain a prebuilt sis file from here (file signature updated, valid until 2018)" line.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    11

    Re: Read MMS : how to open attachment ?

    In fact the RFile handle is 0. So it's explain the crash. But my problem is how I can read MMS attachment file ?

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Read MMS : how to open attachment ?

    Did you try this link already, you might have to modify a few things here and there but in principle it should work just fine for your needs :-

    http://discussion.forum.nokia.com/fo...02&postcount=5

    Cheers,
    Mayank

  7. #7
    Registered User
    Join Date
    Oct 2008
    Posts
    11

    [RESOLVED]Re: Read MMS : how to open attachment ?

    the code that you indicate corresponds to my code.

    In fact I found the issue, I have two session for CMsvSession, I suppress one (the first). So now the RFile is good and can be used.

    thanks for all your response

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: [RESOLVED]Re: Read MMS : how to open attachment ?

    Quote Originally Posted by rudy.fremont View Post
    the code that you indicate corresponds to my code.

    In fact I found the issue, I have two session for CMsvSession, I suppress one (the first). So now the RFile is good and can be used.

    thanks for all your response
    Since I didnt have access to your code I had no clue :-) But all's well that ends well isnt it. Out of curiosity though why would u need multiple sessions?

    Cheers,
    Mayank

Similar Threads

  1. Read MMS message with python
    By GendonTua in forum Symbian
    Replies: 2
    Last Post: 2008-06-02, 07:14
  2. Read and Open files with Series60
    By pablovara in forum Mobile Java General
    Replies: 2
    Last Post: 2006-06-14, 17:08
  3. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  4. open and close connection in the MMS Library
    By cmingoia in forum General Messaging
    Replies: 1
    Last Post: 2002-09-17, 10:54
  5. open email attachment in Series60?
    By bcchong in forum Symbian
    Replies: 0
    Last Post: 2002-07-09, 00:11

Posting Permissions

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