Questions tagged [ionic-zip]
35 questions
17
votes
1 answer
Creating a zip file with ionic.zip
I have the following code set up to create a zip file of a set of doucments:
public bool CreateDocumentationZipFile(int documentIdentifier, string zipDestinationPath, IList documentPaths)
{
bool zipped = false;
…

Richard Gale
- 1,816
- 5
- 28
- 45
6
votes
0 answers
Encrypt file names in archives, prevent showing content list with ionic.zip in c#
I know zipping files with ionic.zip like here:
using (var zip = new ZipFile())
{
zip.Encryption = EncryptionAlgorithm.WinZipAes256;
zip.Password = "123";
zip.AddDirectory("/path/");
zip.SaveProgress += Zip_ProgressBar;
…

Habip Oğuz
- 921
- 5
- 17
5
votes
1 answer
Encoding of files inside a zip (C# / ionic-zip)
We got a problem with the encoding of files inside a zip-file.
We are using the ionic zip to compress and decompress archives.
We are a located in Denmark, so we often have files containing æ, ø or å in the file-names.
When a user uses windows…

Martin M
- 463
- 8
- 20
5
votes
1 answer
Failed - network error when downloading zip file made by Ionic.Zip.dll
I try to download a zip file made by Ionic.Zip.dll from an asp.net c# web form application like this:
zip.AddEntry("filename", arraybyte);
Response.Clear();
Response.BufferOutput = false;
Response.ContentType =…

Reza Amini
- 476
- 1
- 5
- 20
4
votes
1 answer
Failed - network error in get Zip file in chrome
I am creating a zip by Ionic.Zip.dll like this (ASP.NET,C#):
zip.AddEntry("Document.jpeg", File.ReadAllBytes("Path");
I want to download it like this:
Response.Clear();
Response.BufferOutput = false;
Response.ContentType =…

Ali Soltani
- 9,589
- 5
- 30
- 55
4
votes
1 answer
How to zip the multiple files into the folder until condition is met?
Technology Used: C#, IonicZip library.
From the list of multiple log files(Let's say 10,000, each of reasonable amount of size). I have to zip these files in a folder. But then zipped folder's size must be approximately under 4MB. How can I have…

Avishekh Bharati
- 1,858
- 4
- 27
- 44
3
votes
1 answer
Ionic.Zip extract files and ignore password
I am using Ionic.Zip (Compact Framework version) in my Pocket-PC project.
Extracting zipped files (using Ionic.Zip) are working properly. If I put password on the compressed file, it requires the password before extracting, but when I try this…

fiberOptics
- 6,955
- 25
- 70
- 105
3
votes
2 answers
Opening and edting an password protected zip in dotnetcore
is there a way to work with password protected zip files in dotnetcore. Unfortunately System.IO.Compression does not support password protection.
So i tried to use dotnetzip, but every time i try to open an zip file i get an…

Kingpin
- 1,067
- 2
- 14
- 34
3
votes
1 answer
Ionic.Zip ArgumentException (An item with the same key has already been added)
I'm using Ionic Zip to zip all folders in a specific folder excluding the backup folder (which created backups goes).
This is my code:
ZipFile zip = new ZipFile();
string mainpath =…

Ashkan Mobayen Khiabani
- 33,575
- 33
- 102
- 171
2
votes
1 answer
Cannot access Response.OutputStream in an ASP.NET MVC application because it's closed
I'm trying to steam file in my web application from another domain and I'll zip this files for a download. For this I use Ionic Zip. But I've got this error on the marked line in my code:
System.ObjectDisposedException: No access to a closed…

H. Pauwelyn
- 13,575
- 26
- 81
- 144
2
votes
1 answer
C# - How to check if zip file is split?
I want to support split zip files in my project, and to have different implementations case the zip file is split or not.
How do I check if the zip file is split?
using Ionic.Zip;
protected static bool IsZipFileSplit(string filePath)
{
…

Michal Kandel
- 303
- 2
- 10
2
votes
2 answers
Retrieve file names from inside ZipFile
Like the title says, I need to read the names of files from a zip file. I'm going to feed the names into a 2D string array (along with other data). Here's a beginning example of what I'd like to do.
private String[,] ArrayFiller(ZipFile MyZip)
{
…

coinbird
- 1,202
- 4
- 24
- 44
2
votes
1 answer
C# Ionic.Zip progressbar as background worker
I got the following code:
string path = Environment.CurrentDirectory;
private void button1_Click(object sender, EventArgs e)
{
using (ZipFile zip = ZipFile.Read("Fringe.S03E07.HDTV.XviD-LOL.zip"))
{
…

Ron
- 3,975
- 17
- 80
- 130
1
vote
1 answer
Cancel Zip save method
I just wonder is there a way to cancel long running methods with cancellation token?
My problem with zip.Save(), I wanna cancel by press button.
I am thinking about thread abort, but not sure.
string path = Server.MapPath("~/Test/");//Location for…

UdoQQ
- 45
- 5
1
vote
0 answers
How to Unzip data in NET Core 3.1 that was Compressed Using Ionic Zip (Without using Ionic to unzip)
Our system has multiple applications and one of them compresses text using Ionic Zip and saves the byte array to the database.
We are working on a different app built using NET Core 3.1 and I'd like access to this data but don't want to use the…

Chris Amundsen
- 11
- 2