unzip

Zipping and Unzipping tool for Flash

Are you aware of any zip/unzip component or script for flash / actionscript 2 ? I'm aware of this library for flex / AS3, but is there one for AS2 that will save me a long conversion attempt? Is there such a library that supports creating/parsing password protected zip files? ...

How to overwrite existing files using Rubyzip lib

I'm attempting to unzip a file with several files that may or may not already exist in the target directory. It seems the default behavior is to throw an exception if the file already exists. How do I unzip to a directory and simply overwrite existing files? Here's my code: begin Zip::ZipFile.open(source) do |zipfile| dir = zip...

How to unzip files recursively in Java?

Hi, I have zip file which contains some other zip files. For e.g. the mail file is abc.zip and it contains xyz.zip, class1.java, class2.java. And xyz.zip contains the file class3.java and class4.java. So i need to extract the zip file using java to a folder that should contain class1.java, class2.java, class3.java and class4.java. Than...

SharpZipLib ~ How to extract specific files from a zip

Ok, I have a list of files (SourceFile objects which just contain the filename only) then I want to pull those specific files out of a zip and dump them into a temp directory so I can distribute them later. I came up with this, but I am unsure on how to proceed next.. private List ExtractSelectedFiles() { List zipFilePaths = new...

Unzipping a directory in C++

I am creating a C++ program that will read a .docx's plain text. My plan of attack is to rename the .docx as a .zip and then unzip. I then will rename the .xml file containing the text of the document as a .txt and parse it out. Right now I have figured out the renaming which was easy enough. I am now struggling with unzipping. I am...

how to unzip a encrypted zip file

in winzip we can able to encrypt a file using some keys.In my android application i using the encrypted zip file.i know the way for unzip a file(without encryption).but how can i unzip the encrypted zip file in android? ...

Problem while opening a zip file

I have a problem when opening a zip file. I am using this code to zip the file: public static string Zip_File(string soruce , string target) { try { byte[] bufferWrite; using (FileStream fsSource = new FileStream(soruce, FileMode.Open, FileAccess.Read, FileSh...

Creating and serving zipped files with php

Hi everyone. I'm trying to use the following code to create a zip file from a directory and serve it to the user via an http download: // write the file file_put_contents($path . "/index.html", $output); // zip up the contents chdir($path); exec("zip -r {$course->name} ./"); $filename = "{$course->name}.zip"; header('Content-Type: ...

iPhone SDK - Adding zipped content in resources and then unzipping into Documents folder

Hi, I have some resources (zipped) that needs to be shipped with my iphone application. When the app launches for the first time, this zipped file needs to be moved/copied to the Documents folder and unzip it there. User can then add more files to this path from the application. Can someone please suggest how can I achieve this? Thanks...

Linux: Unzip an archive containing files with the same name.

I was sent a zip file containing 40 files with the same name. I wanted to extract each of these files to a seperate folder OR extract each file with a different name (file1, file2, etc). Is there a way to do this automatically with standard linux tools? A check of man unzip revealed nothing that could help me. zipsplit also does not see...

How can I extract a compressed archive in Perl?

I need to allow users to upload a zip file via a web form. The server is running Linux with an Apache web server. Are there advantages to using a module like Archive::Zip to extract this archive or should I just execute a system call to unzip with backticks? ...

zip64 support in php?

I have a file downloaded by a cron that is in zip64 format. How can I unzip it using php or via a php cmd()? ...

Unzip part of a file using python gzip module

Hi, I am trying to unzip a gzipped file in Python using the gzip module. The pre-condition is that, I get 160 bytesof data at a time, and I need to unzip it before I request for the next 160 bytes. Partial unzipping is OK, before requesting the next 160 bytes. The code I have is import gzip import time import StringIO file = open('inp...

Unzip NSData without temporary file

Hello, I've found a couple of libs (LiteZip and ZipArchive) that allow to unzip files on iPhone. But both of them require an input as a file. Is there a library that allows to directly unzip NSData containing zip-archived data without writing it to temporary file? I've tried to adopt mentioned above libs for that, but with no success s...

download a zip file to a local drive and extract all files to a destination folder using python 2.5

hi, I am trying to download a zip file to a local drive and extract all files to a destination folder. so i have come up with solution but it is only to "download" a file from a directory to another directory but it doesn't work for downloading files. for the extraction, I am able to get it to work in 2.6 but not for 2.5. so any sugges...

What is the best and most universal way to unzip an archive using php 5?

I'm writing software that requires the user to have php 5, but nothing else in the way of extra apache modules, etc. Is there a vanilla php5 method for unzipping an archive? I found this: http://nz2.php.net/manual/en/function.ziparchive-extractto.php But can everyone using php 5 use this? No extra modules necessary? ...

Unzip files created with WinZIP with I18N file names?

People these days create their ZIP archives with WinZIP, which allows for internationalized (i.e. non-latin: cyrillic, greek, chinese, you name it) file names. Sadly, trying to unpack such file causes trouble: UNIX unzip creates garbage-named files and dirs like "®£¤ ©¤¥èì". Java and its jar command fails miserably on such archives. I...

Unziping files to existing directories in Visual Studio 2005 C++?

I have a possibly pre-existing directory structure on the client machine server that looks like this: -| +css |-ABC |-EFG |-XYZ +img |-ABC |-EFG |-XYZ +js |-ABC |-EFG |-XYZ +htm |-ABC |-EFG |-XYZ When we send our customers updates to their e-commerce websites we send them in a zip file, which has the follow...

What is a good way to test a file to see if its a zip file?

I am looking as a new file format specification and the specification says the file can be either xml based or a zip file containing an xml file and other files. The file extension is the same in both cases. What ways could I test the file to decide if it needs decompressing or just reading? ...

Redirect unzip output to particular directory using Perl

I want to uncompress zipped file say, files.zip, to a directory that is different from my working directory. Say, my working directory is /home/user/address and I want to unzip files in /home/user/name. I am trying to do it as follows #!/usr/bin/perl use strict; use warnings; my $files= "/home/user/name/files.zip"; #location of zip f...