How do I unzip a gzipped body in a request's module response?  I have tried several examples around the web but none of them appear to work.  request(url, function(err, response, body) {     if(err) {         handleError(err)     } else {...
I want to download a zip file from the internet and unzip it in memory without saving to a temporary file. How can I do this?  Here is what I tried:  var url = 'http://bdn-ak.bloomberg.com/precanned/Comdty_Calendar_Spread_Option_20120428.txt.zip&...
I'm fairly new to JavaScript. I'm currently working on an algorithm that deflates in Java and inflates in javascript. For the most part, I have heard that pako.js is a good tool to use for decompression but I'm having problems implementin...
We have a large file around 6 GB that is decompressed to 64 GB size (OS image) that we need to download using http. We are using either node's request library or axios. File is downloaded and unpacked (piped) on the fly using following code:   co...
I have a Java backend that uses Inflater. I wish to feed data to it via Node.js.  Is there any equivalent to the Deflater class?  EDIT: I should clarify a little. I have tried using https://github.com/dankogai/js-deflate and then base64 encoding the...
Sorry for the vague question.. but I'm not sure quite what the problem is.  I have a node http server that I'm using to serve JSON data to a web app. It works great, but my JSON strings are starting to get large(10-12 MB), so I want to add co...
I'm wondering about compressing relatively small strings, between 1 and 10kb, for storage on my server. The server and receiving client application will not be using my chosen compression during actual requests. The compression will only be used...
I'm getting gzipped data from a business api i'm working with, but I can't manage to decompress it into something readable in JS, though I managed with C#.  My question is - how do I unzip the received gzipped input to a string or json?...
function loadFileAsBinary() {     var fileToLoad = document.getElementById("fileToLoad").files[0];      var fileReader = new FileReader();      fileReader.onload = function(fileLoadedEvent)      {         var textFromFileLoaded = fileLoadedEv...
I'm downloading a daily export gzip file from The Movie Database and decompressing it with zlib. When the end event is hit, I log the length of the string of data I decompressed. The length is different every time.   It appears that the data isn&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.