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
Post a Comment