zip

Convert zip file timestamps to human readable format

How can the file last modification date and time, for files in a zip file, be converted to a human readable format? ...

What version of ZIP is supported by Java (1.6 - or any version for that matter)

There are several versions of the ZIP format (http://en.wikipedia.org/wiki/ZIP_%28file_format%29#Version_history). It's unclear which version Java supports. In the source for ZipOutputStream it defines a constant related to the "minimum version to read" part of the header, but I'm not 100% certain that's the proper way to reverse engin...

Script to download and extract zip files returns errors

Hey everyone, I have written a script that downloads a zip file from a remote source, and then is supposed to extract the zip file to a directory. Below is the script: <?php $url = "http://example.com/some_file.zip"; download($url,'file.zip'); function download($url,$file_name = NULL){ if($file_nam...

delphi zip file within a thread (using TZipMaster)

Hello, I want to zip a file within a thread using the TZipMaster component. The problem is, when I run the program from the IDE I get the error (from windows) "the program doesn't respond anymore. -> Search online for a solution -> Close program" (or somehting like that I don't know the exact message in english.." However, t...

ZIPX Compression Method 2048

Hi, I have a zipx file that is using compression method 2048. I know that the ZIPX format uses one of four compression methods (LZMA, BZIP2, PPMd, WavPack). The compression method number associated with each of these methods is: LZMA (14) BZIP2 (12) PPMd (98) WavPack (97) Does someone understand what compression method 2048 stand...

pclzip dies with a certain file

Hi, I am using pclzip library to compress files at server level. It works fine, except with one batch of files where the routine dies when adding a certain files. No error messages, the PHP just ends with a blank screen. I assumed this was maybe because the file was a 15MB docx, so I raised the PHP memory limit in the INI to 32MB, but...

What c# libraries can I use to create .bundle (zipped) files for use in iPhone SDK

I've just created a "bundle creator" app and I'd like to be able to produce a zipped .bundle file rather than have to copy the whole bundle folder. ICSharpCode.SharpZLib Zip library to scuessfully create a archive file however the iPhone doesnt appear to uncompress it. ...

Using SAXXMLReader with large zipped xml files.

I'm really kind of surprised I couldn't find an answer to this on Google. Especially since xml files lend themselves to being zipped since they are so verbose. I'm implementing the sax reader from the msxml library in my VB6 program to read large multi-gigabyte xml files from a zip file. Unzipping these files to the hard drive and then ...

ant zip; exclude all sub-directories and files

When creating a zip from ant, how can I exclude all sub directories and files from a given directory? I have tried the following but it doesn't seem to prevent them from being included in the zip <target name="zip"> <zip destfile="C:\Projects\example\builds\.zip" excludes="C:\Projects\example\logs\**\*.*"> ... ...

PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

I'm using the pclzip class to autoupdate, and it keeps giving me this error when I try to run an auto update. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature It has never given me problems before. I use the windows 7 'send to compressed zip folder' command. I've rezipped and re-uploaded countless time...

Zipping Collections

How do you zip two sequences in Clojure? IOW, What is the Clojure equivalent of Python zip(a, b)? EDIT: I know how to define such a function. I was just wondering whether standard library provides such a function already. (I would be *very* surprised if it doesn't.) ...

PclZip extract into new folder if folder already exists

i am using PclZip to extract zip file, my problem is how can i extract the zip file into different folder by creating a new folder if the folder is already exits.. Thanks for any help! ...

How do I unzip remotely during the automated deployment to our QA environment?

I'm trying to figure out a way to automate the deployment to our QA environment. The problem is that our release is quite big, so needs to be Zipped, FTP'd and then Unzipped on the QA server. I'm not sure how best to unzip remotely. I can think of a few options, but none of them sound right: Use PsExec to execute a remote commandline ...

Android Download Zip to SD card?

I have a 100 meg zip file that I need to download when the app first starts. It needs to unzip to the SD card (400 meg). I'd rather not have to have it touch the phone's storage as many phones won't have 400 meg free on the phone's storage. Can this be done (any one have an example?) Thanks, ian ...

Using php to create a zip file

Hi Using the Create ZIP File PHP class I have the following line of code $createZip->get_files_from_folder('blog/wp-content/themes/', 'themes/'); Am I right in thinking that this code gets the files and sub directories from 'blog/wp-content/themes/' creates a new folder entitled 'themes', and then puts these files and sub directories...

visualization of compressed (deflated, gzipped) content structures

I have some ideas I would like to experiment with relating to data compression, but am finding it difficult to decipher some parts of how the standard are applied "in real life". I would like to look at some sample compressed files to observe how the the blocks are arranged and the huffman tree(s) are structured. Are there any tools in...

How to save images into a zip file.

I am attempting to read in a stream and save the read images to a zip file as this is going to be running over multiple days and would generate far too many individual files. I now have an issue where I seem to be unable to save images into a zip file. The worker thread I have built for it is below. I am sure that the image is makin...

Given a decompressed gzip file, is there any way to recreate the exact original gzip file?

Given a gzip file Z, if I decompress it to Z', is there any way I can recompress it to get the exact same gzip file Z back? After a cursory reading of the DEFLATE format, I am guessing no, as any given file may have multiple representations in DEFLATE stream format, and there is no way to determine which one was originally used. Can anyb...

How to extract zip file using dotnet framework 4.0 without using third party dlls.

Im in a fix. need to download a zip file from network location and then decompress it on local machine and use the files. The only constraint is i cannot use any third party dll. Please reply fast. its very urgent. ...

php script to write files and create zip file

Hi I'm trying to develop an online formbuilder. Each user can build their own forms and I want to be able to provide a button that when clicked will download the users html form page along with its css file as a zip file. I know how to zip the files, but my problem is that the main users html form page doesnt exist as seperate file, it...