Все вопросы: [zip]

208 вопросов

похожие теги: ionic-zip
0
голосов
1ответов
771 просмотров

Ruby - Working with Mechanize::File response without saving to disk

I'm working on my first ORM project and am using Mechanize. Here's the situation: I'm downloading a zip file from my website into a Mechanize::File object. Inside the zip is a file buried three folders deep (folder_1/folder_2/file.txt). I'd like to pull file.txt out of the zip file and return ...

-2
голосов
2ответов
3502 просмотров

application/force-download

I'm creating a script to only upload zip files and I have the following validation allready: if($itemtype != "application/x-zip-compressed" && $itemtype != "application/zip" && $itemtype != "application/octet-stream") { throw new exception("Your file should be a zip file!");...

1
голосов
2ответов
290 просмотров

detecting binary files and character encodings in zipfiles

When reading zipfiles (using Java ZipInputStream or any other library) from an unknown source is there any way of detecting which entries are "character data" (and if so the encoding) or "binary data". And, if binary, any way of determining any more information (MIME types, etc.) EDIT does the B...

4
голосов
3ответов
7526 просмотров

extracting contents of ZipFile entries when read from byte[] (Java)

I have a zip file whose contents are presented as byte[] but the original file object is not accessible. I want to read the contents of each of the entries. I am able to create a ZipInputStream from a ByteArrayInputStream of the bytes and can read the entries and their names. However I cannot see...

4
голосов
3ответов
298 просмотров

PHP: how to open a zip

is there an easy way to open and create a zip with PHP?

0
голосов
2ответов
975 просмотров

Zip File .Net Framework 1.1

How Can We Zip A File In .Net Framework 1.1 Without Use Any Third Party Control...

0
голосов
1ответов
1086 просмотров

How do I dynamically create a zip file using PHP on Linux?

I need my PHP script (running on a Linux server) to dynamically create a downloadable zip. Presently my script is working locally on my Windows server, but not on Linux. If anyone can help me out with sample script, your help would be much appreciated.

3
голосов
4ответов
8826 просмотров

PHP library that can list contents of zip / rar files

Note: I NEED A LIBRARY not links to documentation about extensions my host doesn't have or want installed. The subject says it all. I don't need to extract any files for the moment (although that might be a nice addition to my web app later) I just need to list the contents of rar and zip archi...

3
голосов
1ответов
13605 просмотров

How to create ZIP files with specific encoding

On my Linux server I have some files with accented names (test-éàïù.zip). When I add them to a new ZIP file using 7zip command-line tool, the charset/encoding information is not saved and when opened on a Windows computer, the archive does not correctly display filenames. I know that 7zip creates...

3
голосов
1ответов
1350 просмотров

ZipFile inside a ZipFile

I have a zip file which can contain any number of zipfiles inside it (recursively also). I need to iterate over all of them. Right now, i have a function which takes zipInputStream and zipFile as parameters. The problem is; if i get a zip inside another zip, i am calling this function recursivel...

21
голосов
1ответов
25709 просмотров

Maven creating flat zip assembly

To Maven gurus out there: I'm trying to package non-java project artifacts (.NET) into a single zip file. I'm having 2 problems: If I change packaging in my POM to zip <packaging>zip</packaging>, I get this error message: [INFO] Cannot find lifecycle mapping for packaging: 'zip'. Com...

2
голосов
3ответов
5328 просмотров

What is the byte signature of a password-protected ZIP file?

I've read that ZIP files start with the following bytes: 50 4B 03 04 Reference: http://www.garykessler.net/library/file_sigs.html Question: Is there a certain sequence of bytes that indicate a ZIP file has been password-protected?

1
голосов
1ответов
8848 просмотров

Creating a batch file to back up a specified folder

I am actually pretty new to this batch file thing. I know it's important to know at least the basic commands. How do I do the following? Zipping a specified folder. Move the folder to another place. When zipping it, the ZIP file name will be the current date and if there is another zipped file...

0
голосов
5ответов
422 просмотров

Building a zip compressor/decompressor to refine C skills

I want to refine my C skills and have been thinking of trying to write my own zip and unzip program. This seems hit on a lot of areas, CPU/HDD/Memory. Where do I start? Is there a flow chart of what to do to compress and uncompress? Is it too complicated for this type of project? A good book th...

