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...
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&...
I have a textarea where the entered value is converted to hexadecimal and concatenated, as shown below:  4f43 5441 1d00 0000 2400 0000 0004 0000 0200 0000 0000 0000 0000 0000 0000 0000 0200 0000 0206 0073 6b79 626f 780e 0073 6b79 626f 7865 732f 7768...
I wrote the code below to open a txt file and perform some transformations on it, then write out the transformations to a new file.  The original source file though is gzip'd and I can't get the zlib module for node to work.  Can someone some...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.