开发者

.NET WebClient - Upload data and get stream

开发者 https://www.devze.com 2022-12-24 05:25 出处:网络
I have a situation where I want to asynchronously write a series of bytes with WebClient (in much the same way as UploadDataAsync) and get a readable response stream (in the same way as OpenReadAsync)

I have a situation where I want to asynchronously write a series of bytes with WebClient (in much the same way as UploadDataAsync) and get a readable response stream (in the same way as OpenReadAsync).

You seem to be 开发者_开发问答able to do the two individually, but not both of them together. Is there a way?


It's likely that UploadDataTaskAsync will do what you want. See https://stackoverflow.com/a/9736471/56778 for an example.

0

精彩评论

暂无评论...
验证码 换一张
取 消