Relative Content

Tag Archive for c#.netasp.net-web-api

How to save Stream data from external GET request in .NET

I am currently in my .NET (c#) backend, making a GET call to an external URL which returns a responseType: 'stream'. In this case it is streaming back data which should be a valid .PDF file once complete. Calling this external API from Postman works fine and displays the pdf, but my code doesnt seem to be getting all of the streamed data, causing an invalid file.