Question

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?

Was it helpful?

Solution 2

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

OTHER TIPS

GZipStream support was added to the Compact Framework in version 3.5. To develop for the CF 3.5 you need Visual Studio 2008 (VS 2010 does not support development for the Compact Framework).

If your locked into Visual Studio 2005 and you have no control over the web service you consume you can create a intermediary web service to basically repackage the data into a format supported by CF 2.0.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top