https://learn.microsoft.com/en-us/dotnet/api/system.io.stream.copytoasync?view=netframework-4.8.1&viewFallbackFrom=net-8.0
Stream.CopyToAsync Method (System.IO) | Microsoft Learn
Asynchronously reads the bytes from the current stream and writes them to another stream. Both streams positions are advanced by the number of bytes copied.
streammethodsystemiomicrosoft
https://learn.microsoft.com/fr-fr/dotnet/api/system.io.stream.copytoasync?view=netframework-4.8.1&viewFallbackFrom=net-6.0
Stream.CopyToAsync Method (System.IO) | Microsoft Learn
Asynchronously reads the bytes from the current stream and writes them to another stream. Both streams positions are advanced by the number of bytes copied.
streammethodsystemiomicrosoft