473,769 Members | 4,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alternatives to DeflateStream

IIRC, we can use only System.IO.Compr ession.InflateS tream to uncompress
files compressed with System.IO Compression.Def lateStream.

If that is in fact true, what are some alternatives you might recommend?

I'm writing a Console app that, amongst other things compresses files. I
want to be able to uncompress the files using WinZip and other similar and
generally available compression/uncompression utilities.

I have seen and used 7-Zip, but I'd prefer to have more control over the
compression process (and not simply call an external exe).

Thanks.
Sep 26 '07 #1
1 2615
On Sep 26, 7:00 am, "Smithers" <A...@B.comwrot e:
IIRC, we can use only System.IO.Compr ession.InflateS tream to uncompress
files compressed with System.IO Compression.Def lateStream.

If that is in fact true, what are some alternatives you might recommend?

I'm writing a Console app that, amongst other things compresses files. I
want to be able to uncompress the files using WinZip and other similar and
generally available compression/uncompression utilities.

I have seen and used 7-Zip, but I'd prefer to have more control over the
compression process (and not simply call an external exe).
You can use #ZipLib, which is widely used:

http://www.icsharpcode.net/OpenSource/SharpZipLib/

Jon

Sep 26 '07 #2

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

Similar topics

43
5019
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own libraries. I'm not sure if that's a good thing or not. AFAIK, most of Qt is compatable with the Standard Library. That is, QLT can interoperate with STL, and you can convert back and forth between std::string and Qt::QString, etc. Are there any...
10
17848
by: Asaf | last post by:
Hi, I am trying to Compress & Decompress a DataSet. When running this code I am receiving the error: System.Xml.XmlException was unhandled Message="Root element is missing." Source="System.Xml" The code:
2
4504
by: Brent Rogers | last post by:
I am having trouble with the DeflateStream.Read() method. For some reason it wants to return Zero. I have this set of classes: =================== using System; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression;
2
3584
by: Flpit | last post by:
Hi, Can anybody tell me how to use the System.IO.Compression Deflatestream Class. I have a byte which is a compressed set of bytes that form a block. I want to inflate the byte and return the new inflated byte.
1
2336
by: bthetford | last post by:
I am trying to roll a simple compression scheme for network communication in an app I am developing. On the sender side, I compress each block of a set amount of bytes individually, then send it over the NetworkStream along with the size of the original data, the size of the compressed data, and a byte telling the receiving end whether to expect more. On the receiving end, these blocks are received along with that size data and buffers...
4
4189
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
The compression part of this code works fine for me, but the decompression part of this code does not. The output file from that is the same as the compressed file. What is wrong with my code? Thanks, Jon 'compression starts here Dim src As FileStream = File.OpenRead(Fn) Dim dst As FileStream = File.Create(Ofn) Dim cmp As New DeflateStream(dst, CompressionMode.Compress)
1
10208
by: sedwick | last post by:
I'm using .NET 2.0.50727 in VS 2005 Pro, ENU Service Pack 1 (KB926601). I've been experimenting with the System.IO.Compression classes GZipStream and DeflateStream, and I found it interesting to note that they'll create different-sized compressed files depending on the procedure you use to take in the source file's data. With one, almost every file I feed them for compression ends up significantly bigger. That code is below, almost verbatim...
1
3104
by: Spencer | last post by:
Our Mainframe DBA insists that the IDTHTOIN parameter be set to 600 so that all idle threads timeout after 10 minutes. This is causing a particular packaged application that expects to hold idle threads open for as long as it wants problems. From an application standpoint there is not an acceptable workaround that would allow the application to create connections dynamically at this point.
4
4499
by: Grok | last post by:
Trying to zip/unzip files from VB.NET 2005 with 2.0 .NET Framework ... but the file created "SampleFile.zip" is not a readable zip file. (Using GZipStream works correctly to produce a readable .gz file) How do I properly create a .zip file without 3rd-party lib? Dim sourceFile As FileStream = File.OpenRead("c:\temp\SampleFile.chm") Dim destFile As FileStream = File.Create("c:\temp\SampleFile.zip")
0
9423
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
10212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
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
7410
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
6674
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3962
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
3563
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.