BizTalk Server 2020 – 20 days, 20 posts – day 11. Following my recent blog posts, here is another pipeline component migrated to BizTalk Server 2020 that is part of my BizTalk Pipeline Components Extensions UtilityPack project: Zip File Pipeline Component.
📝 One-Minute Brief
Introduces the Zip File Pipeline Component for BizTalk Server 2020, a custom send‑pipeline component that enables automatic ZIP or GZIP compression of outgoing messages during the encode stage.
[/summary
Zip File Pipeline Component
The Zip File Pipeline Component runs in a send pipeline, specifically in the encode stage, where it compresses outgoing messages using ZIP or GZIP formats.
Functionally, it delivers the same capabilities you expect from compression tools such as WinZip or 7‑Zip, while integrating directly into the BizTalk messaging flow.
Most importantly, BizTalk performs the compression internally, so you don’t need to install any additional compression or decompression software on the BizTalk Server machines.

To use this pipeline component in your projects, copy the BizTalk.PipelineComponents.ZipFile.dll file into the Pipeline Components folder on every BizTalk Server machine:
..\Program Files (x86)\Microsoft BizTalk Server\Pipeline Components
After that, BizTalk can immediately use the component at runtime. You do not need to register it in the Global Assembly Cache (GAC).
Additionally, the component exposes two simple configuration options:
- FileExtension – lets you define the output file format, such as
.zipor.gz. - Enabled – allows you to enable or disable message compression by setting a true or false value.
What is BizTalk Pipeline Components Extensions Utility Pack?
BizTalk Pipeline Components Extensions Utility Pack provides a collection of custom pipeline components that developers can use in receive and send pipelines. These components extend BizTalk Server’s out‑of‑the‑box pipeline capabilities.
The project lives in the BizTalk Server Open Source Community repository on GitHub (https://github.com/BizTalkCommunity). Moreover, anyone can contribute new pipeline components or enhance existing ones to further improve BizTalk Server capabilities.

At the moment, this project is available for:
- BizTalk Server 2020;
- BizTalk Server 2016;
- BizTalk Server 2010;
- BizTalk Server 2006-2009
Download
You can download BizTalk Pipeline Components Extensions Utility Pack from GitHub:
Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son.
Hi I tested this component, det the zip extension and compression to true. File and extension is correct but file isn’t compressed.
I have tested with .zip extension. I am getting the following error while extracting the output file.
Before you can extract files, you must copy files to this compressed (zipped) folder.
Hi Sandro.
I have the same issue as mentioned by Lars. The file wont be compressed. It will be named as test.zip but it is actually only a renamed file of the original file. Is it due to the fact that the message must be a multipart message? All I do is picking up a text file test.txt via ReceivePort and receiveLocation and a Send Port (SMTP) with filter on that ReceivePort will send out the message with the selected PipeLine.
Any ideas?