Questions tagged [ionic-zip]
35 questions
1
vote
1 answer
Missing file when zip
I'm using Ionic.zip to zip a bunch of files. This is my code to add those file into the zip.
ZipFile zip = new ZipFile();
foreach (string filepath in listoffile) //5 files
{
zip.AddFile(filepath,…

Xion
- 452
- 2
- 6
- 25
1
vote
1 answer
How to fix zip file corrupt error while downloading large files with Ionic-zip in c#
Getting error file corrupt error when downloading large files using Ionic.zip in c#. When user extracts that file file corrupt is being shown. When i am doing same with smaller no of files than it is working fine. Even it is not giving any error…

Satish Bandre
- 11
- 4
1
vote
0 answers
Compress File Using Ionic.ZIP with Progress Bar [Windows Forms]
I'm preparing an application that creates a zip file for a given directory.
I want the following things to display while creating a zip.
Estimated time for completing that zip (Elapsed Time and Time left)
The percentage for completion of…

Hiren Patel
- 1,071
- 11
- 34
1
vote
1 answer
UWP Ionic zip lib no compression
Trying to create a zip file in UWP using Ionic zip library. I manually added the Ionic.Zip.dll into the project. After doing that the below code gave an exception.
using (ZipFile zip = new ZipFile()) -------------> Exception on this line
…

Mohammed Aamir K
- 311
- 5
- 17
1
vote
1 answer
Prevent DotNetZip to create extra folder
I have use the below snippet code to make zip folder by Ionic.zip:
string lastFolder = packageSpec.FolderPath.Split('\\')[packageSpec.FolderPath.Split('\\').Length - 1];
string zipRoot = packageSpec.FolderPath + "\\Zip" + lastFolder;
string fileName…

Aria
- 3,724
- 1
- 20
- 51
1
vote
1 answer
Ionic Zip password set in azure blob storage and set best compression for zip folder not files
How to set zip folder best compression and set a password for Zip folder, I have few Code that i am used please help me how to set best compression and password for zip folder.
using (var zipStream = new MemoryStream())
{…

raveesh tv
- 11
- 3
1
vote
2 answers
PushStreamContent and ionic.zip
My webapi method for zipping on the fly use this code
var result = new HttpResponseMessage(HttpStatusCode.OK)
{
Content = new PushStreamContent((stream, content, arg3) =>
{
using (var…

takayoshi
- 2,789
- 5
- 36
- 56
0
votes
0 answers
Prevent self extracting application entering sandbox mode on Windows 11
I have a self-extracting c# winforms app (implemented by Ionic.Zip 1.9.2.0) that runs on .NET Framework 4.5. Another winforms application manages the app and exports it to a temp folder for running. After I executed the main program without…
0
votes
1 answer
VB.Net Add to Existing Zip File
So I have a Zip file that is like the following: \server\test\test\Alphabet.zip
And the contents of the zip file are 3 text files:
Alphabet.zip
-A.txt
-B.txt
-C.txt
Now in the same path, I have 3 more text files and few more…

sophia
- 3
- 4
0
votes
0 answers
Why has my project started showing reference to DotNetZip?
I am moving to another machine and have installed latest version of VS 2022.
I have references to Ionic.Zlib in my project but now it started showing reference to DotNetZip as well.
Due to this it throws a compile time error - The type 'GZipStream'…

Jordan J
- 21
- 3
0
votes
1 answer
c# zip file creation raising error file not found
we are trying to save zip file using C# Ionic zip library. but it seems to be giving error that the file is not found.
System.IO.FileNotFoundException: 'Could not find file 'PhysicalPath\JobPortal\Job\DownLoadSelectedFiles'.'
the code is as…

Abdul Ali
- 1,905
- 8
- 28
- 50
0
votes
1 answer
An item with the same key has already been added C# -Ionic.Zip
I am trying to download zip files on the basis of multiple selection meaning the user selects documents and presses the download files button and then the zip file is generated.
Everything is working correctly. My zip files are also being…

Unknown
- 35
- 6
0
votes
0 answers
How can I stop Ionic zip from appending null to the end of a file
I have a VB.net (ASPX) which receives a file (data stream) from my application, and depending on switches will save the file as is or compress & encrypt it using ionic.zip. When a file is saved without encryption it is byte perfect. When the same…

Paul Stearns
- 856
- 9
- 30
0
votes
1 answer
How to use ionic zip or dot net zip in asp classic
How can I use ionic zip or dotnet zip library in Classic ASP to extract zip file? I am very new in classic asp. So could you please elaborate step wise step. How could it will working in server as well.

Bunty Choudhary
- 3
- 1
0
votes
1 answer
How to Check File Exist or Not in WinRAR, 7Zip, Zip, Tar, Winzip in C#
In my project I'm uploading a 7Zip, Zip, Tar, Winzip, WinRAR, and etc file.
Now I want to check if particular file is present in uploaded archive using C#.
Can anyone please help me?

Nikunj Satasiya
- 831
- 9
- 25