GithubHelp home page GithubHelp logo

tanaikech / unzipgs Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 3.0 5 KB

This is a GAS library for unzipping a Zip file protected by a password using Google Apps Script.

License: MIT License

JavaScript 100.00%
google-apps-script gas-library library unzip

unzipgs's Issues

Error

Hi, for some reason I get an error while trying to use UnzipGs. The fileId is correct and I'm not using v8 with this...
Any idea please?
Thanks!
Cédric

Error
InternalError: Cannot convert Array to (class)[].,Exception: Could not unzip.
(anonymous) @ Code.gs:63
unzip @ Code.gs:18
sample @ Code.gs:6

Error: unknown compression type,Exception: Invalid argument

Hello,

I'm trying to develop a code which gets encrypted ZIP contents in XML file and then decodes it with your script - but it seems like it doesn't support all encoding types. I can see that my data is compressed with AES-256 Deflate, is that anything unusual?
Also, which content type should I apply while creating a blob for unzipping purposes? Right now I have 'application/octet-string', is that okay?

Unzip GmailAttachment not working

Hi, can't get this working.

I'd like to unzip password protected GmailAttachments, but I'm always getting an error:
Error: Please set a file blob of zip file.
The attachment.toString() returns GmailAttachment and not Blob as expected on L44: if (blob_.toString() !== "Blob") {

So I tried workaround to save the attachment to the DriveApp temp folder and tried to use it as in README

  var file = saveToTmp(data);
  var tmpFile = DriveApp.getFileById(file.getId());
  var res = UnzipGs.unzip(tmpFile.getBlob(), { password: "my pwd"});

But I got this error: TypeError: e.subarray is not a function at $(Code:40:67) at t.Y(Code:40:309)

Can you point me what I am doing wrong? Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.