Questions tagged [sharpziplib]

#ziplib (SharpZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform.

The #ziplib (SharpZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language). The creator of #ziplib put it this way: "I've ported the zip library over to C# because I needed gzip/zip compression and I didn't want to use libzip.dll or something like this. I want all in pure C#."

Reference: http://www.icsharpcode.net/opensource/sharpziplib/

Installation

SharpZipLib can most easily be installed through its NuGet package.

Install-Package SharpZipLib
272 questions
0
votes
1 answer

how to streamWrite a .zip/epub file from response to isolatedStorage if that .zip/hpub file contains .jpg, .woff (web open font format)

Actually i am trying to saving a .zip/.epub file from webResponse into my wp8 isolated storage which contains saveral .html, .png, .jpg and .woff ( Web Open Font Format) files. my following code is saving only .html and .png files from the…
0
votes
2 answers

How do I clean up the temp files created by SharpZipLib

When I create a zip file using SharpZipLib I end up with .tmp files litering my hard drive. It occurs when I add files to an archive. I'm not too concerned that it's happening, but I'd like to be able to get the file name so that I can remove the…
Brad Bruce
  • 7,638
  • 3
  • 39
  • 60
0
votes
1 answer

How to Zip Files with ZipSharpLib and use existing file name as new Zip filename (asp.net VB)

Here is a code sample to Zip up files older than 7 days in a directory and create a compressed file with the same name, then delete the existing file. In this example we will use .txt files but you can change this to suit. e.g. myfile1.txt --->…
James
  • 900
  • 3
  • 15
  • 28
0
votes
2 answers

Extract to %appdata%\folder1

I want to extract with SharpZipLib to extract. I use this for extract on %appdata% but i want to extract in a subfolder of Roaming string appdata = System.Environment.GetFolderPath( …
TheMrRafus
  • 35
  • 1
  • 1
  • 6
0
votes
3 answers

Extracting the contents of a zipped tab delimited file from a byte array

I've seen some answers to this question posted, but nothing exactly like what I am struggling with, and I'm having some trouble. Basically, I am using an API that returns data in a byte array like so: byte[] file = Api.getZippedReport(blah,…
Chris Jenkins
  • 719
  • 7
  • 20
0
votes
1 answer

Download multiple Mp3 files from different urls as zip archive in asp.Net

I am working on a .Net Application in which i need to add multiple mp3 files to a zip archive and download the zip archive locally. The mp3 files are on different urls ad are not hosted or stored on my server. Which library is good for such thing. I…
Fahad Abid Janjua
  • 1,024
  • 3
  • 14
  • 35
0
votes
1 answer

Can't decompress a file I compressed using BZip2

I have a program that compresses a file using BZip2 then saves it to a new file. Public Sub Create(ByVal outPathname As String, ByVal filePath As String) Dim msCompressed As New MemoryStream() Dim zosCompressed As New…
Garrett Outlaw
  • 215
  • 3
  • 6
  • 16
0
votes
0 answers

icsharpcode.sharpziplib limitation

I am using the library to read a zip file. The zip contains about 200,000 files. Half of them with .txt extension and half of them with .csv extension. However, when I use the following code to extract them, var fs = File.OpenRead(_archiveName); var…
Stratford
  • 135
  • 1
  • 1
  • 11
0
votes
4 answers

SharpZipLib - ZipException "End of extra data" - Why am I getting this exception?

I'm using SharpZipLib version 0.85.5 to unzip files. My code has been working nicely for a couple of months until I found a ZIP file that it doesn't like. ICSharpCode.SharpZipLib.Zip.ZipException: End of extra data at…
Seibar
  • 68,705
  • 38
  • 88
  • 99
0
votes
1 answer

Copy files from one zip to other zip - ICSharpCode.SharpZipLib.Zip

i would copy files from one ZipFile to another ZipFile. Why it issnt so easy? ' Copy files from b.zip to a.zip Dim a As New ZipFile(CurDir() & "\a.zip") Dim b As New ZipFile(CurDir() & "\b.zip") a.BeginUpdate() For Each c As ZipEntry In b …
Patrick
  • 829
  • 2
  • 13
  • 34
0
votes
1 answer

how to send image as attachment with web service?

I want to add new employee to web service. The employee photo should be sent as an attachment with the web service. and sent as a password protected ZIP file.
Amir Salah
  • 31
  • 9
0
votes
1 answer

Create a ZipFile and add to it a txt file with a string from memory

I am using SharpZipLib but I could not find any example on how to crate a new ZipFile and add to it a file containing an string from the memory (and not from an existing file). Any suggestion ? Thanks
user1472131
  • 411
  • 1
  • 5
  • 15
0
votes
1 answer

How can I Read more info ZipEntry(s) inside of a ZipEntry with sharpZipLibrary?

I have to list all the information available inside a zip file (FileName, lenght, date created, modified, and so on). Some zip files that I have to analyze come with folders and zip files inside of them as well as other file types. I was wondering…
mimoralea
  • 9,590
  • 7
  • 58
  • 59
0
votes
1 answer

Sharpzlib read an ZipInputStream with resume

What I'm trying to achive is to enable an application to extract a large remote file (from ftp or http), without fully downloading it and with the possibility to resume the extraction in case of network failure. Following this example…
Francesco
  • 4,794
  • 1
  • 19
  • 27
0
votes
2 answers

Could not load file or assembly 'ICSharpCode.SharpZipLib' or one of its dependencies. Access is denied

Archiving is working on a remote desktop (coworker) in the office and on the website. I have tested it. I am writing a service and I need this inside it also. This is not working on my machine, I work remotely and am connected via VPN. The user…
learning...
  • 3,104
  • 10
  • 58
  • 96