I have to upload dynamically created data file to web server. One way to do that is to create a temporary file dump data to that file, and then use WebClient.UploadFile to do work. But how to do that without creating a file?
+3
A:
You can call WebClient.UploadData
, which takes a byte array, or UploadString
, which takes a string.
SLaks
2010-01-26 13:44:46
Yes, but upload is different. It does not create file info:Content-Type: multipart/form-data; boundary=---------------------8cc6c7ba6182136
volody
2010-01-26 13:55:13