×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    5

    decode MMS message

    Hi,

    I ve made a mms message with the NMIT tool with message type = m-send-req. But when i trie to decode the message it the nokia MMS library API 1.1 it get stuck on the method decodeMessage() . Can it not retrieve the objects from such a mms file?

  2. #2
    Registered User
    Join Date
    Nov 2003
    Posts
    5
    The methods readMMBodyMultiPartRelated() and readMMBodyMultiPartMixed() from the MMDecoder class arent properly executed.

    Program keeps stuck in following while-lus of the 2 methods above :

    /****************************/
    int som = freeze_i + c_headerLen;
    while(m_i < som)
    {
    if ((decodeByte(m_In[m_i])==HFN_CONTENT_LOCATION) ||
    (decodeByte(m_In[m_i])==HFN_CONTENT_ID) )
    {
    System.out.println("Read textcontent of multipartedmix.");
    m_i++;
    c_id=readTextString();
    }
    else if (decodeByte(m_In[m_i])==0x2E)
    {
    m_i++;
    int valueLength = readValueLength();
    m_i=m_i+valueLength;
    }
    System.out.println("som:"+som + "m_i:" + m_i);
    }
    /***************************/
    The variable m_i doesnt change at all when executing this while-lus. Any one some solution for this problem.

    Kind regards,
    Koen

Posting Permissions

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