简体   繁体   中英

Asp.Net Web API - How to accept a file in a REST endpoint without using mutlipart?

I am trying to write a REST endpoint using the ASP.NET Web API framework. The use case is that the endpoint should be able to accept a stream of a zipped file.

The solutions that I have seen so far all use multipart/form-data but I'm trying to see whether it is possible to be able to do so without using multi-part.

使用multipart / form-data设置作为指南: https : //tools.ietf.org/html/rfc2388 https://tools.ietf.org/html/rfc2046

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM