Search code examples
c#windows-mobilezipgzipstream

What should I use for zipping instead of GZipStream in Windows Mobile?


I am developing an application for Windows Mobile 6 in Microsoft Visual Studio 2005. I have to unzip a text received by web service. But when I use GZipStream I get the following error:

Error 1 The type or namespace name 'GZipStream' could not be found (are you missing a using directive or an assembly reference?)

What should I do now?


Solution

  • I found it.

    The brand new Compact Framework 3.5 Beta1 now contains Compression!

    Introduction

    The Compact Framework is missing a crucial namespace for mobile device development - System.IO.Compression. In here lies the ability to compress text, xml, files or any Stream using popular ZIP compression. You can use it to save storage space on the device by compressing data used by your application. Or you can use it to compress information before transmitting it to a server to save GPRS costs and speed up transfer times. Simply use this library in the exact same way you would on the full framework.

    Download Links

    Free Download For CF1

    Free Download For CF2


    My reference