.NET WebClient - Upload data and get stream
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.
精彩评论