Questions tagged [dotnetzip]

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

dotnetzip
Filter by
Sorted by
Tagged with
-1 votes
1 answer
558 views

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 ...
Dany Maor's user avatar
  • 2,401
2 votes
0 answers
725 views

DotNetZip read archive from stream

I am using DotNetZip library and I want to do the following steps: 1 Add same files into ZipFile object 2 Save the archive into MemoryMappedViewStream stream 3 Read archive parts from stream and ...
roroinpho21's user avatar
1 vote
1 answer
2k views

DotNetZip Get Progress of Entry extraction

Do anyone know how to check progress of entries extraction that are inside folder of zip? In my case user can select folders to extract, and i want to make 2 progress bars, one for overall process (...
Sajgoniarz's user avatar
1 vote
1 answer
154 views

.NET 3.5 DotNetZip Problems searching through extracted files

I have zip files I need to search through I have working code for .NET 4.5 using System.IO.Compression and it works flawlessly but I can't seem to get it to work using DotNetZip in .NET 3.5 Here is ...
ondrovic's user avatar
  • 1,145
0 votes
0 answers
4k views

Error while unpacking the zip from zip

I have the following file structure: yyyy.zip 12x MM-yyyy.zip each of MM-yyyy.zip 28-31x yyyyMMdd.prn prn in this case is something like txt. I have a path to a month and extracting MM-...
Bogusz Michałowski's user avatar
1 vote
1 answer
2k views

Zip file created but not downloaded MVC C#

In my view i have some checkboxes and their values include a Uri. In the controller i get the values of the checked checkboxes, download their content (text) and zip them. It looks like that the zip ...
exevio's user avatar
  • 43
0 votes
1 answer
2k views

DotNetZip download zip file from a webservice

I'm trying on c# to download a zip file from a webservice and extract an entry in the memory but when I try to read the stream how is in the documentation of the dotnetzip I get the exception "This ...
rlartiga's user avatar
  • 451
3 votes
1 answer
3k views

Memory stream objects are not saving to DotNetZip

I am trying to create a DotNetZip zip file that will be streamed to the user. Inside the zip file, I am inserting two memory streams. But for some reason when I open the zip file, it is empty. I ...
MikeV's user avatar
  • 585
0 votes
1 answer
858 views

Auto Extract a zip file

I'm trying make a program that extracts a specific zip file everytime the program launches. this is my code to create the zip file: //creating the file ZipFile File = new ZipFile(System.Environment....
user2992413's user avatar
0 votes
0 answers
409 views

Zip the folder is not working first time C# and DotNetZip

I have a DotNetZip code for zipping the folder. It doesnt zip the file for the first time after cleaning the solution. After that it works fine. Can anybody know the issue why its happening?? Button ...
DonMax's user avatar
  • 960
0 votes
0 answers
927 views

Add multiple files to a Zip file using DotNetZip is too slow

I followed the example below: (https://dotnetzip.codeplex.com) String[] filenames = { "ReadMe.txt", "c:\\data\\collection.csv", "c:\\reports\\AnnualSummary.pdf"}; using (ZipFile zip = new ZipFile(...
Tang Thanh Tam's user avatar
1 vote
2 answers
2k views

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) =&...
takayoshi's user avatar
  • 2,789
0 votes
0 answers
145 views

Getting time remaining from DotNetZip packaging

I have this code: using (var zip = new ZipFile()) { zip.CompressionLevel = CompressionLevel.None; zip.AddDirectory(myDirectoryInfo.FullName); zip.UseZip64WhenSaving = Zip64Option.Always; ...
Nicros's user avatar
  • 5,141
0 votes
2 answers
2k views

Zip file from URL not valid

I followed another post to be able to zip the content of an URL.. When I click my button Download, I "zip" the content of the URL and I save it in the default download folder... So far this is my ...
minoyo's user avatar
  • 95
2 votes
2 answers
3k views

DotNetZip ZipInputStream issue

I use DotNetZip 1.9.3 library and have faced a problem using BZip2 and AES256 both for 1 entry within 1 archive. ZipOutputStream works fine, but ZipInputStream gets wrong BZip2 header. If I use commom ...
QgecNick's user avatar
0 votes
1 answer
4k views

The Archive is either in unknown Format or Damaged using Dotnetzip library to zip file [closed]

I am using below code to zip the memory stream on the fly dynamically and creating excel file inside that zipfile .....using dotnetzip dll ...... public ActionResult ExportToExcel() { ...
Glory Raj's user avatar
  • 17.6k
0 votes
3 answers
2k views

System.IO.FileNotFoundException Reference not found on when run on users computer

I am making a program in C# with Visual Studio Express 2013. I am using Ionic.zip (dotnetzip). When i run it from the .../bin/release directory or from Visual studio, it runs perfectly fine. when the ...
therimmer96's user avatar
1 vote
0 answers
64 views

no API available to extract or create a archive with password in windows 8.1

Unfortunately in Windows store 8.1 there is no API available to extract or create a archive with password ,at least this what i find out after a lot of recherche on the web, And because this is very ...
Kais Zwawi's user avatar
1 vote
1 answer
2k views

Nesting Zip Files and Folders in Memory using DotNetZip Library

We have a page that users can download media and we construct a folder structure similar to the following and zip it up and send it back to the user in the response. ZippedFolder.zip - Folder A ...
TheJediCowboy's user avatar
0 votes
1 answer
2k views

Create zip file without inclusion of folders. [duplicate]

i have tried below code, and it is creating zip file . but the problem is when i unzip it , i have seen that it is saving my file (csv file) but with all root folder. i just want that when i unzip my ...
User5590's user avatar
  • 1,405
0 votes
1 answer
699 views

how to remove path dotnetzip c#

my project is framework 4.0 so i use DotNetZip. i have a code to save zip to E: using (ZipFile zip = new ZipFile()) { zip.AddFile(CGlobalVar.CurrentMissionFolder + "\\OutputTxt\\" + ...
Antares's user avatar
  • 15
0 votes
2 answers
2k views

asp.net security exception ''System.Security.Permissions.FileIOPermission' using DotNetZip

I've integrated the DotNetZip dll into an ASP.net/VB project. But when I try to open a file for reading, I get a security exception: System.Security.SecurityException: Request for the permission of ...
Stanton's user avatar
  • 1,334
0 votes
2 answers
706 views

Zipping file with DotNetZip

I am trying to zip and encrypt a chosen file from the user. Everything works fine except that I am zipping the whole path, i.e not the file itself. Below is my code, any help on how I can zip and ...
user3274252's user avatar
-1 votes
2 answers
2k views

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 ...
Ned's user avatar
  • 355
0 votes
1 answer
1k views

Decompress ZLib archive containing directory

I have an archive in the Zlib format. I am trying to decompress it using C#. The archive contains one file and a folder full of more files and folders. So far, I have been able to decompress the ...
sirdank's user avatar
  • 3,461
3 votes
1 answer
9k views

C# : How to report progress while creating a zip file?

Update: Got it working updated my working code Here is what I have so far private async void ZipIt(string src, string dest) { await Task.Run(() => { using (var ...
ondrovic's user avatar
  • 1,145
2 votes
0 answers
133 views

Resume reading partial input with ZlibStream?

I am having a tough time understanding some behaviours of the ZlibStream when receiving partial data from a socket. On the other end is a C++ server sending zlib'd data and I'm writing the client ...
Dragos's user avatar
  • 498
1 vote
1 answer
5k views

DotNetZip System.UnauthorizedAccessException: Access to the path is denied

I know here is some questions about this error in DotNetZip, I've tried all solutions and failed. I'm developing code on my Win8.1 notebook and have no problems, problems begin after deploy to the ...
insane's user avatar
  • 45
2 votes
0 answers
154 views

DotNetZip crashes with debugger attached, but works fine otherwise

DotNetZip crashes on the following code: using (ZipFile zipFile = File.Exists(zipFilePath) ? ZipFile.Read(zipFilePath) : new ZipFile(zipFilePath)) { zipFile.UpdateEntry(...
Grzenio's user avatar
  • 36.3k
1 vote
1 answer
3k views

DotNetZip Library and C# BackgroundWorker to report progress

Using DotNetZip library I'm having difficulty trying to get this implemented with the BackgroundWorker On the DotNetZip Documentation it shows how to Unzip an archive but ot how to Zip and report ...
IEnumerable's user avatar
  • 3,700
0 votes
0 answers
90 views

Difference between TWO approaches to create a ZIP file

In my application, I need to convert the file which is dropped by user to a ZIP file, in a temporary folder. I am using DotNetZip for this purpose by writing something like this. zip.AddFile("...
snippetkid's user avatar
0 votes
1 answer
614 views

How to create separate zip files for all the files with password within a directory using DotNetZip?

I have a source folder in which multiple files are there. I need to create separate zip files with password for all the files within this source folder. I tried it, but not getting the desired ...
user3264676's user avatar
0 votes
1 answer
1k views

DirectoryNotFoundException when running from PCs other than Server in C#

I have developed a console application which zips up files within a directory with password to a destination folder. I am zipping files within a directory to a destination folder with password. This ...
Brijraj's user avatar
  • 187
1 vote
1 answer
3k views

I want zip file without any directories in zip file.How can I do in c#

My problem is that I want zip my file into zip formatted file. I used DotNetZib library works fine but there is a little problem in there. I read file from C:\Users\Hüseyin\Desktop\AA for instance. ...
husonos's user avatar
  • 241
6 votes
3 answers
2k views

How can I reduce the time taken to extract files?

I made a program in C# where it processes about 30 zipped folders which have about 35000 files in total. My purpose is to read every single file for processing its information. As of now, my code ...
user2945623's user avatar
1 vote
1 answer
87 views

DotNetZip why is the last line always truncated

every zip file has a truncated last row. I output the row tot he console and it's not truncated, why would the last line of the compressed file be truncated? using (SqlConnection conn = new ...
Chris Hayes's user avatar
  • 3,974
0 votes
1 answer
1k views

BadRequest unexpected token ILLEGAL when downloading ZIP file

I am working on an asp.net application using Ext.Net for my UI and Ajax calls (DirectMethods). I am trying to download a zip file on the server using DotNetZip. There are two parts to the download ...
Vaibhav Pingle's user avatar
0 votes
0 answers
512 views

stream to zip using DotNetZip

I have a Stream that i want to read and then zip it, This stream is generated by HttpRequestMessage in web api as posting a zip file through restclient and code as below var task = this.Request....
GowthamanSS's user avatar
  • 1,454
1 vote
0 answers
1k views

ZipOutputStream generates corrupted zip file when zipenty is numerous

I have the code below to simulate an action i am trying to perform using SharpZipLib. The generated zip file runs well when the limit of 'i' is low. But as 'i' tends towards a high value e.g 100, the ...
Remade's user avatar
  • 408
2 votes
1 answer
261 views

zip directory with dedicate childfolders

I'm trying to pack a folder directory into a zip directory, not including all child folders. currently i m using this method to pack the whole directory. public void directoryPacker(DirectoryInfo ...
patdhlk's user avatar
  • 139
4 votes
1 answer
4k views

DotNetZip unable to zip a huge number of entries

I'm using dotnet zip in the following way: using (ZipFile zip = new ZipFile(@"E:\test2.zip")) { zip.ParallelDeflateThreshold = -1; zip.UseZip64WhenSaving = Zip64Option.Always; zip....
user2878881's user avatar
1 vote
1 answer
4k views

Cannot read that as a zip file using DotNetZip 1.9

I am working on an application that will download a .zip file from my server and extract it when the download is complete using DotNetZip 1.9 The application is downloading the zip file properly, but ...
Meta's user avatar
  • 1,850
0 votes
0 answers
278 views

Rolling archive file by date Using c# dotnetzip

I am trying to create an archive file and keep adding files to it until it is the next day. So like a rolling archive file per each day. I cant seem to figure this out, I can seem to create archive ...
user2600123's user avatar
0 votes
2 answers
639 views

Sending gzipped data over a network from C# to Java

I have an application that sends data gathered from a data source on my PC (say, Excel or Access) to a receiving app on an Android tablet. I am in the testing stage of compressing the data before it ...
Fam's user avatar
  • 600
1 vote
1 answer
2k views

Compressing a folder on a network path using DotNetZip

I am not sure if its a gap in my understanding. I have to zip a folder which sits on a server in the same network. Suppose I have a folder WebSite on the D drive of ABC machine on XYZ domain (same ...
Niranjan's user avatar
  • 813
2 votes
1 answer
72 views

Files not appearing after ExtractAll?

using (ZipFile zip = ZipFile.Read("update.zip")) { zip.ExtractAll("\\serv\\www", ExtractExistingFileAction.OverwriteSilently); } I'm using the above to attempt to extract update.zip into \serv\www....
Juicy's user avatar
  • 12.2k
0 votes
1 answer
501 views

DotNetZIp TargetInvocationException on .AddSelectedFiles

i am trying to zip a list of files from a directory based on some criteria, using the selection property. Here is the code using (ZipFile zip = new ZipFile()) { string selection = ...
Panos Antoniou's user avatar
0 votes
2 answers
3k views

Zip files and attach them to MailMessage without saving a file

I'm working on a little C# ASP.NET web app that pulls 3 files from my server, creates a zip of those files, and sends the zip file to an e-mail recipient. The problem I'm having is finding a way to ...
KrispyMart's user avatar
0 votes
1 answer
896 views

DotNetZip How to fix 0000000 CRC32 issue?

I'm using DotNetZip to add multiple MemoryStreams to a single archive. So far, my code works when I select 1 or 2 files, but does not work if I add more. I found the difference is the CRC32 are all ...
Steven Zack's user avatar
  • 5,054
2 votes
1 answer
2k views

DotNetZip Hangs Intermittently

I have a VERY simple program using DotNetZip (most current version) with C#.Net, VS2010. It has begun hanging when it tries to save the file it has zipped up. No error messages, no nothing. It ran ...
JimS-CLT's user avatar
  • 675

1
3 4
5
6 7
10