system.io.compression Questions
3
I'm using the next code to download some zip archive:
$client = new-object System.Net.WebClient
$client.DownloadFile("https://chromedriver.storage.googleapis.com/$LatestChromeRelease/chromedri...
Malek asked 13/5, 2022 at 11:50
6
Solved
I'm trying to create a zip file that contains one or more files.
I'm using the .NET framework 4.5 and more specifically System.IO.Compression namespace.
The objective is to allow a user to download...
Buchenwald asked 21/10, 2016 at 11:21
2
Solved
.NET 4.5 has added new classes to work with zip archives. Now you can do something like this:
using (ZipArchive archive = ZipFile.OpenRead(zipFilePath))
{
foreach (ZipArchiveEntry entry in archiv...
Inveracity asked 10/9, 2016 at 0:20
5
Solved
I am new to powershell and looking to list all the files, contained in zip files in a directory. I don't want to use any third-party tool.
Structure of the directory is
mydir > dir
a.zip
b.zip
...
Tableau asked 7/1, 2013 at 21:21
7
Solved
I'm trying to create a zip stream on the fly with some byte array data and make it download via my MVC action.
But the downloaded file always gives the following corrupted error when opened in wi...
Landscape asked 8/12, 2017 at 4:44
3
Solved
I am handling some 3rd party ZIP files with .Net 4.5.2 System.IO.Compression.ZipArchive class and all works nicely.
However, I need to tell apart file entries from directory entries, preferably wit...
Derain asked 24/10, 2016 at 16:44
1
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 ...
Serg asked 13/6, 2022 at 19:7
3
Solved
First of all I would like to say that i've tried looking for the solution to this and I haven't found one where I don't have to unzip, add my folder and then zip again. I am not using any third par...
Chessman asked 22/7, 2016 at 10:21
1
On executing the following code.. I get an exception on the OpenRead statement:
End of Central Directory record could not be found.
I am however able to open the zip file with no issues throu...
Calorific asked 8/9, 2016 at 12:11
2
Solved
I'm using the standard VB.NET libraries for extracting and compressing files. It works as well but the problem comes when I have to extract and files exist already.
Code I use
Imports:
Imports S...
Periphrasis asked 17/3, 2013 at 18:47
1
© 2022 - 2024 — McMap. All rights reserved.