0

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, but upload is different. It does not create file info: Content-Type: multipart/form-data; boundary=---------------------8cc6c7ba6182136

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.