Sending File in Chunks to HttpHandler

前端 未结 2 1112
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 21:10

I\'m trying to send a file in chunks to an HttpHandler but when I receive the request in the HttpContext, the inputStream is empty.

So a: while sending I\'m not sur

2条回答
  •  有刺的猬
    2021-01-05 21:39

    I suspect it might be confusing that you are uploading it as form-encoded. but that isn't what you are sending (unless you're glossing over something). Is that MIME type really correct?

    How big is the data? Do you need chunked upload? Some servers might not like this in a single request; I'd be tempted to use multiple simple requests via WebClient.UploadData.

提交回复
热议问题