Questions tagged [dotnetzip]

Questions dealing with the DotNetZip open-source zip library for .NET

DotNetZip is an open source zip library. DotNetZip works on PCs with the full .NET Framework, and also runs on mobile devices that use the .NET Compact Framework. Silverlight is also supported.

Below is an example of using the library with C#:

 using (ZipFile zip = new ZipFile())
 {
     // add this map file into the "images" directory in the zip archive
     zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
     // add the report into a different directory in the archive
     zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");
     zip.AddFile("ReadMe.txt");
     zip.Save("MyZipFile.zip");
 }

Note: Just for reference the project builds into Ionic.Zip.dll

Installation

DotNetZip can most easily be installed through its NuGet package.

Install-Package DotNetZip
460 questions
-1
votes
1 answer

Zip File not able to open after attaching to email using dotnetzip library

I am able to save all of my files into a zip file and download them correctly. Now I am needing to use that zip file to attach to an email. I am getting errors saying it can't bee opened and if i open it in notepad they are blank. They are…
-1
votes
1 answer

DotNetZip / Bug report

I probably found a bug with 1.13.6 Version of DotNetZip using c#. How can I report this issue, since I cannot find a project site with contacts?
-1
votes
1 answer

Self-extracting program with C#

when you create a zip/rar file with Winrar, it gives you the chance to create an exe from the zip you just created. Is it possible to do that from C# code??? I'm suspecting the DotNetZip Library can do the work because of these lines at their page: …
Rafael Enriquez
  • 333
  • 3
  • 20
-1
votes
1 answer

Zipping huge amount of files ( zip outcome over 1GB )

I've wrote a small app that compresses files and deletes them using DotNetZip, it achieved compressing files to 1.4 GB zips probably zips larger then this it's crashing here is the stacktrace I got: at Ionic.Zip.ZipFile.Save() at…
Light_User
  • 83
  • 2
  • 11
-1
votes
1 answer

How to attach files to dotnet zip library c#

I am using dotnet zip library to create zip file. My files are saved into a database and I am reading each row and load file data into memory from the database and save the memory stream to zip file. my below code works fine. using System.IO; using…
Mou
  • 15,673
  • 43
  • 156
  • 275
-1
votes
1 answer

create self extract file from folder on server ASP.NET C#

i need it to be self extract file and after the user downloads the file to his computer and run the EXE file the installation of the software starts automatically. as can be done with WINZIP and WINRAR. I tried to…
Dany Maor
  • 2,391
  • 2
  • 18
  • 26
-1
votes
2 answers

Can I ReadAllLines from a zipped txt file without extracting?

Is it possible to use System.IO.File.ReadAllLines on a zipped txt file without extracting it? I found a few solutions that include extracting and deleting the file, but I would really prefer to avoid this solution.
Ned
  • 355
  • 2
  • 9
  • 24
-2
votes
1 answer

DotNetZip Creates Subfolders Containing the File Paths

I .zip a file using DotNetZip, but inside contains subfolders of the actual filepath. Example: Open Zip > (Users) folder > (Admin) folder > (Desktop) folder > file1.csv May I know where I should change to that the .zip only contains the file…
gymcode
  • 4,431
  • 15
  • 72
  • 128
-2
votes
1 answer

how to create password to folder Or secure folder using c#

I am working on a windows form application using c#. There are some important files near my project that I do not want anyone to have access them but my application needs files. The first solution was using DotNetZip library with password. But when…
saeed
  • 49
  • 2
  • 8
-4
votes
1 answer

Zip files created by DotNetZip using ASP.NET sometimes causing network error

I'm debugging a rather odd situation involving DotNetZip and ASP.NET. Long story short, the resulting zip files that are being created by the code are being reliably downloaded by Firefox, but most other browsers are intermittently returning a…
1 2 3
30
31