I have a .NET Core 3.1 Web API that can return large data of around 250MB. The data is coming from SQL so it cannot be referenced via hyperlinks. The client I am using is HttpClient
on the calling application. It is not giving any error in response.
When it returns smaller data around 40MB, I get Status Code 200 in response. The Content-Length has some value. The await response.Content.ReadAsStringAsync()
has the content.
But when it returns large data of around 150MB, I get Status Code 200 in response. The Content-Length is 0. The await response.Content.ReadAsStringAsync()
has empty value.
Is there any limit on the response data size in Web API?