Questions tagged as 'arquivo-zip'

1
answer

I am not able to extract a zip file into a folder

The code is giving this error:    A first chance exception of type 'Ionic.Zip.ZipException' occurred in Ionic.Zip.dll   Additional information: Can not read that as a ZipFile       If there is a handler for this exception, the program may b...
asked by 26.04.2015 / 17:21
1
answer

Problem unpacking file

I have a zip that, inside it there are several files to be unzipped. So long, I'm using the following method to decipher the same:? with closing(z), zipfile.ZipFile(io.BytesIO(z.content)) as myzip: myzip.extractall(local_path)...
asked by 16.03.2017 / 21:46
1
answer

PHP's 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 $imagem) { $zip->addFile($...
asked by 17.09.2014 / 21:21
1
answer

With 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 SILVA</td></tr><tr><td>NOME:</td><td>MARCOS...
asked by 27.05.2017 / 19:56
1
answer

Generate more than one PDF in memory and export it in a compressed file

Currently the code below exports and compacts the PDF one at a time and I need to export multiple PDF into a compressed file public ActionResult PDFTodosMesAtual(ProcessamentoRegistros _processamento) { try {...
asked by 31.05.2017 / 12:35
2
answers

Extract only specific extensions from a ZIP

I'm developing a system where in some part of the client the client can send a ZIP file containing only images. I'm trying to do this in a way that I can extract from this ZIP only the files that contain image-specific extension...
asked by 02.02.2015 / 12:39
1
answer

Hide filenames at compaction time [closed]

I'm using the syntax below to zip files. 7z u -t7z destino\arquivo.7z origem\arquivo.*. The u parameter causes the 7z.exe to only compress the modified files. My question is that when I run this command via the command prompt,...
asked by 13.02.2015 / 17:17
1
answer

Routine to download and unzip zip file on the server itself

I need to develop a routine on my site (ASP.NET MVC) that will download a weekly zip file from another server and unzip it on my own hosting service. This routine can be triggered via a button that checks the file's availability and executes...
asked by 30.10.2017 / 21:58
1
answer

How to compress files and directories in php

Hello, I need to compress files and folders together, for example, I have a folder named teste and it has several files and subfolders (with more subfolders inside) , and would like to pack all of this with php. So far I only have th...
asked by 23.03.2017 / 15:36
2
answers

Identify file execution within a ZIP

I created an application that was made available for download within a .zip . Within .zip has .exe and some files needed to perform an installation. So far so good. However, some users do not extract files before installin...
asked by 12.02.2015 / 13:19