"ReadAsByteArrayAsync()" does not accept parameters
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@KungaLed Are you targeting .NET 5.0?
The method exists starting with .NET 5.0 : https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpcontent.readasbytearrayasync?view=net-5.0#System_Net_Http_HttpContent_ReadAsByteArrayAsync_System_Threading_CancellationToken_
@IEvangelist The link for the API reference in the article isn't working for some reason. That could be the point of confusion.
Thanks for writing this @KungaLed
As @Youssef1313 points out, this overload is in .NET 5. We should point that out, and figure out why this isn't working.
Assigning to @IEvangelist
Sorry for late reply. I am on asp dotnet core 3.1
Most helpful comment
@IEvangelist The link for the API reference in the article isn't working for some reason. That could be the point of confusion.