MMS body - what is after 0x84 0xA3

MMS body - what is after 0x84 0xA3 SearchSearch
Author Message
Anonymous
Posted on Tuesday, September 16, 2003 - 05:47 pm:   

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
Posted on Wednesday, September 17, 2003 - 02:20 am:   

i duno either,
Anonymous
Posted on Wednesday, September 17, 2003 - 10:35 am:   

Then you should have typed anything, because it looks that there is an answer.
Anonymous
Posted on Wednesday, September 17, 2003 - 10:35 am:   

Should means should not.

Anyway, someone knowing the answer?
wushuang
Posted on Saturday, September 27, 2003 - 03:36 am:   

it is content-type

I also don't know how to unpack it

WSP230 may has some info

mushuang
Posted on Saturday, September 27, 2003 - 06:52 am:   

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
Posted on Saturday, September 27, 2003 - 09:44 am:   

you can look here for your answer. :-)
http://support.nowsms.com/discus/messages/12/522.html