Reputation: 17373
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 message as XML messages (string).
How to calculate the byte size from string in C#?
Upvotes: 3
Views: 1550
Reputation: 3385
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);
Upvotes: 3