Encoding of GIF content in an m-retrieve-conf message. | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through March 23, 2004 ⬆ |
◄ ► |
Author | Message | |||
Ben Weekes New member Username: Benweekes Post Number: 1 Registered: 12-2003 |
I am having trouble understanding the following code found just before my one and only included gif file in an m-retrieve-conf message i have generated. 92 04 3F D4 EB AE (the remainder of the message is GIF89a.....) I thought 04 means an octel length is about to follow and the rest would be the encoded length of the gif file, apprently not. This gif file is 1403 bytes Another exmaple 92 04 3F D6 37 90 in this example the gif was 178 bytes. Any help greatly appreciated. | |||
yanxh New member Username: Yanxh Post Number: 11 Registered: 11-2003 |
Hi,Ben! From the vague buffer,I don't understand what you said,please support more data about m-retrieve-conf to explain clearly. | |||
Ben Weekes New member Username: Benweekes Post Number: 3 Registered: 12-2003 |
Hi, I am trying to do generate an m-retrieve-conf message with one gif in it that can be sent to phones in the uk. If I build one using the nokia mms wizard it works fine. When I build one use the java libraries it doesn't (even if I change the message type from 80 to 84) I have also tried looking at the difference between two working messages and it seems the bytes (92 04 3F D7 9C E7) just before the GIF98a part (and the same string else where) are changing each time I build one but that they have to be specific values as I cannot just replace the gif part of a working message with the bytes of a gif that I want to send. I have played with the octet high bit shifting encoding maths to see if I can understand the numbers but I can't. I really need to be able to build m-retrieve-conf messages (as created by the nokia mms wizard) in a linux environment asap. We have the go ahead to cover all uk racecourse and our gateway provider MXTelecom isn't quite ready to help except by allowing us to send these m-retrieve-conf messages as a notifiction which seems to work ok. I would happily use any method you might suggest to make the messages, including licensing tools etc. Thanks for your help. This seems to be about the only place on the web I can find people discussing this stuff in depth Rgds Ben Here is a working m-retieve-conf that I would give my left arm right now to be able to build programaticaly on linux. 00000000h: 8C 84 98 31 32 33 34 00 8D 90 8B 31 32 33 00 85 ; Œ„˜1234.‹123.… 00000010h: 04 3F D7 9C F7 89 14 80 6D 6D 73 2D 65 64 69 74 ; .?ל÷‰.€mms-edit 00000020h: 6F 72 40 74 6F 6F 6C 6B 69 74 00 97 72 65 71 40 ; or@toolkit.—req@ 00000030h: 72 65 71 2E 63 6F 6D 00 8A 80 8F 80 86 81 90 81 ; req.com.Š€€† 00000040h: 84 1F 28 B3 89 61 70 70 6C 69 63 61 74 69 6F 6E ; „.(³‰application 00000050h: 2F 73 6D 69 6C 00 8A 3C 70 72 65 73 65 6E 74 61 ; /smil.Š<presenta 00000060h: 74 69 6F 6E 2D 70 61 72 74 3E 00 02 65 83 46 61 ; tion-part>..eƒFa 00000070h: 70 70 6C 69 63 61 74 69 6F 6E 2F 73 6D 69 6C 00 ; pplication/smil. 00000080h: 43 6F 6E 74 65 6E 74 2D 49 44 00 3C 70 72 65 73 ; Content-ID.<pres 00000090h: 65 6E 74 61 74 69 6F 6E 2D 70 61 72 74 3E 00 B0 ; entation-part>.° 000000a0h: 68 74 74 70 3A 2F 2F 6F 72 69 67 2E 68 6F 73 74 ; http://orig.host 000000b0h: 2F 64 65 66 61 75 6C 74 34 2E 73 6D 69 6C 00 8E ; /default4.smil.Ž 000000c0h: 64 65 66 61 75 6C 74 34 2E 73 6D 69 6C 00 92 04 ; default4.smil.’. 000000d0h: 3F D7 9C E7 3C 3F 78 6D 6C 20 76 65 72 73 69 6F ; ?לç<?xml versio 000000e0h: 6E 3D 22 31 2E 30 22 3F 3E 0A 3C 21 44 4F 43 54 ; n="1.0"?>.<!DOCT 000000f0h: 59 50 45 20 73 6D 69 6C 20 50 55 42 4C 49 43 20 ; YPE smil PUBLIC 00000100h: 22 2D 2F 2F 57 33 43 2F 2F 44 54 44 20 53 4D 49 ; "-//W3C//DTD SMI 00000110h: 4C 20 32 2E 30 2F 2F 45 4E 22 0A 20 20 20 20 20 ; L 2.0//EN". 00000120h: 20 20 22 68 74 74 70 3A 2F 2F 77 77 77 2E 77 33 ; "http://www.w3 00000130h: 2E 6F 72 67 2F 32 30 30 31 2F 53 4D 49 4C 32 30 ; .org/2001/SMIL20 00000140h: 2F 53 4D 49 4C 32 30 2E 64 74 64 22 3E 0A 3C 73 ; /SMIL20.dtd">.<s 00000150h: 6D 69 6C 20 78 6D 6C 6E 73 3D 22 68 74 74 70 3A ; mil xmlns="http: 00000160h: 2F 2F 77 77 77 2E 77 33 2E 6F 72 67 2F 32 30 30 ; //www.w3.org/200 00000170h: 31 2F 53 4D 49 4C 32 30 2F 4C 61 6E 67 75 61 67 ; 1/SMIL20/Languag 00000180h: 65 22 3E 0A 20 3C 68 65 61 64 3E 0A 20 20 3C 6C ; e">. <head>. <l 00000190h: 61 79 6F 75 74 3E 0A 20 20 20 3C 72 6F 6F 74 2D ; ayout>. <root- 000001a0h: 6C 61 79 6F 75 74 20 77 69 64 74 68 3D 22 31 36 ; layout width="16 000001b0h: 30 22 20 68 65 69 67 68 74 3D 22 31 32 30 22 20 ; 0" height="120" 000001c0h: 2F 3E 0A 20 20 20 3C 72 65 67 69 6F 6E 20 69 64 ; />. <region id 000001d0h: 3D 22 49 6D 61 67 65 22 20 77 69 64 74 68 3D 22 ; ="Image" width=" 000001e0h: 31 36 30 22 20 68 65 69 67 68 74 3D 22 31 30 30 ; 160" height="100 000001f0h: 22 20 2F 3E 0A 20 20 20 3C 72 65 67 69 6F 6E 20 ; " />. <region 00000200h: 69 64 3D 22 54 65 78 74 22 20 77 69 64 74 68 3D ; id="Text" width= 00000210h: 22 31 36 30 22 20 68 65 69 67 68 74 3D 22 32 30 ; "160" height="20 00000220h: 22 20 74 6F 70 3D 22 31 30 30 22 20 2F 3E 0A 20 ; " top="100" />. 00000230h: 20 3C 2F 6C 61 79 6F 75 74 3E 0A 20 3C 2F 68 65 ; </layout>. </he 00000240h: 61 64 3E 0A 20 20 3C 62 6F 64 79 3E 0A 20 20 20 ; ad>. <body>. 00000250h: 3C 70 61 72 3E 0A 20 20 20 20 20 3C 74 65 78 74 ; <par>. <text 00000260h: 20 73 72 63 3D 22 61 32 2E 47 49 46 22 20 72 65 ; src="a2.GIF" re 00000270h: 67 69 6F 6E 3D 22 54 65 78 74 22 20 2F 3E 0A 20 ; gion="Text" />. 00000280h: 20 20 3C 2F 70 61 72 3E 0A 20 3C 2F 62 6F 64 79 ; </par>. </body 00000290h: 3E 0A 3C 2F 73 6D 69 6C 3E 0A 3A 87 31 9D 8E 61 ; >.</smil>.:‡1Ža 000002a0h: 32 2E 47 49 46 00 43 6F 6E 74 65 6E 74 2D 49 44 ; 2.GIF.Content-ID 000002b0h: 00 3C 43 49 44 31 3E 00 B0 68 74 74 70 3A 2F 2F ; .<CID1>.°http:// 000002c0h: 6F 72 69 67 2E 68 6F 73 74 2F 61 32 2E 47 49 46 ; orig.host/a2.GIF 000002d0h: 00 92 04 3F D7 9C E7 47 49 46 38 39 61 3C 00 31 ; .’.?לçGIF89a<.1 000002e0h: 00 F7 00 00 00 00 00 80 00 00 00 80 00 80 80 00 ; .÷.....€...€.€€. 000002f0h: 00 00 80 80 00 80 00 80 80 80 80 80 C0 C0 C0 FF ; ..€€.€.€€€€€ÀÀÀÿ 00000300h: 00 00 00 FF 00 FF FF 00 00 00 FF FF 00 FF 00 FF ; ...ÿ.ÿÿ...ÿÿ.ÿ.ÿ 00000310h: FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 ; ÿÿÿÿ............ 00000320h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000330h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000340h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000350h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000360h: 00 33 00 00 66 00 00 99 00 00 CC 00 00 FF 00 33 ; .3..f..™..Ì..ÿ.3 00000370h: 00 00 33 33 00 33 66 00 33 99 00 33 CC 00 33 FF ; ..33.3f.3™.3Ì.3ÿ 00000380h: 00 66 00 00 66 33 00 66 66 00 66 99 00 66 CC 00 ; .f..f3.ff.f™.fÌ. 00000390h: 66 FF 00 99 00 00 99 33 00 99 66 00 99 99 00 99 ; fÿ.™..™3.™f.™™.™ 000003a0h: CC 00 99 FF 00 CC 00 00 CC 33 00 CC 66 00 CC 99 ; Ì.™ÿ.Ì..Ì3.Ìf.Ì™ 000003b0h: 00 CC CC 00 CC FF 00 FF 00 00 FF 33 00 FF 66 00 ; .ÌÌ.Ìÿ.ÿ..ÿ3.ÿf. 000003c0h: FF 99 00 FF CC 00 FF FF 33 00 00 33 00 33 33 00 ; ÿ™.ÿÌ.ÿÿ3..3.33. 000003d0h: 66 33 00 99 33 00 CC 33 00 FF 33 33 00 33 33 33 ; f3.™3.Ì3.ÿ33.333 000003e0h: 33 33 66 33 33 99 33 33 CC 33 33 FF 33 66 00 33 ; 33f33™33Ì33ÿ3f.3 000003f0h: 66 33 33 66 66 33 66 99 33 66 CC 33 66 FF 33 99 ; f33ff3f™3fÌ3fÿ3™ 00000400h: 00 33 99 33 33 99 66 33 99 99 33 99 CC 33 99 FF ; .3™33™f3™™3™Ì3™ÿ 00000410h: 33 CC 00 33 CC 33 33 CC 66 33 CC 99 33 CC CC 33 ; 3Ì.3Ì33Ìf3Ì™3ÌÌ3 00000420h: CC FF 33 FF 00 33 FF 33 33 FF 66 33 FF 99 33 FF ; Ìÿ3ÿ.3ÿ33ÿf3ÿ™3ÿ 00000430h: CC 33 FF FF 66 00 00 66 00 33 66 00 66 66 00 99 ; Ì3ÿÿf..f.3f.ff.™ 00000440h: 66 00 CC 66 00 FF 66 33 00 66 33 33 66 33 66 66 ; f.Ìf.ÿf3.f33f3ff 00000450h: 33 99 66 33 CC 66 33 FF 66 66 00 66 66 33 66 66 ; 3™f3Ìf3ÿff.ff3ff 00000460h: 66 66 66 99 66 66 CC 66 66 FF 66 99 00 66 99 33 ; fff™ffÌffÿf™.f™3 00000470h: 66 99 66 66 99 99 66 99 CC 66 99 FF 66 CC 00 66 ; f™ff™™f™Ìf™ÿfÌ.f 00000480h: CC 33 66 CC 66 66 CC 99 66 CC CC 66 CC FF 66 FF ; Ì3fÌffÌ™fÌÌfÌÿfÿ 00000490h: 00 66 FF 33 66 FF 66 66 FF 99 66 FF CC 66 FF FF ; .fÿ3fÿffÿ™fÿÌfÿÿ 000004a0h: 99 00 00 99 00 33 99 00 66 99 00 99 99 00 CC 99 ; ™..™.3™.f™.™™.Ì™ 000004b0h: 00 FF 99 33 00 99 33 33 99 33 66 99 33 99 99 33 ; .ÿ™3.™33™3f™3™™3 000004c0h: CC 99 33 FF 99 66 00 99 66 33 99 66 66 99 66 99 ; Ì™3ÿ™f.™f3™ff™f™ 000004d0h: 99 66 CC 99 66 FF 99 99 00 99 99 33 99 99 66 99 ; ™fÌ™fÿ™™.™™3™™f™ 000004e0h: 99 99 99 99 CC 99 99 FF 99 CC 00 99 CC 33 99 CC ; ™™™™Ì™™ÿ™Ì.™Ì3™Ì 000004f0h: 66 99 CC 99 99 CC CC 99 CC FF 99 FF 00 99 FF 33 ; f™Ì™™ÌÌ™Ìÿ™ÿ.™ÿ3 00000500h: 99 FF 66 99 FF 99 99 FF CC 99 FF FF CC 00 00 CC ; ™ÿf™ÿ™™ÿÌ™ÿÿÌ..Ì 00000510h: 00 33 CC 00 66 CC 00 99 CC 00 CC CC 00 FF CC 33 ; .3Ì.fÌ.™Ì.ÌÌ.ÿÌ3 00000520h: 00 CC 33 33 CC 33 66 CC 33 99 CC 33 CC CC 33 FF ; .Ì33Ì3fÌ3™Ì3ÌÌ3ÿ 00000530h: CC 66 00 CC 66 33 CC 66 66 CC 66 99 CC 66 CC CC ; Ìf.Ìf3ÌffÌf™ÌfÌÌ 00000540h: 66 FF CC 99 00 CC 99 33 CC 99 66 CC 99 99 CC 99 ; fÿÌ™.Ì™3Ì™fÌ™™Ì™ 00000550h: CC CC 99 FF CC CC 00 CC CC 33 CC CC 66 CC CC 99 ; ÌÌ™ÿÌÌ.ÌÌ3ÌÌfÌÌ™ 00000560h: CC CC CC CC CC FF CC FF 00 CC FF 33 CC FF 66 CC ; ÌÌÌÌÌÿÌÿ.Ìÿ3ÌÿfÌ 00000570h: FF 99 CC FF CC CC FF FF FF 00 00 FF 00 33 FF 00 ; ÿ™ÌÿÌÌÿÿÿ..ÿ.3ÿ. 00000580h: 66 FF 00 99 FF 00 CC FF 00 FF FF 33 00 FF 33 33 ; fÿ.™ÿ.Ìÿ.ÿÿ3.ÿ33 00000590h: FF 33 66 FF 33 99 FF 33 CC FF 33 FF FF 66 00 FF ; ÿ3fÿ3™ÿ3Ìÿ3ÿÿf.ÿ 000005a0h: 66 33 FF 66 66 FF 66 99 FF 66 CC FF 66 FF FF 99 ; f3ÿffÿf™ÿfÌÿfÿÿ™ 000005b0h: 00 FF 99 33 FF 99 66 FF 99 99 FF 99 CC FF 99 FF ; .ÿ™3ÿ™fÿ™™ÿ™Ìÿ™ÿ 000005c0h: FF CC 00 FF CC 33 FF CC 66 FF CC 99 FF CC CC FF ; ÿÌ.ÿÌ3ÿÌfÿÌ™ÿÌÌÿ 000005d0h: CC FF FF FF 00 FF FF 33 FF FF 66 FF FF 99 FF FF ; Ìÿÿÿ.ÿÿ3ÿÿfÿÿ™ÿÿ 000005e0h: CC FF FF FF 2C 00 00 00 00 3C 00 31 00 00 08 96 ; Ìÿÿÿ,....<.1...– 000005f0h: 00 1B 08 1C 48 B0 A0 41 00 08 13 2A 5C C8 B0 A1 ; ....H° A...*\È°¡ 00000600h: C3 84 06 23 4A 7C 48 B1 E2 43 89 18 09 5A DC C8 ; Ä.#J|H±âC‰..ZÜÈ 00000610h: 31 A3 47 8E 20 29 7A CC 18 B2 24 C3 91 18 4D AA ; 1£GŽ )zÌ.²$Ñ.Mª 00000620h: 44 88 72 E2 4A 93 2D 23 BE 84 19 B3 E0 CC 92 35 ; DˆrâJ“-#¾„.³àÌ’5 00000630h: 6D DE 04 99 53 E3 CE 8E 3D 05 FE 04 1A 74 E8 C6 ; mÞ.™SãÎŽ=.þ..tèÆ 00000640h: A0 42 8D 56 44 DA 40 E9 52 A4 4E 45 42 8D EA 90 ; BVDÚ@éR¤NEBê 00000650h: 29 D5 AA 53 AF 2E B4 AA 75 6B D6 AE 2C BF 82 E5 ; )ÕªS¯.´ªukÖ®,¿‚å 00000660h: 0A B6 AC D9 B3 68 D3 AA 5D CB B6 AD DB B7 70 E3 ; .¶¬Ù³hÓª]˶۷pã 00000670h: CA 9D 4B B7 AE DD BB 78 F3 EA DD CB B7 AF DF BF ; ÊK·®Ý»xóêÝË·¯ß¿ 00000680h: 80 03 0B 86 1B 10 00 3B ; €..†...; | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1397 Registered: 10-2002 |
The data that you are referring to is a "Date:" WSP header within the binary multipart. If you're up for a commercial solution, you could post the MMS from your Linux box to a Windows PC running NowSMS (here at this web site). We'll build the MMS message and generate the notification (assuming direct MMS delivery is used ... we also support various other protocols for interfacing to operator MMSCs). Here is an overview of the different formats that can be used to submit an MMS into NowSMS: http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages.htm There are also PHP and Java examples of the post floating around this forum if you are interested. |