zip

Starting process from Web Application

Hi, I am actually trying to start a process for winzip and zip a folder. This i am doing using the below code in vb. Dim startInfo As New System.Diagnostics.ProcessStartInfo Dim pStart As New System.Diagnostics.Process Dim tempFileName As String Try startInfo = New System.Diagnostics.ProcessStartInfo( _ "c:\Program Files\WinZip...

Why I get an Exception on opening an empty ZIP-file with java.util.zip.ZipFile?

I want to open a ZIP-file, that have no entries with java.util.zip.ZipFile. But on the constructor I get the following exception: 'java.util.zip.ZipException: error in opening zip file'. How can I open the empty ZIP? That ZIP-file is created by the commandline zip-program under linux. I simply deleted all entries from a ZIP-file. I nee...

BULK IMPORT a zip file in T-SQL

I've got some data files that are stored compressed on our company's server with a .Z extension (UNIX compress utility used to zip them down). Can SQL Server's BULK IMPORT operation read these files in that format? Or must I uncompress them before getting at the data? ...

Open-source zip library for .NET?

Does anyone know of a good open-source zipping library for .NET? ...

What is the best/easiest way to create ZIP archive in .NET?

Which method do you think is the "best". Use the System.IO.Packaging namespace? Use interop with the Shell? Third party library for .NET? Interop with open source unmanaged DLL? [I can target Framework 3.5; best = easiest to design, implement, and maintain.] I am mostly interested in why you think the chosen approach is best. ...

iPhone Unzip code

Hi There, Really stuck on trying to write code to unzip a file or directory on the iPhone. Below is some sample code that Im using to try and unzip a simple text file. It unzips the file but its corrupt. Would be really grateful is someone has an example or any pointers. Thanking you Tony (void)loadView { NSString *DOCUMENTS_FOLD...

C# Reading 'Zip' files with FileStream

I have written a program that will etablish a network connection with a remote computer using TCPClient I am using it to transfer files in 100k chunks to a remote .net application and it inturn then writes them to the HardDrive. All file transfers work good except when it comes to ZIP files - it is curious to note that the reasembled fil...

dealing with zip files in php

Is there a library for crating/extracting zip files in php? The ZipArchive class works erratically, and this is mentioned on php.net : (for every function I checked) ZipArchive::addEmptyDir (No version information available, might be only in CVS) ...

Adding folders to a zip file using python

I want to create a zip file. Add a folder to the zip file and then add a bunch of files to that folder. So I want to end up with a zip file with a single folder with files in. I dont know if its bad practice to have folders in zip files or something but google gives me nothing on the subject. I started out with this: def addFolderTo...

Can an ASP web service return a ZIP file?

I'd like this to be possible! Can you write a web service (using C# and an asmx) that returns a ZIP file? If so, can you give a simple example? Thanks ...

java.util.zip.ZipException: too many entries in ZIP file

Hello, I am trying to write a Java class to extract a large zip file containing ~74000 XML files. I get the following exception when attempting to unzip it utilizing the java zip library: java.util.zip.ZipException: too many entries in ZIP file Unfortunately due to requirements of the project I can not get the zip broken down before...

Comand Line Zipping with Windows

I'm trying to Zip a file through the command line for an SSIS package. I know 7-Zip is a great open source tool to use, but the server I will be deploying too does not have 7-Zip. The only tools I have are the Windows Compress.exe and Compact.exe. However when trying this it seems to create invalid/corrupt zip files. This is what I hav...

ZipFile complains, is there a way around using the zipfile module?

Hi, I am trying to decompress some MMS messages sent to me zipped. The problem is that sometimes it works, and others not. And when it doesnt work, the python zipfile module complains and says that it is a bad zip file. But the zipfile decompresses fine using the unix unzip command. This is what ive got zippedfile = open('%stemp/tempf...

Extracting files from a Zip archive programmatically using C# and System.IO.Packaging

I have a bunch of ZIP files that are in desperate need of some hierarchical reorganization and extraction. What I can do, currently, is create the directory structure and move the zip files to the proper location. The mystic cheese that I am missing is the part that extracts the files from the ZIP archive. I have seen the MSDN article...

Delete file from zipfile with the ZipFile Module

Hello pythonians, The only way i came up for deleting a file from a zipfile was to create a temporary zipfile without the file to be deleted and then rename it to the original filename. In python 2.4 the ZipInfo class had an attribute file_offset, so it was possible to create a second zip file and copy the data to other file without de...

Add last n lines of files to tar/zip

I need to regularly send a collection of log files that can grow quite large, so I would like to only send the last n lines of the each of the files. for example: /usr/local/data_store1/file.txt (500 lines) /usr/local/data_store2/file.txt (800 lines) Given a file with a list of needed files named files.txt, I would like to create an...

What is the EOF marker for a ZIP file?

I've got a C# program that uses SharpZIPlib to decompress some zip files? It works fine but on one file, I keep getting "Unexpected EOF" error? Is there actually an EOF marker, or did the Zip file just get truncated? ...

How can I get output of NANT zip task to be unzipped on XP?

I wrote the following Nant script on my Vista dev machine and was pleased as punch with the output of the Nant zip task, as I can unzip it with any problems: <zip zipfile="${dir.build}CeoConfigUtilities.${build-version}.zip"> <fileset basedir="${dir.configutilities}" prefix="CeoConfigUtilities"> <include name="**" /> </files...

How do you compare the content of two archive files programmatically?

Hi there, I'm doing some testing to ensure that the all in one zip file that i created using a script file will produce the same output as the content of a few zip files that i must manually click and create via web interface. Therefore the zip will have different folder structure. Of course i can manually extracted them out and using ...

Extracting files from a Jar more efficently.

I'm extending a utility class that bundles a set of images and .xml description files. Currently I keep all the files in a directory and load them from there. The directory looks like this: 8.png 8.xml 9.png 9.xml 10.png 10.xml ... ... 50.png 50.xml ... Here's my current constructor. It is lightning fast and does what I need it to...