473,405 Members | 2,171 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,405 software developers and data experts.

Compression or containing Multiple files

Hi,

Does .NET have classes or in the near future have classes to allow me to
compress N files into one or somehow contain N files in one (even without
compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?

Fanks
Nov 15 '05 #1
6 2075
Hi,

Take a look at this article:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
MSDN Magazine, June 2003
http://msdn.microsoft.com/msdnmag/is...ipCompression/

Regards,

Gabriele

<di********@discussion.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does .NET have classes or in the near future have classes to allow me to
compress N files into one or somehow contain N files in one (even without
compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?

Fanks

Nov 15 '05 #2
That unfortunately requires my dependancy on yet another runtime (J#)

"Gabriele G. Ponti" <ggponti.at.hotmail.com> wrote in message
news:Og*************@tk2msftngp13.phx.gbl...
Hi,

Take a look at this article:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
MSDN Magazine, June 2003
http://msdn.microsoft.com/msdnmag/is...ipCompression/

Regards,

Gabriele

<di********@discussion.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does .NET have classes or in the near future have classes to allow me to compress N files into one or somehow contain N files in one (even without compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?
Fanks


Nov 15 '05 #3
WIndows XP has built in compressed folders, I would assume its just a matter
of PInvoke on that library, but thats XP specific, I cant see any
Compression classes in the Longhorn or next up and comming .NET API set.

Since they have a license for XP and I assume LH for compression, why not
make it available in the Libraries?

The only other option is to use XML either as a manafest or as a container
with binary chunks.

<di********@discussion.microsoft.com> wrote in message
news:OK**************@TK2MSFTNGP10.phx.gbl...
That unfortunately requires my dependancy on yet another runtime (J#)

"Gabriele G. Ponti" <ggponti.at.hotmail.com> wrote in message
news:Og*************@tk2msftngp13.phx.gbl...
Hi,

Take a look at this article:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
MSDN Magazine, June 2003
http://msdn.microsoft.com/msdnmag/is...ipCompression/

Regards,

Gabriele

<di********@discussion.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does .NET have classes or in the near future have classes to allow
me to compress N files into one or somehow contain N files in one (even without compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?
Fanks



Nov 15 '05 #4
What about using alternate streams? NTFS files have the ability to have
multiple streams. The only downside is if you need to copy the file to a
FAT/FAT32 partition, only the primary stream will be copied.

Neil

<di********@discussion.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does .NET have classes or in the near future have classes to allow me to
compress N files into one or somehow contain N files in one (even without
compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?

Fanks

Nov 15 '05 #5
Check out Xceed's Zip compression managed library...

I beta tested it a while back, it worked great... they implemented the
compression as streams so you can compress/decompress anything... net
socket, filestream, memory bytes etc..
--
Eric Newton
C#/ASP Application Developer
er**@cc.ensoft-software.com [remove the first "CC."]

<di********@discussion.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does .NET have classes or in the near future have classes to allow me to
compress N files into one or somehow contain N files in one (even without
compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?

Fanks

Nov 15 '05 #6
XCeed has a Zip Compression assembly that you can use to create and
manipulate compressed files

www.xceed-software.com
--
Eric Newton
C#/ASP Application Developer
http://ensoft-software.com/
er**@cc.ensoft-software.com [remove the first "CC."]

<di********@discussion.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does .NET have classes or in the near future have classes to allow me to
compress N files into one or somehow contain N files in one (even without
compression)?

If .NET hasnt or wont, does the platform at all have any I can PInvoke?

Fanks

Nov 15 '05 #7

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

Similar topics

6
by: | last post by:
Hi, Does .NET have classes or in the near future have classes to allow me to compress N files into one or somehow contain N files in one (even without compression)? If .NET hasnt or wont,...
0
by: frankenberry | last post by:
I have multi-page tiff files. I need to extract individual frames from the multi-page tiffs and save them as single-page tiffs. 95% of the time I receive multi-page tiffs containing 1 or more black...
3
by: orekinbck | last post by:
Hi There Is there any easy way to use the System.Compression tools in .NET 2.0 to compress an entire directory ? All my source code is kept in a single directory so I have written a utility...
1
by: chris.atlee | last post by:
I'm writing a program in python that creates tar files of a certain maximum size (to fit onto CD/DVD). One of the problems I'm running into is that when using compression, it's pretty much...
2
by: Eyal Lotem | last post by:
Hey. I have a problem in some network code. I want to send my packets compressed, but I don't want to compress each packet separately (via .encode('zlib') or such) but rather I'd like to...
6
by: Chetan Patil | last post by:
I would like to obfuscate and compress (remove comments, newlines etc) my javascript files / ajax code. Is there a module that will do this on the fly with some level of caching? Does such a...
2
by: Neo | last post by:
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...
21
by: =?Utf-8?B?VkJB?= | last post by:
I compressed a file with GZipStream class and is larger than the original file.... how can this be?, the original file is 737 KB and the "compressed" file is 1.1 MB. Did i miss something or is...
7
by: pamela fluente | last post by:
I have been using something like: public void SaveJPG(Image Image, string FileName, long QualityLevel_0_100, long ColorDepthLevel) { ImageCodecInfo ImageCodecInfoJPG =...
9
by: csharpula csharp | last post by:
Hello, I would like to know which one of the following compressiom methods are the easiest to implement in c# and the most effective one in compression of files? (text or code files) Which...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.