Questions tagged as 'arquivo-zip'

1
answer

Zip directory with PHP

I have a code that compresses file and directory. The problem is that it compresses the files and directories that are in the root, but the subdirectories they are not compressed, for example I have these directories:    folder /, folder / fi...
asked by 10.07.2014 / 03:53
2
answers

Extract .ZIP file with accent on name

I'm using the System.IO.Compression.ZipFile lib to unzip .zip files and I came across a major problem when trying to extract files that have accents in the name. If I try to extract with UTF-8 encoding : ZipFile.ExtractToDirectory...
asked by 21.07.2015 / 16:39
1
answer

How to extract and compress files with System.IO.Compression.ZipArchive in C #?

I'm starting in C #. I saw that it has the class System.IO.Compression.ZipArchive to work with zip files. I have some doubts: How do I unzip an existing zip through ZipArchive? How do I compress to an existing zip file? That i...
asked by 19.07.2017 / 16:45
2
answers

How to open a unicode file inside a zip?

I've tried 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....
asked by 16.12.2013 / 01:45
2
answers

Should I compress files to save to the database?

   I do not want to take into account whether saving files in the database is good practice. Since many systems save the files (images, pdf's, doc's, etc) in the database, I'd like to know if it's a good practice to compress these files by z...
asked by 26.02.2016 / 21:16
2
answers

How to ZIP only images of a folder with PHP?

In my folder to be zipped, there are .php and images files, but I need to zip only images! Is there a possibility with PHP's class ZipArchive ? My function ( works perfectly for everything in the folder ): /* creates...
asked by 26.05.2015 / 22:54
1
answer

Automatic remote upload of zipped file in PHP

I have a PHP e-commerce system installed for several clients. However, every time I upgrade to the system, I have to manually upload the new files to all the clients. I'd like to automate this. One solution I thought was to upload a ZIP file...
asked by 01.07.2014 / 23:09
1
answer

Compress all by SSH except a folder in Centos7

I would like to compress everything in zip , that is all content of my public_html but I need the files folder not added for compression.     
asked by 29.05.2018 / 07:00
2
answers

Put files inside a .zip file

I have a class where I compile some files: public class CompactarArquivo { //Constante static final int TAMANHO_BUFFER = 4096; // 4kb //método para compactar arquivo public static void compactarParaZip(String arqSaida, String...
asked by 19.10.2015 / 13:33
1
answer

DotnetZip zip file without directory folders

I'm using dotnetzip to zip a file but the zip file takes the root directory of the file, I just wanted to zip the file without the directories: public static void Zipar(FileInfo file) { using (ZipFile zip = new ZipFile())...
asked by 09.11.2017 / 13:15