javascript - Loading part of file from server -


i have large text file on server (21 gb). read part of it, byte byte b.

is possible xmlhttprequest, filereader or blobs, or other interface? without special software on server?


actually, want process whole file locally. entire file not fit ram (can't load single xmlhttprequest). filereader can read specific bytes of local file, have choose manually < input >, each time run program.

you can send range header in request (with xhr). if server supports partial requests, can give bytes ask for.

xhrinstance.setrequestheader("range", "bytes=500-999"); 

note should expect 206 partial content response instead of 200 ok response.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -