473,729 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Zip Libraries in Framework 1.1

Hello,

Are there a class within the Framework that support zip
which Microsoft has written?

I'm aware of the open source SharpLibZip.

Thanks
Nov 16 '05
15 4275
Correct, the compression stuff in 2.0 is for compressing actual files only,
NOT folders.. and you can't open these files with something like WinZip..

"James Curran" <Ja*********@mv ps.org> wrote in message
news:ec******** ********@TK2MSF TNGP12.phx.gbl. ..
"Dennis Myrén" <de****@oslokb. no> wrote in message
news:0p******** ***********@new s4.e.nsc.no...
Currently i am using SharpZipLib but (with all respect to SharpZipLib)
built-in compression routines are preferred.
Looking at the docs Jon linked to and the code Drebin posted, it

doesn't seem directly comparable. SharpZipLib as I recall, creates proper Zip
files, just like PKZip or Winzip (multiple files with internal table of
contents). The framework's functions appear to just handle the compressing of text (which, granted, is the hard part, but still leave you some work to do).

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)

Nov 16 '05 #11
James Curran <Ja*********@mv ps.org> wrote:
"Dennis Myrén" <de****@oslokb. no> wrote in message
news:0p******** ***********@new s4.e.nsc.no...
Currently i am using SharpZipLib but (with all respect to SharpZipLib)
built-in compression routines are preferred.


Looking at the docs Jon linked to and the code Drebin posted, it doesn't
seem directly comparable. SharpZipLib as I recall, creates proper Zip
files, just like PKZip or Winzip (multiple files with internal table of
contents). The framework's functions appear to just handle the compressing
of text (which, granted, is the hard part, but still leave you some work to
do).


I don't see anything text-specific there - it's all stream-based as far
as I can see.

You're right that it doesn't deal with zip files though. Personally
that isn't an issue for me, but it looks like SharpZipLib will still be
useful for some people.

For those interested in binary diffs, by the way, I recently
implemented a VCDIFF decoder. The combination of xdelta3 (or a similar
VCDIFF compressor) and then gzip gives a really good way of
distributing updates in bandwidth-limited situations. The VCDIFF
decoder is available at
http://www.pobox.com/~skeet/csharp/miscutil

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #12
Believe it or not, there is Zip support in (of all places) the J# library!

Java uses .JAR (Java ARchive) files, which are really .zip files, and there
are APIs to manipulate them.

I haven't tried it, so I don't know how well they work, so you're on your
own there.

See http://msdn.microsoft.com/msdnmag/is...ipcompression/
Nov 16 '05 #13
"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
James Curran <Ja*********@mv ps.org> wrote:
The framework's functions appear to just handle the compressing
of text
I don't see anything text-specific there - it's all stream-based as far
as I can see.


Yes, that's correct. The "text" in my message was a misspeak. I'm not
sure what I meant there, but "text" wasn't it. "Content" is probably more
accurate, or, I guess "data".

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
Nov 16 '05 #14
James Curran <Ja*********@mv ps.org> wrote:
"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
James Curran <Ja*********@mv ps.org> wrote:
The framework's functions appear to just handle the compressing
of text

I don't see anything text-specific there - it's all stream-based as far
as I can see.


Yes, that's correct. The "text" in my message was a misspeak. I'm not
sure what I meant there, but "text" wasn't it. "Content" is probably more
accurate, or, I guess "data".


Right - no problem.

Thinking about it, while it could be confusing, I'm not even sure
you're wrong to call it text within the vocabular of compression.
Certainly in encryption the original message is "plain-text" whether
it's encrypted or not.

Anyway, we all know what we're talking about :)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #15
Actually, in my particular case, all i need is the core data
compressor/decompressor.
I use it when generating/parsing binary file fragments rather than
compressing existing files or folders
into ZIP libraries.

But of course, still i surely would like all the features of SharpZipLib
to be provided by System.IO.Compr ession.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"James Curran" <Ja*********@mv ps.org> wrote in message
news:ec******** ********@TK2MSF TNGP12.phx.gbl. ..
"Dennis Myrén" <de****@oslokb. no> wrote in message
news:0p******** ***********@new s4.e.nsc.no...
Currently i am using SharpZipLib but (with all respect to SharpZipLib)
built-in compression routines are preferred.


Looking at the docs Jon linked to and the code Drebin posted, it
doesn't
seem directly comparable. SharpZipLib as I recall, creates proper Zip
files, just like PKZip or Winzip (multiple files with internal table of
contents). The framework's functions appear to just handle the
compressing
of text (which, granted, is the hard part, but still leave you some work
to
do).

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)

Nov 16 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1721
by: jbailo | last post by:
I have been working with c#/dotnet and mono and also the Gtk toolkit ( I have used Qt as well). I am working on a java project at work too. My question is: why do we need to have local assemblies or libraries for link or run? Can't a single 'framework server' be set up on the Internet to sent the services of the framework?
5
1695
by: Cecil Westerhoff | last post by:
I just started with programming under linux with c++. I have programmed for years with Borland C++ Builder. So I have some experience. But I can not find the libraries for intenet stuff. (Ping, fetching a page, etc.) The only thing I found was a library for CGI. Can someone tell me where to find those libraries? Or for that mather where to look for libraries in general?
2
3053
by: Nicholas Witchey | last post by:
Does anyone know of a set of graphics libraries written in C#? My goal is to create a set of graphics images in memory then dump them to a file or network stream in any format. Unfortunately the System.Drawing classes all resolve down to calls in gdiplus.dll which are implemented natively. Basically, I would like to use the System.Drawing namespace, classes, and methods to manipulate bitmaps in memory but not have any fundamental...
2
2274
by: Yang Pang | last post by:
I have a project where the GUI is in VB.NET, the libraries in unmanaged C++ which is wrapped in managed C++ and compiled as DLL. The application runs fine on Windows 2000 with VC++ development environment installed, but fails to load on any Windows 2000 system with only the .NET Framework (tried .NET Framework SDK too) installed. Tried suggestions given in "Mixed DLL Loading Problem"
7
5211
by: Steve | last post by:
Hi, We have an application framework library that gets statically linked to any applications we produce. (Windows apps, but I don't think that matters here). The framework is based heavily on the STL and the API uses many STL constructs. Because of the static linking, and the fact that both app and framework are built by the same compiler, we don't have any problems.
6
2579
by: Chris Stankevitz | last post by:
At link time, MSVC determines some of my libraries are unused and doesn't link them into my exe. This undesirable feature causes problems when I employ the factory pattern. With the factory pattern, the app decides at run time which code to use. Is there a link option to turn of this feature? MSVC 7.1 .net 2003 69462-270-0000007-18536 Thanks,
3
18532
by: Fernando Chilvarguer | last post by:
Hello! I created a Class Library project in VS2005. Then, using VS, I was able to add a connection string to the project settings, which automaticaly created an app.config file for me. If I try to access the configuration using System.Configuration.ConfigurationManager, I get a NullException. The code: string connectionString =
2
4237
by: Mike | last post by:
In the previous version of the .net framework, system.configuration.configuration manager was available for use in Class Libraries. I'm now working with VS2005/framework 2.0 and it appears that this is not an option. Why is this class unavailable now in Class Libraries? I need it to reference a machine.config key on my webserver. Thanks.
4
3491
by: Nindi | last post by:
Hi I have a scenario with exceptions that I cannot explain. I have an exception class 'MyException' derived from 'std::exception' There are two libraries 'plugin' and 'framework' linked together by loading at runtime. The issue is that an exception of type 'MyException' is being thrown in
0
8913
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6016
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.