MMS body - what is after 0x84 0xA3 | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through October 29, 2003 ⬆ |
◄ ► |
Author | Message | |||
Anonymous |
Hi, I am looking for some description about that. As far as I understand, the first octet stands for the number of attachments, then there is a number which I do not understand, then length of the message, then 03 83 81 83 which I do not know what for. For example I took 84 A3 01 04 25 03 83 81 83 <text>, and another example what I found is 84 A3 02 04 81 67 08 83 81 83 <data1> <?> <data2>. Could someone please explain and/or give me a link to some good explaining reference about how to encode/understand body? Thanks, Sandor | |||
Anonymous |
i duno either, | |||
Anonymous |
Then you should have typed anything, because it looks that there is an answer. | |||
Anonymous |
Should means should not. Anyway, someone knowing the answer? | |||
wushuang |
it is content-type I also don't know how to unpack it WSP230 may has some info | |||
mushuang |
Now I had found infomation from nokia's pdu source // ------------------------------------------------------- MMS Header Encoding private String readContentTypeValue() { int bv=unsignedByte(m_In[m_i]); String value=""; if (bv>=0x80) { /* Constrained-media - Short Integer*/ // Short-integer: the assigned number of the well-known encoding is // small enough to fit into Short-integer value=readWellKnownMedia(); } else /* Constrained-media - Extension-media*/ if (bv >= 0x20 && bv < 0x80) { value = readTextString(); } else /* Content-general-form */ if (bv < 0x20) { int valueLength = readValueLength(); bv=unsignedByte(m_In[m_i]); if (bv>=0x80) { //Well-known-media int i2=m_i; value=readWellKnownMedia(); if (value.equals("application/vnd.wap.multipart.related")) { bv=decodeByte(m_In[m_i]); if (bv==WKPA_TYPE) { // Type of the multipart/related m_i++; m_Message.setMultipartRelatedType( readTextString() ); bv=decodeByte(m_In[m_i]); if (bv==WKPA_START) { // Start (it is the pointer to the presentetion part) m_i++; m_Message.setPresentationId( readTextString() ); } } } m_i=i2+valueLength; } else { int i2=m_i; value=readTextString(); m_i=i2+valueLength; } } return(value); } | |||
John |
you can look here for your answer. http://support.nowsms.com/discus/messages/12/522.html |