1

I am currently developing the frontend part of my application in angularjs. I have to process files of a huge size. I read the contents of the files and send it to a backend for processing. As the files can be huge, I don't want to load all the contents of the file in one job. I would like to read the file as a stream. When a part of the file is read and processed, I read the next part of the file.

I would like to know how to read a file as a stream in angularjs ?

Thank you in advance for your answer,

Alexandre

  • related: https://stackoverflow.com/questions/14438187/javascript-filereader-parsing-long-file-in-chunks – georg Jun 19 '19 at 09:18
  • Here's a good [Angular File Upload module](https://github.com/nervgh/angular-file-upload) you can probably utilize for you. – Alon Adler Jun 19 '19 at 09:23
  • Thank you for your answers. These solutions use bytes to separate the files. Are there solutions to separate the file by number of lines For exemple, read the file by hundred lines – Kagelmacher Jun 19 '19 at 12:51

0 Answers0