Questions tagged [zip]
ZIP is a format for compressed file archives, allowing packaging of multiple files and directories into a single file.
11,045
questions
0
votes
0
answers
19
views
AWS Lambda + Kotlin + ZIP file: Java.lang.NoSuchMethodError
GitHub Link
https://github.com/MarcoFaccani/aws-lambda-kotlin-zip-issue
Context
I have an AWS Lambda written in Kotlin and Maven using the AWS Java SDK V2 and Powertools by AWS for serialization. The ...
-1
votes
0
answers
17
views
How can I convert a zip file to MHTML
How can I convert a zip file to mhtml, preferably in the web or in python. I should be able to do this as Wikipedia states
MHTML, an initialism of "MIME encapsulation of aggregate HTML documents&...
0
votes
1
answer
27
views
How to zip/unzip in Zig?
How to zip/unzip a file from Zig? Do I need to do it using C library or there is a native way?
For now I searched a bit but didn’t find any actual info. Only issue about implementing Deflate algorithm....
2
votes
1
answer
47
views
How do you determine whether a zip entry is a folder or a file? [duplicate]
🖥️ Code source
$zip = new ZipArchive;
$zip_path = './test.zip';
if($zip->open($zip_path))
{
for($i = 0; $i < $zip->numFiles; $i++)
{
$file_path = $zip->getNameIndex($i);
if(&...
0
votes
0
answers
25
views
Stackoverflow error in android java while passing to json after encoding to base64 string from byte array
byte [] byteArray = Files.toByteArray(zipFile);
String strLogEncode = Base64.encodeToString(byteArray, Base64.URL_SAFE);
jObjLogdata.put("LogFilePath", "");
jObjLogdata.put(&...
0
votes
0
answers
26
views
Apsose.zip Entries doesn't contain folders when zip created by builtin win 11 zipper
I am working on an online filemanager project. I recently added function where you can go inside a zip file and see the files and folders there. I used Aspose.zip library. In the controller i create ...
0
votes
1
answer
19
views
Python module patoolib exe file error No module named 'patoolib.programs'
I'm using patoolib in one of my projects for extracting archives. I used Pyinstaller to get a single executable and went i am run exe file display me No module named 'patoolib.programs'.
'
My python ...
0
votes
1
answer
29
views
Save ZipArchive to Stream
I am working on a project where i update a ZipArchive and upload it back to server but I can only upload it using a stream.
public IActionResult DeleteZippedFile(string path)
{
//read the zip from ...
0
votes
0
answers
35
views
Corrupt Zip file using ZipOutputStream to create DOCX file
I use ZipOutputStream to compress the content of a folder into a Zip file. Below is my working code. But it creates corrupt DOCX files. Trying to extract them on macOS fails.
private const val ...
0
votes
1
answer
43
views
Zip CSV files in a subfolder
I have multiple .csv files in a folder called data. I would like to loop through all these files, and zip all csv files having the same date in a .zip file:
C:\users\data\20230914_Morning.csv
C:\...
0
votes
0
answers
28
views
python pyz7r getting "Unsupported feature" when unzipping after zipping
I am trying to use pyz7r Python module to zip some folders I have, what I want is to make sure the folders is zipped into the archive as the following:
Here are my folders.
SomeFolder.
- File1.txt
...
0
votes
0
answers
23
views
How to extract zip file in node.js ( Compression method : Deflate64 )
I need to extract zip files in node.js.
currently i am using decompress packages for extract, but its not working if compression method : Deflate64, its working only compression method : Deflate.
any ...
0
votes
1
answer
21
views
How to use the sqlite zipfile extension with subselect?
I have stored some zip files as blobs in an SQLite database and want to apply the zipfile function to get the names of the files stored in the zip files. The table is created in the following way:
...
0
votes
0
answers
13
views
zlib.js Error code: "Z_DATA_ERROR" errno: -3
When i try to extract one file using node.js with package node-stream-zip its getting error like
code: "Z_DATA_ERROR"
errno: -3
message: "too many length or distance symbols"
stack:...
0
votes
1
answer
27
views
create zip file with variable in zsh (macOS)
How can I create a zip file in zsh where I can include the appropriate files / folders by variable:
#!/bin/zsh
files="/var/log/install.log /var/log/jamf.log"
zip -r /private/tmp/archivtest....
0
votes
0
answers
27
views
Is there a zip package for javascript to unzip large files more than 2gb? [closed]
I've used few packages like
decompress-zip
node-stream-zip
adm-zip
jszip
zipjs
if i unzip large files eg: above 2GB it convert that compression method to Deflate64 (compression type: 9 ) and get one ...
0
votes
0
answers
17
views
Can nodejs zip a file in stream?
I want to export data from Mongo uses NodeJS
My step:
1: get data from mongo
2: convert to csv format
3: convert to *.zip file
4: response as download a zip file
I tried with below code, but the file ...
0
votes
1
answer
82
views
Why can I not deploy django project with elastic beanstalk?
I have created a zip file with all my programs and it runs well locally. For some reason elastic beanstalk gives several errors when I deploy my zip file. Such as:
"Warning: Configuration files ...
0
votes
0
answers
17
views
SDXL Fine Tuning, Zip file not recognized
I've been trying to get a Google Colab built for fine tuning SDXL to work, but it has proven to be a headache every step of the way. https://colab.research.google.com/drive/...
0
votes
1
answer
24
views
How to use Packer with xz images
I'm following this (rather old) article about building a Raspberry Pi image using Packer:
https://linuxhit.com/build-a-raspberry-pi-image-packer-packer-builder-arm/
The process works great except that ...
0
votes
0
answers
24
views
Using NGINX mod_zip inside a Docker container
I'm trying to configure NGINX with this dynamic module inside a Docker container, and in this post I found a way (maybe, but I'm not sure) to implement mod_zip using a reverse_proxy inside the nginx....
0
votes
0
answers
38
views
Zip command on Linux - zip warning: name not matched
I am running a BitBucket pipeline which tries to zip some archives, but gets an error.
Working Example
I have one application for which it works perfectly:
zip powwow.zip appspec.yml target/pow-wow-0....
-3
votes
1
answer
162
views
Move files within a ZIP archive
My Eclipse and Maven development environments are using a different directory structure, such that if I export my results into a JAR / ZIP file, the required directories are included, but at the wrong ...
0
votes
1
answer
74
views
Approaching a Capture the Flag Question involving a text file and a sha256 hash?
I have to complete a capture the flag challenge. I am given a text file named notazipfile.txt containing mostly random characters, as seen at the bottom of the post. I am also given a sha256 hash as ...
0
votes
0
answers
29
views
How can I read an excel file inside of a zip using PhpSpreadsheet?
if ($_SERVER["REQUEST_METHOD"] === "POST") {
if (isset($_FILES["file"]["tmp_name"]) && !empty($_FILES["file"]["tmp_name"])) {
...
-3
votes
0
answers
45
views
Setting ID3 tags before Zipping a remote file (PHP)
I am Zipping a remote mp3 file using the code (PHP):
$file = "https://example.com/some_file.mp3";
$zip->addFromString("audio.mp3", file_get_contents($file));
The problem is, I ...
0
votes
1
answer
41
views
ZIP archive with a directory with cyrillic characters displays bad encoding
I archive the directory recursively using this command
zip -r /directory/*
I open the archive using the archive manager and see that the name of the directory is like this
logs_2023-09-05T13-07-15Z_\...
0
votes
0
answers
21
views
Zip folders with Python is adding an extra folder
I can zip up a file with Python using:
with zipfile.ZipFile("jam.zip", "w") as zippy:
zippy.write('custard.txt')
to zip up a folder I can use:
myfolder = "D:\\temp\\...
-1
votes
1
answer
46
views
How to create password protect zip file in nodejs using node-7z-archive package
Please anyone guide me, how We can create password protected zip file and extract.
using node-7z-archive https://www.npmjs.com/package/node-7z-archive
actually I want to create password protect zip ...
0
votes
1
answer
45
views
Download base64 encoded zip file I receive from server
I'm receiving a base64 encoded zip file from the server,and I have to save it.
When I first receive the string it looks like this:
After that, if I atob(content), it looks like this:
Minimal ...
0
votes
1
answer
48
views
How to generate password protected (as optional) zip file in Ruby?
Basic archive creation works like this (using rubyzip)
Zip::File.open(zipfile_name, create: true) do |zipfile|
input_filenames.each do |filename|
zipfile.add(filename, File.join(folder, filename)...
0
votes
1
answer
60
views
Attempt to speedup python unzip using isal_zlib fails
I have a long running series of scripts to unpack and analyse a very large dataset. Using pyinstruments I have found out that the ZipFile library is taking up a large amount of time. The files I'm ...
0
votes
1
answer
42
views
AWS Lambda Layer how to compress folder instead of contents of folder in terraform
I have this terraform code for my lambda and lambda layer:
#lambda
resource "aws_lambda_function" "sql_automation_lambda" {
function_name = "${var.project_name}${var....
0
votes
0
answers
64
views
what causes this error in Android Studio?
I keep getting this error on app build:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res....
0
votes
1
answer
26
views
Lack of access to create files in Dart
In my application, I receive a folder as input with the file_picker package
And I turn it into a zip. But when I try to convert the folder to zip, I get this exption: '
FileSystemException (...
0
votes
0
answers
32
views
How to fix Data encoding and CSV read problem?
I have api. When i send get request with curl i get somefile.csv.zip. What means i get zip file what contain csv file. I need to unpack zip file and send to another api data from csv. I am new at ...
0
votes
1
answer
31
views
Python, how to create a zip of a directory while excluding hidden files?
I have a situation where I want to create a zip of a directory while excluding all hidden files when doing this.
Specifics of my use case: I have a directory that contains a small static site build, ...
-2
votes
0
answers
43
views
How to automatically create folders based on file name and zip the folder using vba
Hi I am new to VBA I have 20 Excel file in a folder
Excel file named as
Chennai
Hyderabad
Kolkata
Delhi
Pune
Kerala
Madurai
Kanchipuram
Theni
Karnataka
Assam
Andhra Pradesh
Telangana
Jammu and ...
1
vote
1
answer
36
views
Heuristics to improve brute forcing the location of a DEFLATE block
I work in the data recovery industry. Sometimes a document (.docx) has the beginning overwritten but most of the file might still be intact. A 'docx' is really just a zip file, and the primary ...
1
vote
1
answer
67
views
How to gradle build reproducible zip with configurations.runtimeClasspath?
I have a gradle task to build a reproducible zip, hash it, then I check the hash is the same.
task buildZip(type: Zip) {
includeEmptyDirs = false
preserveFileTimestamps = false
...
0
votes
1
answer
32
views
How can I access a file or directory on Chrome OS?
I am new to machine learning, and have taken a few courses regarding the use of TensorFlow. However, these courses used pre-loaded datasets, and, while looking to create an image classifier on my own, ...
0
votes
0
answers
53
views
CDK hash for asset zip keeps changing when code doesn't change
I have a Bitbucket Pipeline that runs gradle build > cdk deploy.
I am using gradle to build and zip a directory of Java code, then using this zip to deploy a lambda function with cdk Java.
Function....
-1
votes
0
answers
30
views
JAVA When zipping file and unzipping zipped file by java, its ok. When unzipping zipped file by hand its: MalformedInputException:Input length = 3
I cant figure out problem. When I create a directory with files and other directories inside and named them like "+ěščšěžě. After I start a program to ZIP entire directory with files(its ok), ...
-1
votes
0
answers
19
views
How to unzip multiple *.zip archives stored in separate folders into source folders (Windows)
On a Windows 11 machine lets say I have the following folder structure.
```
`\foo\cat\cat.r00
\foo\cat\cat.r01
\foo\dog\dog.r00
\foo\dog\dog.r01
\foo\ape\ape.r00
\foo\ape\ape.r01`
```
...
1
vote
1
answer
39
views
7zip move file in subfolder and change file name
I create a zip file in server and download.
It work by winrar unzip
file
|__test1
|__ test04.txt
But when I unzip by 7zip with file download from window server (it work with file download from ...
0
votes
2
answers
21
views
How to add a dependency that's packaged in a zip
I couldn't find how in gradle you were supposed to depend on a jar that is packaged in a zip dependency.
My use case is retrieving the platform-api.jar artifact from intellij's distribution repository....
0
votes
0
answers
31
views
Python shutil model error - AttributeError: 'module' object has no attribute 'make_archive'
Im trying to backup some large directory's and as the title says I get the error AttributeError: 'module' object has no attribute 'make_archive'.
I have researched this and have found questions like ...
0
votes
0
answers
45
views
How to retrieve csv file from a zip response from an API in Nextjs (Typescript)
An external API server A sends a ZIP file, which needs to be unzipped in memory, once unzipped, there exists only 1 csv file. This csv file is then needed to be send to an another API Server. I have ...
0
votes
1
answer
26
views
How to extract a subdir with all it's subsequent files using zipfile
Yes, I have read the other posts on this subject, but I am running into a weird problem:
When I extract a certain item from the namelist, it only gives me an empty folder, not the actual files inside.
...
0
votes
0
answers
27
views
In R, how can I read a csv file directly from a password protected zip archive
I have a password protected zip archive that includes a csv file. I need to read the contents of the csv file directly into R. I'm not allowed to save the csv file outside of R at any time. Is it ...