About 3,390,000 results
Open links in new tab
  1. asp.net - How to handle Images using WebAPI - Stack Overflow

    Jun 7, 2018 · Use a Controller: Get: var result = new HttpResponseMessage(HttpStatusCode.OK); String filePath = HostingEnvironment.MapPath("~/Images/HT.jpg"); FileStream fileStream = new FileStream(filePath, FileMode.Open); Image image = Image.FromStream(fileStream); MemoryStream memoryStream = new MemoryStream(); image.Save(memoryStream, …

  2. How to to return an image with Web API Get method

    Aug 27, 2016 · I need to return an image with a Web API Get method. The code below seems to work fine except that I get this message in the Fiddler's ImageView window, "This response is encoded, but does not claim to be an image."

  3. Returning Images from ASP.NET Web API - CodeGuru

    Jul 1, 2013 · In order to return images stored directly in a SQL Server database from an ASP.NET Web API you need to create a Get() method that returns HttpResponseMessage. The Content property of the HttpResponseMessage class represents the binary image data associated with an …

  4. c# - Image Uploading in Dot net core Web API - Stack Overflow

    Apr 6, 2022 · To upload the image file into database via Asp.net core API, first, we should use IFormFile to send the image file from the client to the API action method. Then, copy the IFormFile to a stream and save it as a byte array in the database.

  5. Upload Image In ASP.NET Core Web API 6.0 (With Postman) - C

    In this blog, we learn about upload image with other parameter & upload image via Postman.

  6. Web API Save Upload image to Database in ASPNet MVC

    Nov 28, 2020 · In this article I will explain with an example, how to save (upload) Image files to Database using Web API in ASP.Net MVC Razor. The Web API will insert and retrieve Image files from SQL Server database using Entity Framework in ASP.Net MVC Razor.

  7. Working with Images in an ASP.NET Web Pages (Razor) Site

    Jul 11, 2022 · This article shows you how to add, display, and manipulate images (resize, flip, and add watermarks) in an ASP.NET Web Pages (Razor) website. What you'll learn: How to add an image to a page dynamically. How to let users upload an image. How to resize an image. How to flip or rotate an image. How to add a watermark to an image.

  8. Using Ef Core In Asp Net Core Web Api For Performing Crud Operations Images

    Apr 22, 2025 · In this article, we'll show you how to use entity framework to construct a web api in asp core 6. asp web api makes it easier to create http(s) services that connect to various clients such as browsers and mobile devices.

  9. Image upload/CRUD operations in .net core APIs

    Apr 17, 2024 · In this article, we will learn how to upload/update/delete/read images in .net core APIs. I hate to give long and unnecessary intros, So let’s come to the point’s. 💻 You can get the code from...

  10. How To Return An Image Result From Web API Using .NET …

    In this article, we will create a Web API project in .NET Core and we will learn how to return an image while you hit an API. You would have seen earlier how to return a string response or an object response using Web API.

Refresh