S
S
Svyatoslav Khusamov2019-05-24 11:54:35
JavaScript
Svyatoslav Khusamov, 2019-05-24 11:54:35

How to handle multipart in JavaScript browser?

Hey!
How to process a request with Content-Type: multipart/mixed in a JavaScript browser?
I have already written a parser for such a file.
I store the response body in a Uint8Array. And I'm already working with him. For example, I do a division along the line boundary.
This works very slowly. A file of 20 megabytes can already lead the browser tightly and it happens that everything collapses. We need a different algorithm.
What other ways are there to work with binary data?
In this case, we are interested in searching and breaking into pieces.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bqio, 2019-05-24
@bqio

https://github.com/feross/buffer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question