Created
December 13, 2016 09:18
-
-
Save 4poc/6c498949055e77c0f8bbdebef25be76b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import zlib | |
compressed = base64.b64encode(zlib.compress(decompressed)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inflate = require('zlib').inflate; | |
const compressed = Buffer.from(data, 'base64'); | |
inflate(compressed, function (err, decompressed) { | |
... | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment