开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