c#. MSMQ .The max size of a single message

Zhenia picture Zhenia · Jan 15, 2013 · Viewed 16.2k times · Source

Using msmq I want to send a message (near 1 GB). I want to send array of bytes. But I can send only 4 MB. How can I get around this limitation ?

Answer

C-va picture C-va · Jan 15, 2013

As you know the maximum size of a message in MSMQ is 4Mb, its better to go for some other solutions.

Solution : If you want to transfer data that exceeds this size, you will have to cut it into chunks in the sender's side, and recombine it in the receiver side.

Why is there a 4MB limit on MSMQ messages? Check out this blog.

How to send files larger than 4 MB by using Microsoft Message Queuing ? here