DiscordChatExporter/DiscordChatExporter.Core
265866 e7a9499601 Stream asset downloads to avoid OutOfMemoryException on large files
ExportAssetDownloader used HttpClient.GetAsync(url, ct), which defaults to
HttpCompletionOption.ResponseContentRead and buffers the entire response body
into memory before returning. Downloading a large attachment therefore tried to
grow a single in-memory buffer to the full file size and threw
OutOfMemoryException (HttpContent.LoadIntoBufferAsync -> GrowAndWrite).

Pass HttpCompletionOption.ResponseHeadersRead so the body is streamed straight
to disk via CopyToAsync in bounded chunks, matching how DiscordClient already
issues its requests.
2026-06-01 19:52:44 -07:00
..
Discord Remove BOM 2026-04-19 23:13:12 +03:00
Exceptions Remove BOM 2026-04-19 23:13:12 +03:00
Exporting Stream asset downloads to avoid OutOfMemoryException on large files 2026-06-01 19:52:44 -07:00
Markdown Remove BOM 2026-04-19 23:13:12 +03:00
Utils Remove BOM 2026-04-19 23:13:12 +03:00
DiscordChatExporter.Core.csproj Add PowerKit and replace custom utility extensions (#1525) 2026-04-19 23:10:45 +03:00