You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works well for small and medium-sized files, but the getEntries() it fails and creates a very ambiguous failed to fetch error for large archives.
The threshold seems to be at about 2GiB. This seems to match the threshold for blob sizes in Google Chrome.
Could this be the reason for the failure and is what I have even the right approach when trying to read large files on the client-side?
I have tried a few of the HttpOptions but enabling chunking had the side-effect of creating a ridiculous number of requests with 500kb each which is way to small and has a severe performance penalty when trying to actually extract the files (which is the intended next step).
Sample link for testing: https://f003.backblazeb2.com/file/ambientCG-Web/download/Ground054_5jRbQ1OF/Ground054_12K-PNG.zip
The text was updated successfully, but these errors were encountered:
This is due to the fact that the entries are located at the end of the file. If the server supports range requests (see curl command below) then you just need to replace HttpReader with HttpRangeReader in your code to fix the issue. You can increase the chunk size (i.e. "500kb") by calling zip.configure({ chunkSize: <desired size in bytes> }).
I have the following code for listing the contents of an archive given its url:
This works well for small and medium-sized files, but the
getEntries()
it fails and creates a very ambiguousfailed to fetch
error for large archives.The threshold seems to be at about 2GiB. This seems to match the threshold for blob sizes in Google Chrome.
Could this be the reason for the failure and is what I have even the right approach when trying to read large files on the client-side?
I have tried a few of the
HttpOptions
but enabling chunking had the side-effect of creating a ridiculous number of requests with 500kb each which is way to small and has a severe performance penalty when trying to actually extract the files (which is the intended next step).Sample link for testing:
https://f003.backblazeb2.com/file/ambientCG-Web/download/Ground054_5jRbQ1OF/Ground054_12K-PNG.zip
The text was updated successfully, but these errors were encountered: