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

SharpZip escape filename

I'm using SharpZipLib to create a zip file with an html page and images. If the html file has a / in the name, it creates a folder (which messes up the image paths). Example: If the html file should be named Web/Design.html the zip file will…
Alpha Codemonkey
  • 3,242
  • 21
  • 26
0
votes
1 answer

Creating and updating a zipfile

Following the documentation, I'm having an extremely difficult time getting this to work. Using ZipFile I want to create a zip in memory and then be able to update it. On each successive call to update the, the zip reports that it has 0…
The Muffin Man
  • 19,585
  • 30
  • 119
  • 191
0
votes
1 answer

Any sharpziplib commercial support?

Govt client doesn't like open source. Legacy app used sharpziplib without getting permission. They'll pay for support, so we don't have to rewrite (your tax dollars at work), but I can't find anyone who provides paid support for sharpziplib. Any…
Leah Hurst
  • 400
  • 7
  • 14
0
votes
1 answer

Creating and zipping Excel file on the fly

I am trying to zip an Excel file and show the resulting zipped file to a user in a prompt with options to save, open and cancel. I am using sharpZip .Net Library to zip the Excel file and the user prompt is failing to show when you click the link to…
Glory Raj
  • 17,397
  • 27
  • 100
  • 203
0
votes
1 answer

Why the size of compressed file is bigger than uncompressed in SharpZipLib?

I've a super weird problem. I use SharpZipLib library to generate .zip. I found that the size of .zip is a little bit bigger than total of my text files. I don't know what's wrong. I also tried to google but I cannot find any related to my case.…
user1412944
  • 499
  • 2
  • 5
  • 15
0
votes
1 answer

C# SharpZipLib extract .TGZ NotSupportedException

I'm new to programming so please be patient. I am currently developing a small Program in Visual C# 2010 Express, .NET Framework 4.0, which starts a Script on a Linux Machine (what creates the File /tmp/logs.tgz), downloads the File and then I want…
0
votes
1 answer

Compress byte[] (Images) using icsharpziplib

Have only one image that is the byte[] bytes and I am trying to compress to Zip for the user to download as far I can see the byte array is saved in the MemoryStream. The probleam is when I trie to read the buffer of MemoryStream to ImagesAux this…
H.C
  • 565
  • 7
  • 28
0
votes
2 answers

How to extract data from archive with signature 789C?

Google say what is this zip archive, but I cannot its extract by ICSharpCode.SharpZipLib and Zlib.net libraries.
christo
  • 671
  • 1
  • 8
  • 26
0
votes
0 answers

How to extract dot app(.app) mac file from a zip programmatically?

I am working on a Unity project & facing an issue. I have a zip file containing mybuild.app (mac) file. I am using SharpZipLib to uncompress the zip file. Issue is, when lib uncompressing, it actually taking mybuild.app as a folder & create a…
SatbirSingh
  • 198
  • 1
  • 11
0
votes
1 answer

List the files within a .gz archive using C# / SharpLib

Is there a way to list the filenames insize a .gz file without decompressing it. I'm using SharpLib and for Zip it provides GetNextEntry in zipInputStream to get ZipEntry with which we get the filenames and other attributes. But this is not directly…
0
votes
2 answers

SharpZipLib - progress through fileS during extract

this has to be really easy, and it certainly seems to be a very frequently asked question, but I can't for the life of me find a 'straightforward' answer. I want to create a ProgressBar that shows a Zip file being extracted by SharpZipLib. The…
Molmorg
  • 1
  • 1
  • 1
0
votes
1 answer

Encryption type in sharpziplib

I'm using sharplibzip to zip my files with password. I cannot find, what encryption does it use - I need to know that to decide, if I can be sure no one is able to unzip without knowing the password. I can use very long password in my app too. EDIT:…
DizzyBlack
  • 57
  • 1
  • 9
0
votes
1 answer

C# and SharpZipLib encording error

I am using SharpZipLib to compress with C#. but, If any file's name is written in Korean, file name is changed. I think I need to change encording ? What should I do?
Yona Kim
  • 11
  • 4
0
votes
1 answer

Send zipped files to Web API - Error: Cannot close stream until all bytes are written

I need to read a bunch of files from disk, archive them on the fly and send to the Web API zipped from Memory stream. But every time I get error Cannot close stream until all bytes are written. My code works fine if I save zip file to local disk…
0
votes
0 answers

How to unzip a string in JavaScript that has been compressed using SharpZipLib

I am having trouble decompressing a string in JavaScript. There is an XML file that is saved to a database. Before it is saved it is compressed using SharpZipLib in a VB application. I am currently writing a web application that receives the…
Tom
  • 365
  • 3
  • 19