zip

how to get xls file from a ZipArchiveEntry EPPlus C#

北城以北 提交于 2021-01-29 06:01:56
问题 i'am trying to get an xls file from an ZipArchive but cant get it with EPPLUS foreach (ZipArchiveEntry entry in archive.Entries) { if (entry != null) { string filepath = entry.FullName; FileInfo fileInfo = new FileInfo(filepath); //here i got the excel package with the xls file inside the excelPackage using (ExcelPackage excelPackage = new ExcelPackage(fileInfo)) { //but here impossible de get the worksheet or workbook inside or anything else ExcelWorksheet worksheet = excelPackage.Workbook

I would like do a zip compression with password in R

两盒软妹~` 提交于 2021-01-29 02:56:01
问题 I want encrypt this file with a default password programming in R. How can I do? zip("C:/Users/user/Downloads/myarchive.zip", files="C:/Users/user/Downloads/example.txt", flags = "-r9X") Thank you!!! 回答1: PASSWORD <- "BillMurray" zip("C:/Users/user/Downloads/myarchive.zip", files="C:/Users/user/Downloads/example.txt", flags = paste("--password", PASSWORD)) 来源: https://stackoverflow.com/questions/40112701/i-would-like-do-a-zip-compression-with-password-in-r

Cannot open generated zip file

旧城冷巷雨未停 提交于 2021-01-29 02:09:15
问题 I've followed several articles to create a zip file using java ZipOutputStream class. The zip is created but I cannot open it. On my Mac I'm receiving this message when I open it with the unzip command : End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of

Cannot open generated zip file

三世轮回 提交于 2021-01-29 02:06:30
问题 I've followed several articles to create a zip file using java ZipOutputStream class. The zip is created but I cannot open it. On my Mac I'm receiving this message when I open it with the unzip command : End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of

I have to take the directory of a file in zip file

只愿长相守 提交于 2021-01-29 02:06:21
问题 Can someone helps me out with my problem. I have to take a file's directory in zip file so i can calculate its MD5 hash (without unzip it). I am using DotNetZip Library but i can't find the solution of the problem. I'll show you what i've tryed and hope you will help as fast as possible. Thanks! if (ofd.ShowDialog() == DialogResult.OK) { using (ZipFile zip = ZipFile.Read(ofd.FileName)) { foreach (ZipEntry f in zip) { GetMD5HashFromFile(ofd.FileName+"\\"+f.FileName); } } } 回答1: The problem is

I have to take the directory of a file in zip file

僤鯓⒐⒋嵵緔 提交于 2021-01-29 02:05:37
问题 Can someone helps me out with my problem. I have to take a file's directory in zip file so i can calculate its MD5 hash (without unzip it). I am using DotNetZip Library but i can't find the solution of the problem. I'll show you what i've tryed and hope you will help as fast as possible. Thanks! if (ofd.ShowDialog() == DialogResult.OK) { using (ZipFile zip = ZipFile.Read(ofd.FileName)) { foreach (ZipEntry f in zip) { GetMD5HashFromFile(ofd.FileName+"\\"+f.FileName); } } } 回答1: The problem is

Fast way to download a really big (14 million row) csv from a zip file? Unzip and read_csv and read.csv never stop loading

给你一囗甜甜゛ 提交于 2021-01-28 21:14:19
问题 I am trying to download the dataset at the below link. It is about 14,000,000 rows long. I ran this code chunk, and I am stuck at unzip(). The code has been running for a really long time and my computer is hot. I tried a few different ways that don't use unzip, and then I get stuck at the read.csv/vroom/read_csv step. Any ideas? This is a public dataset so anyone can try. library(vroom) temp <- tempfile() download.file("https://files.consumerfinance.gov/hmda-historic-loan-data/hmda_2017

Locating EOCD in ZIP files by offset

梦想与她 提交于 2021-01-28 10:09:12
问题 I'm trying to write a collection of yara signatures that will tag zip files based on artifacts of their creation. I understand the EOCD has a magic number of 0x06054b50, and that it is located at the end of the archive structure. It has a variable length comment field, with a max length of 0xFFFF, so the EOCD could be up to 0xFFFF+ ~20 bytes. However, there could be data after the zip structure that could throw off the any offset dependent scanning. Is there any way to locate the record

Streaming client-side zip archivation

做~自己de王妃 提交于 2021-01-28 07:09:30
问题 Is there any JS library that allows to provide input data in chunks rather than expecting 100% file content to be present in memory (string, Buffer, UInt8Array) before starting archivation? I checked several popular libraries like JSZip or archiver and found that they do not offer such functionality. We process large data tables, client side, using Javascript and we have feature to export table to CSV file, compress and upload to server. Currently we generate huge string which is passed to

Shiny : Download zip archive

[亡魂溺海] 提交于 2021-01-28 06:51:53
问题 I am creating a Shiny application and I want to download my results in a zip archive. Before, it was working for me because I was using Rx34 bits. Unfortunately, it is not working since I have used Rx64bits. I found some example which isn’t working for me: library(shiny) ui <- shinyUI(fluidPage( titlePanel("Old Faithful Geyser Data"), sidebarLayout( sidebarPanel( downloadButton("downloadData", "Download") ), mainPanel( DT::dataTableOutput('myTable1') ) ) )) server <- shinyServer(function