About 22,000,000 results
Open links in new tab
  1. .net - Download PDF File from API Using C# - Stack Overflow

    Jun 14, 2016 · Use this code for download a pdf from the API. It will convert the string data to bytes and provide you the necessary solution.

  2. How to Download PDF Files Using HttpClient in C#

    You can download PDF files in C# using the HttpClient class, which is part of the System.Net.Http namespace. This powerful class allows you to send HTTP requests and receive HTTP …

  3. Return or Download File in ASP.NET Core API | TheCodeBuzz

    Return or Download File in ASP.NET Core WebAPI or Angular Applications. Download ⬇️ stream or bytes as files like .pdf, .csv,excel(.xlsx) or text file etc.

  4. How to Return PDF Files Using C# Web API - Web Dev Tutor

    Aug 8, 2024 · In this tutorial, we have learned how to generate and return PDF files using a C# Web API. By leveraging libraries like iTextSharp and implementing a Web API endpoint, you …

  5. Handling File Downloads in Web API using C# and JavaScript

    Jan 17, 2023 · One of the common use cases of Web API is to allow clients to download files from the server. In this article, we will discuss how to create a Web API action method that allows a …

  6. How to Return Files From Web API - C# Corner

    In this article, we are going to discuss how to return files (PDF/Word/Excel) from Web API service. I am going to explain a step by step process to transfer a file over Http REST service. Let’s …

  7. How to return a PDF from a Web API application - Stack Overflow

    I needed to return a pdf file from a .NET core 3.1 web api, and found this excellent article: https://codeburst.io/download-files-using-web-api-ae1d1025f0a9. Basically, you call: var bytes …

  8. How to return the PDF file from C# Web API - Essential Objects

    Oct 7, 2022 · In my case it's saving in the root of my .NET Core project's bin folder: var result = EO.Pdf.HtmlToPdf.ConvertHtml(html, "Test Report.pdf"); I need to be able to use the following …

  9. Download file in C# .Net Core - Microsoft Q&A

    Oct 3, 2022 · There are two main ways to download a file with ASP.NET Core. One is the static file handlers. By default any file in the wwwroot folder has accessible by a URL. Static files in …

  10. Download any page as a PDF with .NET 8 and Puppeteer

    Apr 24, 2024 · In this post, I show an example of how you can utilize Puppeteer in c# .NET to create functionality that can download any publicly available website as a PDF file.

Refresh