Microsoft.GZipEncoder The code for this has been taken from https://msdn.microsoft.com/en-us/library/ms751458%28v=vs.110%29.aspx This is just a simple place to have it so that it can be put into a project without having to create it again and again.