Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1027597 // createZipFileWithSingleBinaryFile

JavaX fragment (include)

static File createZipFileWithSingleBinaryFile(File zipFile, S name, byte[] data) {
  temp ZipOutputStream outZip = newZipOutputStream(zipFile);
  zip_addBinaryFile(outZip, name, data);
  ret zipFile;
}

Author comment

Began life as a copy of #1025471

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027597
Snippet name: createZipFileWithSingleBinaryFile
Eternal ID of this version: #1027597/1
Text MD5: ec05bb9d5fac6873362b63b8283a8ba7
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-25 14:19:20
Source code size: 205 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 95 / 124
Referenced in: [show references]