-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to download large file (Via byte[] or stream) #25
Comments
I have tried via |
This is a limitation of blazor and javascript itself I don't think it would be possible to fix browser max blob size. We would need to investigate futher on this. |
You may be hitting this https://stackoverflow.com/questions/28307789/is-there-any-limitation-on-javascript-max-blob-size |
I'm using this now.. |
Interesting article. He is using low level api and seems to gain more performance and less overhead. Thanks for the share. I will be considering changing the implementation in the near future. |
I was having an issue with an even smaller size (400kb ish) I turned my stream into a byte array and it worked. @arivera12, you might want to impliment this
for your
I can submit a PR if you need/like |
@thalaeg which issue are you having? I don't get what are trying to tell me. This issue is about managing large files which I haven't worked on it yet. if you have another issue please create a new issue. |
@arivera12 My issue was when I had a file that was too large (anything above 64ish KBs) the file would become corrupted. I was downloading excel files (.xlsx extension) via a Where When I changed I can't share the file with you because of confidential info in it :(. |
that's weird are you using blazor server or blazor wasm? if you are using blazor server you may be hitting this: https://docs.microsoft.com/en-us/aspnet/core/signalr/security?view=aspnetcore-3.1#buffer-management |
blazor wasm here is the
|
What I can think is that I may be having a bug in the stream overload method. I will move this into a new issue. |
I have a memory stream that is
280803689
bytesI have direct access to the buffer it contains via
var bytes = ms.GetBuffer();
I then call
DowloadFileResult fileResult = await DownloadFileService.DownloadFile(FileDetails.OriginalFileName, bytes, cts.Token, 1024*64, "application/octet-stream", OnProgress);
Then 6 minutes later I get this:
L: GC_MAJOR_SWEEP: major size: 2512K in use: 1523K
L: GC_MAJOR: (user request) time 63.28ms, stw 63.30ms los size: 450736K in use: 449168K
The text was updated successfully, but these errors were encountered: