Using ASP.NET Web API as an Image Service

I have an application that works both on websites and on mobile platforms, and its users can upload photos using the application. I need a web service to handle loading and displaying images in both web applications and mobile applications.

Is it good to use ASP.NET Web API as an image service and make POST requests to upload photos? What are some of the pros and cons of this approach? Does the ASP.NET Web API use overhead for such a service?

+5
source share
2 answers

- ASP.NET - - .NET 4 ( .Net 4.5), . , 9.

ASP.NET Web API MIME- HTML . FileUploadSample, .

StreamContent. ( ) , HttpResponseMessage HttpContent StreamContent, .

-.

, ,

+12

, concurrency .

- /, , ASP.NET -. concurrency ASP.NET .

:

1) ASP.NET, , IAsync. - .

2) IAsyncResult, , . ASP.NET -, ( , , ..).

3) , Node.js , -, .

+2

All Articles