OTA Bitmap Format
Further to the post about embedding a bitmap into an SMS, I needed to know the format of the picture to send. Wikipedia has an excellent article on the format, so I'll need to use this when I get those 5 minutes to give it a go.
A reference blog containing posts added during my time at Esendex.
Further to the post about embedding a bitmap into an SMS, I needed to know the format of the picture to send. Wikipedia has an excellent article on the format, so I'll need to use this when I get those 5 minutes to give it a go.
Posted by
Ian Dykes
at
17:37
0
comments
Labels: SMS
Embedding a bitmap picture into an SMS isn't something that Esendex directly supports, but after a customer's request I thought I'd take a few minutes to find out how to do it.
So I sent a picture message from my phone into one of our virtual mobile numbers, and I'm pretty sure I can reverse engineer the bytes that I got.
Then I found this Nokia article on it, which I should have known already as I used to have this document on my desk pretty much all the time... So it looks quite interesting.
I'll give it a go when I get 5 minutes, but the specification doesn't seem that complicated. Watch this space I guess.
Posted by
Ian Dykes
at
17:36
0
comments
Labels: SMS
Just a small problem this time for the .Net 2.0 Migration. Assigning a string that contains line feed characters to the Subject property on a System.Net.MailMessage object will result in an error being thrown that says:
The specified string is not in the form required for a subject.
Just make sure you strip out any carriage returns (\r) or line feeds (\n) from your string before you assign it and everything will be fine.
So done, onto the next one...
Posted by
Ian Dykes
at
15:32
0
comments
Labels: .Net 2 Migration
Posted by
Ian Dykes
at
10:59
9
comments
Labels: .Net 2 Migration, Logging
Got quite a few posts to write about more version 1.1 to 2.0 migration issues. We've recently released the .Net 2 build onto some of our servers for testing, and there were quite a few problems. I'll try to keep 1 post per issue we saw.
We had a problem with our scheduled SMS service (which allows customers to specify a date and time when they want to submit a given SMS), in that the dates being used weren't being respected correctly when posting from a .Net 2 web service, through an XML formatted MSMQ, and being processed by a .Net 1.1 Windows service.
This was due to the differences between how the versions serialise DateTime objects to XML. There is what I would call a bug in the 1.1 framework that means you cannot serialise a DateTime that represents a UTC time (i.e. with zero offset from GMT, and no daylight savings adjustments). Check out this very useful article about DateTimes in general: Coding Best Practices Using DateTime in the .NET Framework.
It seems any time you put in is treated like the local time for the application deserialising it. I'm not entirely sure, but if you indicate that the time is in UTC (by adding a Z to the end of the time section), the 1.1 framework does treat that as UTC (Zulu) time, but then internally corrects it to the local time the server is in. That's certainly the behaviour we observed during tests anyway.
This has been fixed in version 2, so our solution to the problem just involves altering the order in which we deployed the .Net 2 builds to our servers.
Posted by
Ian Dykes
at
12:46
0
comments
Labels: .Net 2 Migration
This is a personal weblog and represents my own opinions and ideas. This weblog does not represent the thoughts, intentions, plans or strategies of Esendex Limited, any affiliated companies, or other bodies to which I may belong or represent. Inappropriate comments will be deleted at the author’s discretion.
All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.