Most voted "zip-file" questions
Zip is a file format used for data compression and archiving. For issues related to creating and/or using zip files.
Learn more…73 questions
Sort by count of
-
8
votes1
answer3788
viewsZipping directory with PHP
I have a code that compacts file and directory. The problem is that it compresses the files and directories that are at the root, but the subdirectories they are not compressed, for example I have…
-
7
votes2
answers428
viewsHow to open a Unicode file inside a zip?
I tried to with zipfile.ZipFile("5.csv.zip", "r") as zfile: for name in zfile.namelist(): with zfile.open(name, 'rU') as readFile: line = readFile.readline() print(line) split = line.split('\t') but…
-
6
votes2
answers901
viewsExtract file . ZIP with accent on name
I’m using the lib System.IO.Compression.ZipFile to unzip files .zip and came across a big problem while trying to extract files that have accents in the name. If I try to extract with encoding…
-
6
votes1
answer2702
viewsHow to extract and compress files with System.IO.Compression.Ziparchive in c#?
I’m starting in C#. I saw that there’s class System.IO.Compression.ZipArchive to work with zip files. I have some doubts: How do I unzip an existing zip via Ziparchive? How do I compress to an…
-
4
votes2
answers375
viewsShould I compress files to save to the database?
I don’t want to take into account whether saving files in the database is a good practice. Since many systems save the files (images, pdf’s, doc’s, etc.) in the database, I would like to know if it…
-
3
votes1
answer915
viewsAutomatic remote upload of zipped file in PHP
I have a PHP e-commerce system installed for several clients. However, every time I update the system, I have to manually upload the new files to all clients. I’d like to automate that. One solution…
-
3
votes1
answer505
viewsI am unable to extract a zip file to a folder
The code is giving this error: A first chance Exception of type 'Ionic.zip.Zipexception' occurred in Ionic.zip.dll Additional information: Cannot read that as a Zipfile If there is a Handler for…
-
3
votes2
answers430
viewsHow to ZIP only images from a folder with PHP?
Guys, in my folder being zipped, there are files .php and images, but I need to zip only the images! Is there any possibility with the class ZipArchive of PHP? My job (works perfectly for everything…
-
3
votes1
answer99
viewsProblem when unzipping file
I have a zip that, inside it there are several files to be uncompressed. So far so good, I’m using the following method to twelve the same:? with closing(z), zipfile.ZipFile(io.BytesIO(z.content))…
-
3
votes2
answers1501
viewsPut files inside a. zip file
I have a class where I compress some files: public class CompactarArquivo { //Constante static final int TAMANHO_BUFFER = 4096; // 4kb //método para compactar arquivo public static void…
-
3
votes1
answer235
viewsDotnetzip zipping file without folder directory
I am using dotnetzip to zip a file but the zip file takes the directory root of the file, wanted to zip only the file without the directories: public static void Zipar(FileInfo file) { using…
-
3
votes1
answer2467
viewsHow to compress files and directories in php
Hello, I need to compact files and folders together, for example, I have a folder called teste and it has several files and subfolders (with more subfolders inside), and I would like to compress all…
-
3
votes2
answers168
viewsI need to compress several separate files with powershell
I need to assemble a script to compress log files one by one, I arrived on that line, it calls the 7zip, lists the files, but returns "The system cannot find the file specified." where the folder is…
-
3
votes1
answer294
viewsDownload zip file from a URL
Good evening, I need to download a zip file and save to a server, however, with the code I am using below, it just creates the zip file on the server; when opening it, there is no file in it and is…
-
3
votes1
answer51
viewsCreate 2 zipped files with files from a folder
I’m trying to create a code that reads a directory with pdf files and creates 2 zipped files containing these pdf, in my code, I only managed to play all pdf in a single zipped file, my question is…
-
2
votes1
answer123
viewsHide filenames at compression time
I am using the syntax below to zip files. 7z u -t7z destino\arquivo.7z origem\arquivo.*. The parameter u does with the 7z.exe compact only the modified files. My doubt is that when I run this…
-
2
votes1
answer613
viewsPHP Ziparchive function does not work with more than one file
The code is as follows:: $zip = new ZipArchive(); $criou = $zip->open("download.zip", ZipArchive::CREATE); if ($criou === true){ $diretorio = UPLOAD_DIR . 'produto/small/'; foreach ($imagens as…
-
2
votes2
answers485
viewsExtract only extensions specific to a ZIP
I am developing a system where in some part of it the client can send a file ZIP containing only images. I’m willing to do it in a way that I can extract from this ZIP only files that contain…
-
2
votes2
answers212
viewsIdentify file execution within a ZIP
I created an application that was made available for download within a .zip. Within the .zip has a .exe and some files needed to perform an installation. So far so good. However some users do not…
-
2
votes2
answers2519
viewsHow to compress a folder with everything inside using python zipfile?
I am wanting to compress a file and a folder that has multiple files inside in a single file. zip using Python. The script is next p: from zipfile import ZipFile,ZIP_DEFLATED def zipar(lista): with…
-
2
votes1
answer375
viewsWith export HTML string to PDF Compressed (zip)
I have this string: <HTML><HEAD></HEAD><body><FORM method="post"><table><tr><td>Nome:</td><td>JOÃO DA…
-
2
votes1
answer260
viewsRoutine to download and unzip zip file on the server itself
I need to develop on my website (ASP.NET MVC) a routine that downloads from another server a zip file made available weekly and unzip in my own hosting service. This routine can be triggered by a…
-
2
votes1
answer1305
viewsGenerate more than one PDF in memory and export it in a compressed file
Currently the code below exports and compresses the PDF one at a time and need to export multiple PDF in one compressed file public ActionResult PDFTodosMesAtual(ProcessamentoRegistros…
-
2
votes2
answers147
viewsCompressing files with PHP 5.1.6
I need to Compress files using PHP but my version is 5.1.6, I only tried to create the folder .zip using the code below, however, as stated in the manual this functionality is only available from…
-
1
votes2
answers2473
viewshow to extract zip files in c# to a folder where system is installed
How to Extract Zip Files in c# to a folder where the system is installed? using System; using System.IO.Compression; using System.Windows; using System.Xml; namespace TestXml { /// <summary>…
-
1
votes1
answer209
viewsExtract . zip with status
How to extair . zip files in a way that I can see the status of the items being extracted. Ex: static string GetStatus() { return "Extraindo... " + current_arquivo; } Using Ionic.Zip’s Opensource…
-
1
votes1
answer821
viewsZip more than 1 file
How can I zip more than one file? I’m only getting one. That’s my code: public static void compactarParaZip(String arqSaida, String arqEntrada) throws IOException { int cont; byte[] dados = new…
-
1
votes1
answer190
viewsError while moving File . rar from one folder to another
Guys I have a method that takes the files I want . rar from one folder and saved in another, however when I open the file it is corrupted. try { //Origem File arquivoOrigem = new File(path);…
-
1
votes1
answer834
viewshow to reduce the size of the zip created with php
how can I reduce the size of a file ZIP raised with PHP. I’m getting it zipped, but the size of it remains the same as I can get it down. for example I want to zip a file 2MB and when to zip I want…
-
1
votes1
answer609
viewsZiparchive: Rename files before extracting
Next bunch of you... I have hundreds of files . automatically generated zip. These zip files do not have a "standard" as they are generated from several different systems. Therefore, some have only…
-
1
votes2
answers477
viewsError trying to download python BMF zip
I am trying to download the BMF zip files at once (ftp://ftp.bmf.com.br/MarketData/BMF/), but an error appears in which the program does not find the file, however it exists. follows the code: from…
-
1
votes1
answer78
viewsCompress everything by SSH except a folder in Centos7
I would like to compress everything into zip, or is all content of my public_html however, I need the files folder not to be added for compression.
-
1
votes1
answer60
viewsCompress a file saved in Database
good afternoon! I have a file that is saved in bank, and I need to zip this file, when you download it. How do I do it? Thank you very much for your support
-
1
votes1
answer48
viewsZipping folder except a subdirectory
To zip a folder in the Linux use the command below. zip -r arquivoZipado.zip pastaSerZipada/ How can I zip, except for a subdirectory of pastureSerZipada?…
-
1
votes0
answers84
viewsC libarchive error: Unsupported ZIP Compression
I am trying to read a file. zip using libarchive but am getting the following error on archive_read_data() Unsupported ZIP Compression method (deflation) Same error occurs with all other compression…
-
1
votes1
answer82
viewsHow to create a ZIP file in Shell?
How do I create a ZIP file in Shell with the files of today’s date? The files are all in the same directory.
-
1
votes1
answer99
viewsDownload web file for PHP function
I am using PHP’s Ziparchive class to unzip files from my directory, but my file is updated weekly at the same web address. I tried to do it this way: <?php $zip = new ZipArchive; if…
-
1
votes2
answers1025
viewsHow to download a compressed file from a URL and save to disk?
I made a java program to download a compressed (zip) file from a server from a URL (in this case, I am using localhost to test), but it is giving the following error: Exception in thread "main"…
-
1
votes0
answers130
viewsPHP & Ziparchive() - Failed to load PDF document
Good afternoon, I have a form that in certain input is opened a window or multiple windows to display a PDF(or PDF’s) specific(s). The folder where the path is, there may be only a PDF or a ZIP file…
-
1
votes0
answers25
viewsCSV import (which is inside a zip) automatically received by email to the Spreadsheet
What happens is that every day I receive an email with a report attached. This attachment is zipped(.zip), and inside this zip has a CSV file. I need this zip to be converted to CSV and this CSV to…
-
1
votes1
answer198
viewsProblem with Python zipfile logic
I’m trying to make a python script to zip xls files. I managed to get it inside directory and is adding everything inside a file .zip. However I wanted it to go through all subdirectories and be…
-
1
votes2
answers179
viewsEncoding problem while extracting zip file - edited
A webhook calls my API by sending a POST request. On the request body contains the url of a ZIP file. Using the requests library, I perform a GET at the file url. I need to extract this few files…
-
1
votes1
answer34
viewsError while sending ZIP file via Intent on Android
I am trying to send a ZIP file via Intent on Android with the code below: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_STREAM,…
-
1
votes0
answers71
viewsHow to open encrypted . zip files?
I am trying to open . zip files with password, using existing passwords in other file. txt. The code function that opens the file: package main import ( "bufio" "fmt" "os" "time"…
-
1
votes1
answer45
viewsUnzip. corrupted zip with python
I have the following situation, I need to unzip ". zip" files, the code I am using is this: from zipfile import ZipFile from tkinter import Tk from tkinter import filedialog as dlg from…
-
0
votes1
answer250
viewsExtractexistingfileaction.Overwritesilently is not overwriting the files in a particular folder
I have an update solution for an application that uses the Dotnetzip API (http://dotnetzip.codeplex.com/) for handling ZIP files. One of the methods used is to overwrite files in certain folders as…
-
0
votes1
answer774
viewsDownload zipalign for Mac
Hello! I just signed a test app on Android Studio and would like to upload it to Google Play. I did some research and I saw that zipalign facilitates the process of importing the APK, however, I…
android android-studio download zip-file digital-signatureasked 9 years, 10 months ago Luiz Henrique Ugliano 651 -
0
votes1
answer95
viewsWeb Service Images Java ZIP Android
I need my Android app to download a large shipment of images and store on the Smartphone disk, but I need to decide what would be the best format to download these files, because the images should…
-
0
votes0
answers25
viewsCloudflare is corrupting my files?
Guys, after I’m using cloudflare service (caching and protection) my files . static zip when clients download, it comes corrupted, being that inside the server it is normal.. someone has already…
-
0
votes0
answers26
viewsFunction to unzip xml does not work on Linux
In my application I use a function to zip the xml files to save them in the database. When I unzip it to make the file available for download the xml does not come complete, at the end of the file…