Unzipping data in the CF

  • Thread starter Thread starter Jon Skeet [C# MVP]
  • Start date Start date
J

Jon Skeet [C# MVP]

Our database application is having to deal with some large responses
from the remote server, and we're considering zipping up the response
before sending it (from the server). We would then need to unzip it on
the client, of course.

Are there any native libraries on PocketPC which can do this, or do I
have to use SharpZipLib or something similar?
 
Hi Jon,

AFAIk SharpZipLib is the only option, if you find a better thing just let
me know as I have the same problem.

Cheers,
 
Hey Jon:

Tim mentioned nSoftware's stuff. I've used it a bunch and it rocks.
Sapphire's http://www.sapphire-solutions.co.uk/ stuff is pretty cool too.
nSoftware has an offer for MVP's too that's really great, the details are in
the dotnet private ng under EDI posted by Miha Markic.

Cheers,

Bill


Jon Skeet said:
Our database application is having to deal with some large responses
from the remote server, and we're considering zipping up the response
before sending it (from the server). We would then need to unzip it on
the client, of course.

Are there any native libraries on PocketPC which can do this, or do I
have to use SharpZipLib or something similar?


--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
 
William Ryan eMVP said:
Tim mentioned nSoftware's stuff. I've used it a bunch and it rocks.
Sapphire's http://www.sapphire-solutions.co.uk/ stuff is pretty cool too.
nSoftware has an offer for MVP's too that's really great, the details are in
the dotnet private ng under EDI posted by Miha Markic.

Thanks for that and the other suggestions. If I have to use an external
library of any kind, I'll probably go with #ZipLib - it's free whether
or not I'm an MVP, and I can fix any bugs in it if I find them :) It
also allows you to work on a stream basis rather than a file basis,
which I definitely need in this case.
 
Alex Yakhnin said:
IMO, SharpZipLib is slow on PPC. I've been using the ZLibCE quite happily:

http://www.tenik.co.jp/~adachi/wince/zlibce/index.html

Hmm... I'll give SharpZipLib a try before the others. Being pure
managed code has some really significant advantages in terms of ease of
installation and integration with streams. I implemented decompression
in my HttpResponse wrapper in about 8 lines of code (untested so far).

If I find it's too slow, I can always have a look at the code and see
if I can speed it up - that would help everyone :)
 
Back
Top