最佳答案
I am using ASP.NET Web API.
I want to download a PDF with C# from the API (that the API generates).
Can I just have the API return a byte[]
? and for the C# application can I just do:
byte[] pdf = client.DownloadData("urlToAPI");?
and
File.WriteAllBytes()?