5
голосов
3ответов
4748 просмотров

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

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 su...

1
голосов
4ответов
181 просмотров

How to make a .net application which is also a zip file?

I know this can be done. Can you show how to create a .net exe which also can be opened as a zip file with any zip file browser?

1
голосов
1ответов
107 просмотров

Self-extracting web environment

Basically I have two applications: a PHP web application that runs over Apache and Mysql a ruby application that has been built with gem dependencies What I would like to be able to create is a self extracting archive; once all the files have been extracted into any directory, my users can ju...

51
голосов
7ответов
14961 просмотров

How can I protect myself from a zip bomb?

I just read about zip bombs, i.e. zip files that contain very large amount of highly compressible data (00000000000000000...). When opened they fill the server's disk. How can I detect a zip file is a zip bomb before unzipping it? UPDATE Can you tell me how is this done in Python or Java?

1
голосов
5ответов
857 просмотров

Where can I learn about text compression in Java?

Where can I learn about text compression in Java? What classes would be used, and how would I use them?

1
голосов
3ответов
2154 просмотров

Why is my .zip file corrupted after an HTTP file upload?

I'm trying to use a CGI script to accept and save a file from a program that is using an HTTP POST to send a zip file. In the MIME section of the HTTP header it looks something like this: Content-Disposition: form-data; name="el_upload_file_0"; filename="BugReport.zip";\r\n Content-Type: applic...

4
голосов
4ответов
7399 просмотров

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 {$course->name} ./"); $filename = "{$course->n...

22
голосов
2ответов
12089 просмотров

How do I uncompress/unzip within Emacs

I would like to run unzip (or even zip) within dired or a dired-like buffer. Is there anything like this? I would like something similar as in the Nautilus file manager: i.e., selecting files and then pressing a keystroke to get these files into a new archive file. Thank you

2
голосов
5ответов
16609 просмотров

How to zip specified folders with Command Line

Could you people tell me how to zip specified files into same Zip file. Let me tell how my folders are filled : A task scheduler have backups of my databases and save them into a file daily. It creates 4 database backup daily which means there will be 4 more files daily. So I need to zip newly ...

0
голосов
3ответов
1528 просмотров

C# - Autozip files in a folder based on Year-Month

IT has been tasked with reducing the file-server usage rate so I'd like to do my part my compressing old files(ie Excel/Access/Txt). We have some folders that contain thousands of files so I don't want to just zip the whole directory into one large file - it would be preferrable to have a number...

1
голосов
3ответов
4868 просмотров

ZIP on the fly immediatelly

I need to generate a ZIP file with data on the fly from a servlet. I pass the ServletOutputSream to the ZipOutputStream constructor, and it does and send the ZIP to the client correctly. When the ZIP result is large, the servlet takes to answer a lot. I suppose that first creates the ZIP and aft...

41
голосов
8ответов
58623 просмотров

java.util.zip - Recreating directory structure

While trying to zip an archive using the java.util.zip I ran into a lot of problems most of which I solved. Now that I finally get some output I struggle with getting the "right" output. I have an extracted ODT file (directory would be more fitting a description) to which I did some modifications...

0
голосов
1ответов
294 просмотров

How can I zip up a folder and then unzip it to somewhere else?

I'm working on a site which downloads folders users upload from our other server, but first we have to zip that folder - how do I zip up a whole folders' contents?

2
голосов
1ответов
2582 просмотров

Zip task of MSBuild Community Tasks changes file attribute

I have found that creating a zip file using the Zip task provided by MSBuild Community Tasks changes (or rather, deletes) any file attributes of the files being zipped. Here is one of my calls to the Attrib task to make DLLs inside a folder have the read-only attribute: <Attrib ReadOnly="true...

10
голосов
2ответов
3248 просмотров

Subversion diff for zipped xml file

I'm using MySQL Workbench to maintain the database schema for an application. The .mwb file that Workbench uses, which is a zipped XML document, is kept in a Subversion repository. The file is treated as binary data by Subversion, so I cannot use svn diff to show the changes, for example before ...

1
голосов
1ответов
1431 просмотров

How to retrieve data from a attached zip file in Blackberry application?

I am using eclipse to build application for Blackberry. I attached a zip file with my application. Please help me, I don't know how to retrieve data form the zip file in application development.