zip

What's with Ruby's ZipInputStream screwing up my line endings?

I'd be happy with ZipInputStream taking indecent liberties with the line endings that are stored in a file if it would at least get them right for the platform I'm storing the file on. Unfortunately, I pull a text file (.txt, .cpp. .etc.) out of a zip and the \n (0x0A) gets replaced with a \r\n (0x0d0a) and, as you can imagine, this is ...

Use php to zip large files

Hi, I have a php form that has a bunch of checkboxes that all contain links to files. Once a user clicks on which checkboxes (files) they want, it then zips up the files and forces a download. I got a simple php zip force download to work, but when one of the files is huge or if someone lets say selects the whole list to zip up and ...

Anyone know of a good example of a PHP system command line zip

This is another question based on an answer that was given to me. What I need is the ability to do a system command line zip of large files based on what the web user selects and then prompt them or force a download. Can this be done? ...

How can I create a Zip archive in Perl?

I need to create a Zip archive after filtering the list of files I want to include. Preferably I'd like the module to work in both Windows and Linux. Since I need to filter the list of files, I don't really want to to use an external program. I'd rather not introduce external dependencies either so I can compile the script into a singl...

Why am I only allowed to access this zip file in Debug mode?

I'm having a problem that doesn't make a lot of sense to me. I have an ASP.NET application that runs perfectly in Debug mode, but throws Access Denied errors when running normally. I've given the ASPNET account and the account the application impersonates Full Control rights on the files the webapp is calling (using the Process object). ...

C# Stream text/data to zip/gpg instead of passing app a filename?

I currently have an app written in C# that can take a file and encrypt it using gpg.exe What I'm trying to do is, instead of 1. Creating a file (from database queries usually) 2. encrypting the file 3. deleting the non-encrypted file I want to Gather info into memory (into a dictionary or a list or whatever) stream the text/d...

Extracting data from a zip file (PHP)

i have a tutorial from a website Net Tuts which is used to upload a zip file and extract the data from within the file into the server. copying and pasting the code straight from the web page did not work, an error occured half way through the script being processed. Fatal error: Cannot instantiate non-existent class: ziparchive in /w...

Is it possible to generate and return a ZIP file with App Engine?

I have a small project that would be perfect for Google App Engine. Implementing it hinges on the ability to generate a ZIP file and return it. Due to the distributed nature of App Engine, from what I can tell, the ZIP file couldn't be created "in-memory" in the traditional sense. It would basically have to be generated and and sent i...

C++ Library for modifying a ZIP file in place

I'm looking for a way to add or remove files to/from an existing ZIP archive, or any other archive format for that matter as long as there are cross platform APIs, without having to rewrite a new zip file with new files added to it, or sans items deleted from it. With ZIP files, the catalog is placed at the end of the file so that, an...

Is there a built-in zip library in .NET 3.5?

Is there a built-in zip library in .NET 3.5? If not, what are the popular open source .net zip libraries. ...

iPhone: auto zip the executable in the build process

Hello, I would like to add a script that zips the executable after my iphone app is done building. I've tried doing this by adding a Post Build script to the target. However, in the build process, the code-signing procedure occurs after the build scripts are run. Therefore, the app bundle that is zipped is useless for itunes submission....

How should I serve ZIPped webpages?

Background: Our software generates reports for customers in the usual suspect formats (HTML, PDF, etc.) and each report can contain charts and other graphics unique to that report. For PDFs everthing is held in one place - the PDF file itself. HTML is trickier as the report is basically the sum of more than 1 file. The files are availabl...

Stop people uploading malicious PHP files via forms

I have an upload form created in php on my website where people are able to upload a zip file. The zip file is then extracted and all file locations are added to a database. The upload form is for people to upload pictures only, obviously, with the files being inside the zip folder i cant check what files are being uploaded untill the fi...

DotNetZip: creating zip with C# permissions issue

I am using DotNetZip and have noticed that i am getting permission issues on Mac's. This seems to only occur when i use content disposition. ie if i just save it to disk using (ZipFile zip = new ZipFile(@"C:\zip\temp.zip")) { // this works fine } but if i use content disposition like so, on mac the user permissions are denied ( e...

Why are executable files not included in 'Extract All' on one machine, but not another?

We're providing a zip file of our application for testing and the same zip file on two separate machines is extracted differently. One will extract all files, the other will extract all but the executables (.exe and .msi specifically). We're going to have to tell our customers something other than 'use WinZip' (or 7zip, or whatever) Wh...

How to unpack a .zip file in Windows Mobile?

I need to programaticaly unpack a zip archive to folder on Windows Mobile. Is there an easy to use API that I can use directly or should I go with some external library? ...

How do you stream a zip file from the click of an image button in asp.net?

My problem: When a user clicks an image button on an aspx page the codebehind creates a zip file and then I attempt to stream that zip file to the user. To stream the file I'm using the following code: FileInfo toDownload = new FileInfo(fullFileName); if (toDownload.Exists) { Response.Clear(); Response.ContentType = "application/...

Ant task for modern multithreaded archivators (7zip, winrar etc.)

We are using Ant Zip task, which is a bit of moral obsolete (low processing speed for big files). Can anyone point me out to mature ant task ready for production using that supports multithreaded for compression/decompression? First of all I wish to increase speed of processing archive files. I found 7ZIP Ant task, but it looks a bit ...

Streaming a zip file over http in .net with SharpZipLib

I'm making a simple download service so a user can download all his images from out site. To do that i just zip everything to the http stream. However it seems everything is stored in memory, and the data isn't sent til zip file is complete and the output closed. I want the service to start sending at once, and not use too much memory. ...

Algorithm to find string matches in a sliding window

One of the core steps in file compression like ZIP is to use the previous decoded text as a reference source. For example, the encoded stream might say "the next 219 output characters are the same as the characters from the decoded stream 5161 bytes ago." This lets you represent 219 characters with just 3 bytes or so. (There's more to Z...