Discussion Board
Problem with header From´s length
2004-06-15, 08:10
#1
Registered User
Hi
We are having problems with the lenght of the header from, it only happens when the length is upper 28. When it decodes the message, always return 31 length and don´t detect the from value.
Have you had the same problem??Any solution?
Thanks
Solved
2004-06-18, 08:51
#2
Registered User
Hi
I´ve solved this issue modified the decoder part with these few lines:
case FN_FROM: {
if (FLAG_DEBUG) System.out.println("FN_FROM (09)");
int valueLength = m_In[m_i++];
if(valueLength>30){
valueLength = readUintvar();
}
int addressPresentToken = unsignedByte(m_In[m_i++]);
if (addressPresentToken == 0x80) { // Address-present-token
m_Message.setFrom(new String(readTextString()));
}
}
break;
I wait this help anyone and don´t lost time like me....things good done, looks fine.
Regular Contributor
Was this in the MMS Java Library or the NMSS library?
-paul / ForumNokia
Registered User
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules