473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

compression application

Neo
I am developing compression application in C++ (vs2k5) using zlib library
for compressing files/folders. I understand how to compress a single file,
but is there any way to compress a folder containing subfolder and files? I
mean is there some single function that does this or will I have to write my
own.

Regards,

-aims
Jul 24 '06 #1
2 1278
Neo wrote:
I am developing compression application in C++ (vs2k5) using zlib
library for compressing files/folders. I understand how to compress a
single file, but is there any way to compress a folder containing
subfolder and files? I mean is there some single function that does
this or will I have to write my own.
ZLIB doesn't include code to compress multiple files into a single file (a
la ZIP). You can invent your own format, or you might want to take a look
at "info-zip" http://www.info-zip.org/ for an open-source version of ZIP
(and the "parent" project of ZLIB).

-cd
Jul 24 '06 #2
No, you don't have to write your own, this is a common need.

If you are writing managed code, here are two options:

1) SharpZipLib, an open-source library (http://sharpziplib.com)

2) Xceed Zip for .NET, a professional library (http://xceedzip.com)

If you are writing unmanaged code:

3) Xceed Zip ActiveX/COM (http://xceedsoft.com/products/zipCompL)

On Mon, 24 Jul 2006 19:55:12 +0500, "Neo" <mo******@hotmail.com>
wrote:
>I am developing compression application in C++ (vs2k5) using zlib library
for compressing files/folders. I understand how to compress a single file,
but is there any way to compress a folder containing subfolder and files? I
mean is there some single function that does this or will I have to write my
own.

Regards,

-aims
--
Alex Leblanc
Xceed Software Inc.
Jul 24 '06 #3

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

Similar topics

4
by: Anders K. Jacobsen [DK] | last post by:
Hi Does anyone have experience using gZip compression on the IIS server with a ASP.NET application. How much can a page be compressed. As i see it it must have a huge impact on the total size....
17
by: dunric | last post by:
After writing the computing urban legend "The Helsinki Code", I spent several nights thinking up how in the world Gustav Larsson, the Finnish PDP-8 computer programmer, could have managed to...
6
by: NutsAboutVB | last post by:
Hello, I am a .NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to File...
1
by: Andy | last post by:
Hi all, I'm familiar with web service compression and how to implement it in a Winforms app. What I'm trying to figure out how to do at this point is how to consume the service from an ASP.NET...
3
by: Benny Ng | last post by:
Dear All, Now I met some performance problems in my application. Because according to our business. The size of some web forms are larger than 1xxx MB. So it takes a long time for user opening a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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,...

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.