How to decompress the GZipStream returned by the function GetContentAsync(true)? #767
Unanswered
sidediallo
asked this question in
Q&A
Replies: 1 comment
-
Hi @sidediallo , Below approach works fine. You seem to want to load all the returned data of the large file in memory? Not ideal for performance, especially when you need to deal with very large files. Probably better to first persist the file in temp location and then load it (or parts of it) and do the needed processing? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to read large files (about 150 Mb) from SharePoint online.
I connect and load the file with no problem.
Then I use "GetContentAsync(true)" so I can iterate through all the contents of the file.
The problem is that when I do "await fileToDownload.GetContentAsync(true)" I get a GZipStream type instead of Stream.
and when I try to decompress the data obtained I get an exception "The archive entry was compressed using an unsupported compression method.".
How can I get decompressed data?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions