Questions tagged [zip]

ZIP is a format for compressed file archives, allowing packaging of multiple files and directories into a single file.

The specification for the standard is provided by PKWARE, a commercial company that sells compression software. There are multiple independent implementations of ZIP readers and writers, both libraries and finished programs, available on multiple platforms.

Implementations

There are implementations for handling files in ZIP format for many languages:

11022 questions
4
votes
1 answer

php zlib: How to dynamically create an in-memory zip files from string variables?

this is what I need $a=array('folder'=>'anyfolder','filename'=>'anyfilename','filedata'=>'anyfiledata'); I need to create a variable $zip with compressed data from $a and output this $zip into browser window with header('Content-type:…
el Dude
  • 5,003
  • 5
  • 28
  • 40
4
votes
4 answers

unzipping a file with Python and returning all the directories it creates

How can I unzip a .zip file with Python into some directory output_dir and fetch a list of all the directories made by the unzipping as a result? For example, if I have: unzip('myzip.zip', 'outdir') outdir is a directory that might have other…
user248237
4
votes
4 answers

Creating and serving zipped files with php

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…
Eric Conner
  • 10,422
  • 6
  • 51
  • 67
4
votes
3 answers

Java - Zipping existing files

Possible Duplicate: Appending files to a zip file with Java Hello Java Developers, Here's the scenario: Say I have a textfile named sample.txt. What I actually want to do is to put the sample.txt file into a *.zip file named TextFiles.zip. Here's…
Michael 'Maik' Ardan
  • 4,213
  • 9
  • 37
  • 60
4
votes
3 answers

Android expansion file

I am trying to do an application which contain ~80mo of PNG (It's an offline app so I have to store them on the phone). The application works perfectly in local but I can't upload an apk > 50mo. So I am trying to implement an expansion file which…
k0mfushee
  • 43
  • 1
  • 4
4
votes
3 answers

Library for Unzipping password protected file

I need to unzip password protected file. I am asking for library to include to my Windows project, not utility. Requirements: password supported C or C++ not MFC-depended wish it not be DLL(as they are usualy compiled in some incompatible…
Nex
  • 361
  • 3
  • 10
4
votes
3 answers

zipping encrypted files in Java

Having trouble zipping the files. The application I'm making lets you add a password to a group of files, those files are then encrypted with DES (in the process of changing to AES ) then saved to a folder. But how to zip them after they've been…
rogerthat
  • 1,805
  • 4
  • 20
  • 34
4
votes
3 answers

Create a ZIP file without entries touching the disk?

I'm trying to create a program that has the capability of creating a zipped package containing files based on user input. I don't need any of those files to be written to the hard drive before they're zipped, as that would be unnecessary, so how do…
user1008784
4
votes
2 answers

Is it possible to display svgz on Android?

is there a simple way to display SVGZ images within an Android app. I know that there are a few libraries to display SVG images. But they do not support SVGZ as far as I know. In case that there is no library that can display SVGZ images, is it…
Mischa
  • 43
  • 4
4
votes
5 answers

The plugin does not have a valid header - Wordpress cannot add new plugins

I have wordpress version 3.4.2 Whenever I try to activate a plugin after installing it I get The plugin does not have a valid header. I tried removing the blank spaces between
user544079
  • 16,109
  • 42
  • 115
  • 171
4
votes
5 answers

Cannot open zip file in Windows Explorer which generated by PHP Zip Archive

When I trying to open my zip file which is generated by PHP Zip Archive, there is an alert showing "Windows cannot open the folder. The Compressed (zipped) Folder 'filename' is invalid." error opening in Windows Explorer. But I can open the file…
Ywis
  • 180
  • 1
  • 4
  • 13
4
votes
2 answers

Extract compressed text from MediaWiki database with PHP

A client of ours would like to have all the contents from a wiki site they ran for a while. They provided us the complete database of the 'mediawiki' software. We are trying to extract the articles from the 'text' table with php, without using the…
VIDNA
  • 91
  • 7
4
votes
1 answer

.ZIP not recognised if name changed on download

I scripted a download and unzip for .zip files using Python 3.3. This works with no problem if the name of the .zip remains unchanged. If I try and change the name of the .zip on download then the zipfile.is_zipfile() won't recognise the file as a…
Matt Dines
  • 218
  • 2
  • 9
4
votes
1 answer

Failure when using java.util.zip.* to unzip an xlsx blob created with Apache POI

The following code is a test program that creates an xlsx blob using Apache POI and unzips the blob (xlsx is in zip format) to check some values. The code is based on Stack Overflow questions but I have not been able to get unzipping to…
KevinRethwisch
  • 237
  • 2
  • 13
1 2 3
99
100