开发者

How to UploadFile to web server without creating a file?

开发者 https://www.devze.com 2022-12-17 22:55 出处:网络
I have to upload dynamically created data file to web server. One way to do that is to create a temporary file dump dat开发者_开发知识库a to that file, and then use WebClient.UploadFile to do work. B

I have to upload dynamically created data file to web server. One way to do that is to create a temporary file dump dat开发者_开发知识库a to that file, and then use WebClient.UploadFile to do work. But how to do that without creating a file?


You can call WebClient.UploadData, which takes a byte array, or UploadString, which takes a string.

0

精彩评论

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