zip

Unzip Archive with Groovy

Hi, is there a built-in support in Groovy to handle Zip files (the groovy way)? Or do i have to use java.util.zip.ZipFile to process Zip files in Groovy ? ...

Create an encrypted zip archive with PHP

I am searching for a way to encrypt a .txt file into a zip, but in a secure password protected way. My goal is to email this file to me, without anyone being able to read the content of the attachment. Does anybody know an easy, and above all, secure way to accomplish this ? I can create zip archives, but I do not know how to encrypt th...

How to create and fill a ZIP file using ASP.NET?

Need to dynamically package some files into a .zip to create a SCORM package, anyone know how this can be done using code? Is it possible to build the folder structure dynamically inside of the .zip as well? ...

Change the root of a ZipEntry?

Hi, My project has a few xml templates that were modified and added to a zip file. The problem was that the templates were all in a template folder but the expected format of the zip file was to have them straight in the root. project hierarchy: templates/blah.xml expected zip file hierarchy: blah.xml Anyway of achieving that without...

How to unzip files using PHP if safe mode is on and you can't install extensions?

Are there any PHP-scripts out there that can unzip regular zip-files? The requirements we have is that we must run with safe_mode on and we're not allowed to install any extensions to enable this functionality. Thus, any functionality must be regular php scripts. Any thoughts? EDIT: Unfortunately, neither of the posted solution works...

Python 3: formatting zip module arguments correctly (newb)

Please tell me why this code fails. I am new and I don't understand why my formatting of my zip arguments is incorrect. Since I am unsure how to communicate best so I will show the code, the error message, and what I believe is happening. #!c:\python30 # Filename: backup_ver5.py import os import time import zipfile source = r'"C:\D...

IIS website is sending multiple content-type headers for zip files

We have a problem with an IIS5 server. When certain users/browsers click to download .zip files, binary gibberish text sometimes renders in the browser window. The desired behavior is for the file to either download or open with the associated zip application. Initially, we suspected that the wrong content-type header was set on the fi...

directories in a zip file when using java.util.zip.ZipOutputStream

Lets say I have a file t.txt, a directory t and another file t/t2.txt. If I use the linux zip utility "zip -r t.zip t.txt t", I get a zip file with the following entries in them (unzip -l t.zip): Archive: t.zip Length Date Time Name -------- ---- ---- ---- 9 04-11-09 09:11 t.txt 0 04-11-...

C++ compression (zip) library for closed-source app.

Please recommend a C++ compression (zip) library for a commercial, closed-source application. So, not a GPL license. This is for my day job... ...

Binary Difference in Zip/Jar file

It seems like building a jar or zip from the exact same source files will always yield a different file. I tried this both using the java jar command, and the jar and zip tasks in ant. It appears to be due to the fact that new jars/zips have the timestamp set to the current time on each stored file. Is there a way to force a zip tool ...

suggestions for a daemon that accepts zip files for processing

im looking to write a daemon that: reads a message from a queue (sqs, rabbit-mq, whatever ...) containing a path to a zip file updates a record in the database saying something like "this job is processing" reads the aforementioned archive's contents and inserts a row into a database w/ information culled from file meta data for each f...

Estimating zip size/creation time.

I need to create ZIP archives on demand, using either Python zipfile module or unix command line utilities. Resources to be zipped are often > 1GB and not necessarily compression-friendly. How do I efficiently estimate its creation time / size? ...

How to create a password protected zipfile with python ?

Since python2.6, it's now easier to extract data from a password protected zip. But how to create a password protected zipfile in pure python ? ...

Writing out a zip file doesn't work in IE7

I have inherited an old application that stores a zip file in a database and needs to retrieve this file. In Firefox is works fine, I can open the zip and each file inside it is fine. When I run it in IE7 I get the following error. Internet Explorer cannot download ProductContentFormImage.aspx from localhost. Internet Explorer ...

Will zipping a directory in Java affect other processes using the same files?

I'm using the java.util.zip library and ZipOutputStream in order to create a zip file of a directory and all the files and directories under it. In my application, it is likely that another thread could be accessing these same files during the compression. I'm not an expert on file compression (or thread-safety, for that matter) so my ...

Creating a self-extracting zip archive on a linux box

Due to a number of constraints that I won't get into, I have to create a self-extracting ZIP archive on a linux box. The resulting archive should be executable on Windows only. Is this at all possible? If so, what tools would do the job? Background: when the user downloads a setup package from my linux box, I need that setup package to...

Zipping files through shell_exec in PHP: problem with paths.

I'm working on a web backup service part of which allows the user to download a zip file containing the files they have selected from a list of what they have backed up. The zipping process is done via a shell_exec command. For this to work I have given the apache user no-password sudo privileges to the zip command. My problem is, sin...

How do I generate and send a .zip file to a user in C# ASP.NET?

I need to construct and send a zip to a user. I've seen examples doing one or the other, but not both, and am curious if there are any 'best practices' or anything. Sorry for the confusion. I'm going to generating the zip on the fly for the web user, and sending it to them in the HTTP response. Not in an email. Mark ...

SVN to ZIP on the fly

I've installed VisualSVN on my Windows 2003 server, and have configured it to provide anonymous read-access. From my understanding VisualSVN just uses apache and the official SVN Repository server underneath. Now, I'd like to extend the SVN web page to provide "download HEAD as ZIP" functionality. Web portals like SourceForge and Codepl...

Blackberry - How to add third party zip files to project in Eclipse?

Hi, I am trying to add a third party zip file to my project while using Blackberry plugin for eclipse. Whenever I build the project,the zip files disappear. Is there any way to compile the project with third party zip files? Please help. ...