sharpziplib

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 files once the archive is completed. How do I get the name of the .tmp file? ...

SharpZipLib - progress through fileS during extract

Hi, 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 FastZip and FastZipEvents classes give progress on individual files but not on position w...

Better gzip tool than SharpZipLib for Windows Mobile?

I use SharpZipLib for gzip on a Windows Mobile application written in c# I have this code public static bool gzDecompressFile(String inputFilePath, String outputFilePath) { if (!File.Exists(inputFilePath)) return false; if (File.Exists(outputFilePath)) File.Delete(outputF...

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 ideas? ...

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 contain a Web folder with a Design.html file in it. I've tried escaping / by replacing / with ...

ICSharpCode zipfile creation error!

The following code works on my machine but not in server: using (ZipFile zipFile = ZipFile.Create(outPath)) { if (!includeFolders) { zipFile.NameTransform = new ZipNameTransform(Path.GetDirectoryName(fileNames[0])); } foreach (string Fil in fileNames) { zipFile.BeginUpdate(); ...

sharpziplib + extracting single file

Whenever i try to get the file, the length of the input stream (s.Length) is always zero, what am i doing wrong? ZipEntry is valid and has the proper size of the file, etc. Here is the code im using: public static byte[] GetFileFromZip(string zipPath, string fileName) { byte[] ret = null; ZipFile zf = new ZipFile(zipPath); ...

SharpZipLib ZipEntry how can you change the name of a file in the zip?

How do you change the name stored in the zip file? Also, can this be done when adding the file via: ZipFile zf = new ZipFile("path"); zf.BeginUpdate(); zf.Add(filePath); <-- i would like to also be able to change it when adding zf.CommitUpdate(); ...

sharpziplib - can you add a file without it copying the entire zip first?

Im trying to add a file to an existing .zip file using sharpziplib - problem is, the zip file is 1GB in size. When i try to add 1 small file (400k) sharpziplib creates a copy/temp of the orig zip file before adding the new file - this poses a problem when the amount of free disk space is less than 2x the zip file you are trying to updat...

OutOfMemoryException using BZip2 (SharpZipLib)

I use Asp.net , .net 3.5, win2003, iis 6.0. I use Oracle for gathering files, saving file in SharpZipLib.BZip2 compressed format in field RAW in table Oracle. My application is Web, and I use WCF Service for get data (array of bytes) of a file. The aspx page send file to user (download file). My issue-problem: I read DATA from Orac...

What's wrong with my application ---- Size was 0, but I expected 46806 !!

Hi, I'm a C# programmer. Now, I'm using the ICSharpCode.SharpZipLib.dll to create a zip file in my current project. But it occurs to me that when I click the button at the SECOND TIME to execute a function to create a zip file, the application will throw an exception, friendly and seriously told me that "Size was zero, but I expected 4...

Same C# code slower in ASP.Net application versus Winforms App on same machine

We have a function in C# that uses the ICSharpCode SharpZipLib BZip2 decompression method to uncompress some XML we get from a database. We have noticed an issue on two of our webservers (Win 2K and Win 2003 Svr) that this code takes a really long time to execute and causes the CPU utilization to max out on these servers. We have isolate...

Is it possible to decompress SharpZipLib compressed response via PHP?

Environment: Linux / MySQL / PHP Problem: While connected to a webservice, I am getting a response that is compressed with the SharpZipLib .NET library. As of yet, I have not been able to find a way to decompress these responses outside of a .NET environment. Does anyone know a way to decompress this in a linux/php environment? Thanks!...

Decompress SharpZipLib string in php or JS?

I am on a linux server connecting to a webservice via PHP/Soap. The problem is that a method is zipping the response via SharpZipLib. So all I get in return is a garbled string. Does anyone know of a way to unzip this with PHP or JS? Thanks! Update: This is the compressed test data that gets returned: UEsDBC0AAAAIAI5TWz3XB/zi////...