zip

Automatically attaching and emailing a zipped file to PHP with no User input

I have a program I wrote that when it has an error, it saves infomation of the error in a zip file in their TEMP directory, and then opens their browser to my PHP file. I want the PHP file to automatically go to a specific location (their temp zip) that will be passed via HTTP POST arguments and attach the zip folder to an email to myse...

How do I read multiple ZipEntries through a single InputStream

Hi, I have to pass an InputStream as a parameter to a 3rd party library, which will read the complete contents from the InputStream and do its job. My problem is, some of my files are Zip files - with more than one ZipEntry. From what I understand, one can read one zipEntry at a time and then do a zipInputStream.getNextEntry() and the...

automatically zip/unzip files in vb or vb.net

just as the title says i want to zip/unzip files using vb ocde to make a standalone vb application. I saw a couple out there but didnt really know how to work with them. Does anyone know how to do this? ...

read the compressed file out of a multi-volume zip file

I am writing my own ZIP implementation. I'm trying to deal with single ZIP files that are split into multiple volumes using the "span" or "split" mechanism defined in APPNOTE.txt. Unfortunately APPNOTE is kind of vague on how this is actually done. Specifically, I have a file header and the beginning of compressed data in a file.zx01, ...

How to estimate zip file size in java before creating it

Hi All, I am having a requirement wherein i have to create a zip file from a list of available files. The files are of different types like txt,pdf,xml etc.I am using java util classes to do it. The requirement here is to maintain a maximum file size of 5 mb. I should select the files from list based on timestamp, add the files to z...

Zip HTML/PDF, store as Blob

I have a variable which contains the html content, $html and a variable with the pdf content $pdf. I can create zip files by using $zip->addFile($file,$file); where $file is a file on the disk However, I want to create zip files with content from the variables, without having to write them to disk first. How do I do it? I am already s...

What compression format should we use; should we lay DEFLATE (.zip) to rest?

With most Linux distributions dropping gzip and bzip2 in favor of LZMA2 for compressing their packages, and many open source implementations for many platforms, I wonder: Shouldn't we lay DEFLATE and the .zip format (which unfortunately got bastardized over and over) to rest, and move on to other, modern ways of distributing our (source)...

Best way to read zip file in PHP

file_get_contents("zip:///a/b/c.zip") is returning NULL. How can I read unzipped contents of a zip file in PHP 5+ ? ...

Better way to zip files in Python (zip a whole directory with a single command)?

Suppose I have a directory: /home/user/files/. This dir has a bunch of files: /home/user/files/ -- test.py -- config.py I want to zip this directory using ZipFile in python. Do I need to loop through the directory and add these files recursively, or is it possible do pass the directory name and the ZipFile class automatically adds...

Reccomend an indexed file format that can be updated via random access in Java

I need an indexed file format that can hold a few hundred large variable sized binary blobs. Blobs are around 1-5MB and the file could be as large as 1 GB. I need to be able to quickly find, read, add and remove blobs without recreating the the entire file. I have no need to compress the blobs, however if blobs were removed, I'd like ...

zip file encryption

I'm trying to block zip file open... How to block it.... Is there any other methods except modifying zip header info. My rosources are packed with zip file but I don't want to open it to users... Please let me know it ...

How to extract a zip file and save files to folder and file name to database using PHP?

How to extract a zip file and save files to folder and file name to database using PHP? ...

Zip command without including the compressed dir itself.

Suppose the structure: /foo/bar/ --file1 --file2 --file3 --folder1 --file4 --folder2 --file5 I want to run the unix zip utility, compressing the bar folder and all of it's files and subfolders, from foo folder, but not have the bar folder inside the zip, using only command li...

Getting modules from a zip file?

There is a module I'd love to download, but it is only available in a zip file, how do I get such a file to work properly in python, so That I can import what I want? This is in Windows 7 BTW. ...

Any Library/Class To Decode/Encode Gzip, compress, x-gzip or x-compress?

Any Php Class To Decode/Incode Strings with Gzip, compress, x-gzip or x-compress Algorithm . Thanks ...

how to compress a String?

I use GZIPOutputStream or ZIPOutputStream to compress a String( my string.length() is less than 20), but the compress result is longer than original string. on some site, I found some friends said this is because my original string is too short, GZIPOutputStream is only do use to compress long string. so, can somebody give me a help to...

archive created by ZipArchive object are corrupted

I used the function described in the following URL to create some zip files programatically which turned out to be working wonderful on the development site: http://davidwalsh.name/create-zip-php . Thing is, when I uploaded the website to the production server, the file created seemed to be corrupted. winrar has given me "unexpected en...

Using Python, getting the name of files in a zip archive

Hi, I have several very large zip files available to download on a website. I am using Flask microframework (based on Werkzeug) which uses Python. Is there a way to show the contents of a zip file (i.e. file and folder names) - to someone on a webpage - without actually downloading it? As in doing the working out server side. Assume t...

Asp.Net HttpHandler and jQuery Ajax call

These are 2 questions. The first one: I have an HttpHandler returning a zip file to download. I have this line of code: context.Response.AppendHeader("content-disposition", "attachment; filename=myzipfile.zip"); The question is: should I declare the ContentType (application/zip) also ? The second question is: I want to call this Http...

jQuery ajax call to httphandler returning zip file

I have an httphandler that creates a zip file and returns it for download. context.Response.AppendHeader("content-disposition", "attachment; filename=myfile.zip"); Is it possible to call the handler from a jquery ajax call? If yes, what kind of dataType should I declare? Thanks ...