4

I am new in Asp .Net core.

what is BinaryWrite() method for httpResponse in .NetCore ?

Also I need Flush() and End() in .NetCore But I can't find it.

NitinSingh
  • 2,029
  • 1
  • 15
  • 33
Amir133
  • 2,372
  • 2
  • 18
  • 34

1 Answers1

3

You likely need SendFileAsync you might need to install another nuget package to get it Microsoft.AspNetCore.http.Extensions

For example:

response.SendFileAsync(fileNameFullPath);
Tom
  • 6,325
  • 4
  • 31
  • 55