Questions tagged [system.io.compression.zipfile]

7 questions
7
votes
1 answer

How do I compress files using powershell that are over 2 GB?

I am working on a project to compress files that range anywhere from a couple mb to several gb's big and I am trying to use powershell to compress them into a .zip. The main problem I am having is that using Compress-Archive has a 2 Gb cap to…
1
vote
1 answer

System.IO.Compression.ZipFile ExtractToDirectory with "overwrite if existing"?

I want to use ZipFile.ExtractToDirectory with a flag overwriteIfExisting, but unfortunately, there is no such parameter. I saw the github issue on this dated back to 2016 where none of the suggested improvements actually have been…
Anders Lindén
  • 6,839
  • 11
  • 56
  • 109
0
votes
0 answers

C# ZipFile - create empty directories

I am currently trying to create zipfiles using System.IO.COmpression.ZipFile, which basically works by enumerating all files using Directory.GetFiles and then using CreateEntryFromFile to add them to my archive. However, this fails when I have a…
Erik
  • 2,316
  • 9
  • 36
  • 58
0
votes
1 answer

Httpclient with HttpCompletionOption.ResponseHeadersRead and ProgressMessageHandler doesn't work

I am trying to implement download a zip file and unzip it with progressbar. Roughly below how my code looks like var handler = new HttpClientHandler() { AllowAutoRedirect = true }; var ph = new ProgressMessageHandler(handler); ph.HttpReceiveProgress…
Emil
  • 6,411
  • 7
  • 62
  • 112
0
votes
1 answer

Trouble Zipping All Folder Contents While In Current Directory

My program has a location that can be set by the user. This could be anywhere. I want to use this to my advantage because if they've created/selected that location as towhere all other files are going to be created or saved then I already have the…
KangarooRIOT
  • 691
  • 1
  • 7
  • 25
0
votes
0 answers

How to troubleshoot ASP.NET Core 6 MVC view problem when using ZipFile

I have a simple ASP.NET Core 6 MVC web app to test viewing various files. The tests were performed in Visual Studio 2022 on localhost. The test steps include: Using a sample file example03.docx and save it in .htm format. It created 2 items…
bedrock
  • 263
  • 1
  • 2
  • 15
0
votes
0 answers

System.IO.Compression does not accept a bool in "ExtractToDirectory"

I am kinda new to C# and visual studio. I try to unzip a zip and overwrite files if they already exist with the following function: using System.IO; using System.IO.Compression; ZipFile.ExtractToDirectory(gameZip, rootPath, true); But it wont…