Netduino home hardware projects downloads community

Jump to content


Photo

Text compression


  • Please log in to reply
3 replies to this topic

#1 devian1001

devian1001

    New Member

  • Members
  • Pip
  • 4 posts

Posted 09 March 2011 - 05:25 AM

Hi All, Currently I am working with the Webserver project on the Netduino Plus, and one of the requirement is the text compression. I have tries 2 ways, first is to use the third party library for the compression, ICSharp Library and unfortunately, the deployment is not successful and I think because of the size is too big[[probably since the dll is nearly 200KB]]. Another way is to use the System.IO under standard .NET framework, but under the Micro Framework, the System.IO is so minimal for me to do so. Do you guys have any other suggestions for the text compression? Thank you very much for your helps.

#2 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 10 March 2011 - 03:21 AM

Do you guys have any other suggestions for the text compression?


You might want to try hacking up the open source Compact Framework version of the DotNetZip library. It is 130K, but I bet it could be made smaller to get just the basics...

http://dotnetzip.codeplex.com/

-Valkyrie-MT

#3 Dan Morphis

Dan Morphis

    Advanced Member

  • Members
  • PipPipPip
  • 188 posts

Posted 10 March 2011 - 07:43 AM

Hi All,

Currently I am working with the Webserver project on the Netduino Plus, and one of the requirement is the text compression.

I have tries 2 ways, first is to use the third party library for the compression, ICSharp Library and unfortunately, the deployment is not successful and I think because of the size is too big[[probably since the dll is nearly 200KB]].

Another way is to use the System.IO under standard .NET framework, but under the Micro Framework, the System.IO is so minimal for me to do so.

Do you guys have any other suggestions for the text compression?

Thank you very much for your helps.


If your trying to do HTTP compression, then you need a GZIP library, not ZIP. How compression works in GZIP and ZIP is different.

#4 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 11 March 2011 - 05:29 PM

... you need a GZIP library, not ZIP.


Well, then I guess it's a good thing that DotNetZip has gzip assemblies.


Valkyrie-MT




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.