Question of Length Quote on content-type encodeing | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through February 03, 2005 ⬆ |
◄ ► |
Author | Message | |||
mistwander Unregistered guest |
I have a content-type field encoding as: 8C 80 98 6C 68 31 00 8D 90 89 01 81 97 31 33 36 30 36 30 35 38 37 36 37 2F 54 59 50 45 3D 50 4C 4D 4E 00 8A 80 86 81 90 81 ContentType field 84 20 length =32 (question 2?) B3 (question 3?) 89 61 70 70 6C 69 63 61 74 69 6F 6E 2F 73 6D 69 6C 00 8A 3C 6C 75 68 61 69 5F 73 6D 6C 3E 00 02 muti-number 0A 83 5A 01 9E 8E 69 6D 61 67 65 31 00 image (474byte) FF D8 .... FF D9 smil field header 23 82 53 14 61 70 70 6C 69 63 61 74 69 6F 6E 2F 73 6D 69 6C 00 81 EA C0 22 3C 6C 75 68 61 69 5F 73 6D 6C 3E 00 smil body 3C 73 ...... 0D 0A 1. when I send this encoding to gateway, the gateway return the 'Message.accepted' to me ,and my phone can receive this mm. but the phone cannot display the image, it tell me 'error format', why? the image is jpeg. 2. According to the WSP documents the Quote 'ox1F' must be the front of the length value if the length is larger than 0x1E. ok, I insert the '0x1F' at front of '0x20',and then sent the mm, unluckily, then gateway return me 'message-format-corrupt'. Why ? I don’t understand such result! 3. in fact, I just want to send a image only. so I change the content-type value '0xB3' to '0xA3',and just encoding the content-type field as 84 A3,then change the muti-number '02' to '01', then the 0A 83 5A 01 9E 8E 69 6D 61 67 65 31 00,then the image data, not sent smil header and smil body. but, the gateway return me 'message-format-corrupt' also. why? 4. According to the WSP document, the content type field encoding '84 A3' or '84 01 A3', which is correct? help me please, I am dejected for a long time! Mistwander 2004-10-14 |