11,081 questions
Score of 4
2 answers
210 views
Store a file in zip without compression
I am trying to create an epub file using the java.util.zip package. After creating the zip file of the epub folder contents, I just rename it to .epub and that's it. So far it has been working fine. ...
Score of 0
1 answer
187 views
Best approach for handling large file uploads and ZIP generation in Laravel?
I’m building a Laravel 12 folder organizer where users may upload large folders (many files / large sizes), and I categorize files by extension and generate a ZIP for download.
Current approach:
...
Score of 3
3 answers
182 views
PowerShell : how to zip directory based on file name
I have this functioning code that looks in a directory, and zips up all .PDF files it finds into a ZIP archive, and then deletes the original .PDF files:
# Get all files in the directory (non-...
Score of 4
2 answers
366 views
Powershell can't delete file it opened
I wrote this code below. and it is throwing the error
Cannot remove item BLAHBLAH: The process cannot access the file 'BLAHBLAH' because it is being used by another process.
As SOON as the overall ...
Score of 0
1 answer
147 views
PowerShell conditional execution
I wrote this (ignore the 'LOCATION!!!' )
$zipInputFolder = LOCATION!!!
$zipOutputFolder = LOCATION!!!
$archivePath = LOCATION!!!
$zipFiles = Get-ChildItem $zipInputFolder -Filter *.zip
foreach ($...
Score of 0
2 answers
174 views
With Excel VBA, creating a ZIP folder with all files in a specific folder
I have a macro that creates an upload file (csv) in a specific folder.
The next step is to create a zip file that includes the csv file and some other attachments referenced in the csv file.
I've ...
Score of 0
1 answer
100 views
Speeding up unzipping of file in Google Cloud Storage (GCS)
I receive ZIP files everyday to a bucket. Part of my Python pipeline is to extract these out into the individual CSVs. However, wondering if there's a quicker way?
There's roughly 20 files in each ZIP,...
Score of 5
1 answer
245 views
`Compress-Archive` with the `-Update` parameter erases the archive when given an empty list
I need to create a ZIP archive from a directory (data) with the following properties:
A specific file (.foo) needs to be the first item in the archive, uncompressed
The remaining files, if any, need ...
Score of 2
1 answer
86 views
Node.js back-pressure documentation - what's the relevance of their example?
The Node.js Backpressure in Streams documentation begins with an example that compares the use of the zip(1) utility with a Node.js script that uses a simple stream to achieve the same result.
A good ...
Score of 1
0 answers
83 views
Generating a virtual image for an Electron application
I’m trying to replace a the content of an image URL with the result of a custom protocol. The idea is to get the data from a zip file.
The img element looks something like this:
<img src="...
Score of 2
1 answer
106 views
Can initial similarity between 2 files create similarity in the start of their Deflate compressed output?
Assuming we have 2 files:
FILE 1
Uncompressed size: 793765 bytes
Compressed size: 604911 bytes
Data type: 99% Base64
Compression method : deflate dynamic
FILE 2
Uncompressed size: 793765 ...
Score of 15
7 answers
1749 views
Exchange a file in a ZIP file quickly
In a Java program, I need to exchange files in a large ZIP file quickly.
So if a.txt is a file inside b.zip I want to replace the a.txt with a new version of a.txt inside b.zip. It should happen in a ...
Score of 0
1 answer
184 views
java.io.IOException: request to write bytes exceeds size in header of bytes for entry make more robust
I'm trying to convert a zip into a TAR. For this I'm using a visitor, but sometimes when I'm doing the conversion I have a:
Caused by: platform.kernel.io.compresser.CompresserException:
at ...
Score of 2
3 answers
249 views
How can I read multiple csv files from within multiple zip files with sometimes different columns using R fread?
I'm trying to read in a lot of data as efficiently as possible; the data are in about 1,400 CSV files within 6 individual ZIP files. The CSV files are all similar timeseries data with the same columns,...
Score of 2
0 answers
81 views
File does not have a stream with WriteToDirectory with .7zip
at my job we use this method for an automated job that is trigger when .7zip files are put inside a specific folder:
public void Executer(ref string pChaineContexte, XdCuContexteTravail pContexte)
...