Skip to content

Sending large files? #233

Answered by scottoffen
BenWoodford asked this question in Q&A
Discussion options

You must be logged in to vote

There are several overloads of HttpResponse.SendResponse() that will take a stream as a first parameter. Take a look at those, if you don't also pass in the ContentType and Encoding, you will have to set those on the response object yourself.

So, you could use FileStream or MemoryStream or which ever stream meets your specific needs.

Honestly, Grapevine 5 does a much better job of this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scottoffen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #232 on September 15, 2021 23:29.