I would like to upload a byte array to a HTTP(S) server. I am aware that this can be done using the WebClient but I would like to send some POST arguments along with the byte array.
How can I do this with more fundemental classes like HTTPWebRequest? These are the conditions that the solution should meet:
- It should also work in HTTPS.
- It should not require the byte array to be written to a temporary file. What I mean is that I should be able to do everything right within the memory.
Also, if the solution requires something different to be done over the server side, it would be great if you also state that.
Thanks in advance.