Why is my binary sms file twice size of text?

Why is my binary sms file twice size of text? SearchSearch
Author Message
Anonymous
 
Posted on Tuesday, November 04, 2003 - 09:54 am:   

I'm sending a wap page link,(test.wml) as a push.
The original file is 492 bytes but its hex conversion size is 984 bytes!
Bearing in mind the udh is 0605040B8423F0
The converted wml file is...
3C3F786D6C2076657273696F6E3D22312E30223F3E0D0A3C21444F435459504520776D6C20505542 4C494320222D2F2F574150464F52554D2F2F44544420574D4C20312E312F2F454E22202268747470 3A2F2F7777772E776170666F72756D2E6F72672F4454442F776D6C5F312E312E786D6C223E0D0A3C 776D6C3E0D0A3C636172642069643D22636172643122207469746C653D22736D617274746F6E6573 2E6E6574223E0D0A3C7020616C69676E3D2263656E746572223E0D0A5069636B205572204D757369 6320547970650D0A3C2F703E0D0A3C703E3C6120687265663D22687474703A2F2F7777772E736D61 7274746F6E65732E6E65742F772F726E622E776D6C223E5B2052276E2742205D3C2F613E3C612068 7265663D22687474703A2F2F7777772E736D617274746F6E65732E6E65742F772F686970686F702E 776D6C223E5B4869702D486F705D3C2F613E0D0A3C6120687265663D22687474703A2F2F7777772E 736D617274746F6E65732E6E65742F772F6761726167652E776D6C223E5B4761726167655D3C2F61 3E3C6120687265663D22687474703A2F2F7777772E736D617274746F6E65732E6E65742F772F6261 73682E776D6C223E5B44616E636568616C6C5D3C2F613E0D0A3C2F703E0D0A3C2F636172643E0D0A 3C2F776D6C3E0D0A Why do i recieve nothing on my nokia 7210?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1073
Registered: 10-2002
Posted on Tuesday, November 11, 2003 - 09:47 pm:   

I'm sorry, but I don't understand what you are doing.

Are you converting the content of your test.wml file to hex and then trying to send that as a WAP push?

That's not going to work (there are examples in the WAP specs that show doing this, but: 1. I haven't seen this supported on actual handsets; and 2. You need to include WSP headers to specify the push content type).

Generally, the "Service Indication" type is used for push messages. In a "Service Indication" message, you basically include a URL and some text.

The web interface for the Now SMS/MMS Gateway allows you to specify these parameters ... or if you are trying to do this yourself, then you'll want to refer to the WAP specifications. Specifically WAP-167-ServiceInd, WAP-230-WSP (for the connectionless push PDU format), and WAP-259-WDP (WAP over GSM SMS).

-bn