Azure Queue Storage Message Size
From this Windows Azure MSDN thread, I understand that the queue message size should be 8KB. We can calculate the message size by 6144 byte * 4/3 (base64 encoding).
We are storing messag开发者_StackOverflowe as XML messages (string).
How to calculate the byte size from string in C#?
The byte size of a string is dependant on your encoding. This is how you get it for the UTF8 encoding, as example.
var byteSize = System.Text.Encoding.UTF8.GetBytes(xml).GetLength(0);
精彩评论