unzip

How to publish html report inside VSTS

可紊 提交于 2019-12-08 05:22:39
问题 I have a simple batch (let's call it run_job.bat ) job that I set up in VSTS as release definition . VSTS reads this file from the remote git repository that is also set up in VSTS. The agent is configured on a remote machine to access certain folder, say C:\AllScans\FolderWhereScanIsRunning\ bring the necessary batch file in there and start the run. The job runs some scan against web application and generates report file with some unknown for me extension. Another job then runs as queue in

zip64 support in php?

青春壹個敷衍的年華 提交于 2019-12-08 04:54:37
问题 I have a file downloaded by a cron that is in zip64 format. How can I unzip it using php or via a php cmd()? 回答1: surprisingly unix's unzip just worked! exec(unzip -n -q zip-downloaded-by-cron.zip -d photos); 回答2: A couple options that I know of. If your PHP runs on Windows you can use the COM interface to DotNetZip. $zipInput = "c:\\temp\\zip-downloaded-by-cron.zip"; $zip = new COM("Ionic.Zip.ZipFile"); $zip->Initialize($zipInput); $dirForExtract= "c:\\temp\\extract"; # optional password

Can not open zip file after downloading through nodejs application because of Invalid CEN error

牧云@^-^@ 提交于 2019-12-08 04:34:23
问题 I need to download and unzip zip archive in my nodejs application. I have this code: utils.apiRequest(teamcityOptions) .then(function (loadedData) { var tempDir = tmp.dirSync(); var tmpZipFileName = tempDir.name + "\\" + 'bob.zip'; fs.appendFileSync(tmpZipFileName, loadedData); var zip; try { zip = new AdmZip(tmpZipFileName); } catch (e) { log('Can not create zip, bad data', e); } }); This code gives me error: Can not create zip, bad data Invalid CEN header (bad signature) I am using Windows

How can unzip file in kettle where zip content cyrillic

╄→尐↘猪︶ㄣ 提交于 2019-12-08 04:21:52
问题 I try to unzip file.zip with files (a, b, c) in pentaho kettle (file management -> unzip file). it working fine. But if i try to unzip file.zip with files (a, b, ж), for example, i have errors: 2016/01/18 17:46:17 - cfgbuilder - Warning: The configuration parameter [org] is not supported by the default configuration builder for scheme: sftp 2016/01/18 17:46:17 - Unzip file - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Could not unzip file [file:///D:/projects

Unpacking zip files in Java that cause a “java.util.zip.ZipException” - invalid LOC header (bad signature)

孤人 提交于 2019-12-08 03:17:11
问题 I have a zip file (that is downloaded from an ownCloud instance) and can not be unpacked using the Java libraries (java version "1.8.0_66") from java.util.zip. If I try to do so, the following exception is thrown: java.util.zip.ZipException: invalid LOC header (bad signature) When issuing a Linux 'file' command, it outputs the following: so-example.zip: Zip archive data, at least v3.0 to extract After some trial and error I found out, that files, that are supposed to be unzippable by "v2.0",

zipArchive unzip to document folder on iOS

孤街醉人 提交于 2019-12-08 01:40:55
问题 I'm using ZipArchive to unzip but its unzipping the contents of the zip to a subdirectory of my documents named after the zip file instead of directly into my documents folder. Does anyone know what I can change to make sure its saves to the directory that I want? -(void) unZipUpdateArchiveAtPath: (NSString *)zipPath { NSLog(@"UNZIP Update PATH: %@", zipPath); ZipArchive *zipArchive = [[ZipArchive alloc] init]; if ([zipArchive UnzipOpenFile:zipPath]) { if ([zipArchive UnzipFileTo:[self

Unpacking zip files in Java that cause a “java.util.zip.ZipException” - invalid LOC header (bad signature)

余生长醉 提交于 2019-12-08 00:21:26
I have a zip file (that is downloaded from an ownCloud instance) and can not be unpacked using the Java libraries (java version "1.8.0_66") from java.util.zip. If I try to do so, the following exception is thrown: java.util.zip.ZipException: invalid LOC header (bad signature) When issuing a Linux 'file' command, it outputs the following: so-example.zip: Zip archive data, at least v3.0 to extract After some trial and error I found out, that files, that are supposed to be unzippable by "v2.0", can be processed by Java without any issues. A minimal example for the code used for unpacking is the

unzip a zipfile in the same hierachy using java.util.ZipFile

隐身守侯 提交于 2019-12-07 23:00:00
问题 given a zip file with multiple nested directory structure, how do I unzip it into the same tree structure? does ZipFile.entries() provide the enumeration in any order? 回答1: Zip doesn't offer directory structure per se. The tree alike structure is built by having full path of each entry. ZipFile enumerates the entries in the same way they have been added to the file. Note: java.util.ZipEntry.isDirectory() just tests if the last character of the name is '/', that's how it works. What you need

How can unzip file in kettle where zip content cyrillic

核能气质少年 提交于 2019-12-07 18:42:18
I try to unzip file.zip with files (a, b, c) in pentaho kettle (file management -> unzip file). it working fine. But if i try to unzip file.zip with files (a, b, ж), for example, i have errors: 2016/01/18 17:46:17 - cfgbuilder - Warning: The configuration parameter [org] is not supported by the default configuration builder for scheme: sftp 2016/01/18 17:46:17 - Unzip file - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Could not unzip file [file:///D:/projects/loaders/loader_little_files/src.zip]. Exception : [MALFORMED] 2016/01/18 17:46:17 - Unzip file - ERROR

How to zip 100 mb files during (before) upload so that upload speed can be increased? [duplicate]

泄露秘密 提交于 2019-12-07 15:19:28
This question already has answers here : Closed 9 years ago . Possible Duplicate: HTML Compress File Upload? I have complains from client that my website is taking more time to upload the 100 MB time (I know it bound to take more time because of this size), hence I am planning to upload files such that they get zipped before upload and gets uploaded to desired location and then gets unzipped along with the deletion of that zipped format uploaded file. So can anyone suggest me how to proceed further? I am using PHP, there is no clumsy code for uploading file its just a form with usual file