I have a .net core web API wherein one of the endpoints I download a file from an external source, load it into a MemoryStream, then return the MemoryStream as StreamResult. This causes the application to consume a lot of memory for large files. I am looking for a way to directly pipe the download stream to the user.
没有评论:
发表评论