icsharpcode/SharpZipLib

Zip-as-a-browser-download-attachment doesnt work in .Net Core 2.0

Open

#194 geöffnet am 3. Okt. 2017

Auf GitHub ansehen
 (4 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C# (964 Forks)batch import
core streamdocumentationhelp wantedzip

Repository-Metriken

Stars
 (3.502 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

The sample for creating a zip fie as a browser download attachment as mentioned at doesnt seem to work in .Net Core 2.0:

https://github.com/icsharpcode/SharpZipLib/wiki/Zip-Samples#create-a-zip-as-a-browser-download-attachment-in-iis

In the sample code, I think Response.Flush(); need to be updated to Response.Body.Flush(); whereas Response.End();, need to be removed.

But I am not sure what Response.OutputStream should be updated with? It seems that in .net core 2.0 Response.OutputStream is not available.

Contributor Guide