I\'m trying to take a single file object and split it into chunks by a specified chunk size. In my example, trying to split a single file into 1MB chunks. So I figure out ho
Was slicing off the wrong ends:
console.log(file.slice(offset,chunkSize));
should have been
console.log(file.slice(offset,offset+chunkSize));