Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Compressing Message while sending to MSMQ › Re: Compressing Message while sending to MSMQ
I don’t know about msmqtlarge.dll. I usually try to steer away from using MSMQ because of the 4MB size limit and also because BizTalk’s large message queueing functionality seems cumbersome. I would probably look at compression or chunking before I went the MSMQT route. Compression would be simpler than chunking, but it would not eliminate the size limit, only increase it. You could use the System.IO.Compression.GZipStream class to compress the message on the client side, and then write a custom receive pipeline on the BizTalk side that uses GZipStream to decompress it. Chunking would be more complicated but it would allow you to handle much bigger messages. You would need to write a debatching orchestration to reconstruct the message from the chunks. The tricky part would be identifying the chunks that make up a message. You have to find a way to correlate the chunks. The client app will probably need to set some kind of batch ID. Tricky!