Using .Net, I want to pass some binary data(some serialized objects) through an HttpWebRequest.
Can I just put it on the request stream, or do I need to encode it into a base64 string?
I mean if i have:
byte[] data = new byte[1000];
GetSomeStrangeData(data);
Do I need to Use Convert.ToBase64String or can I just write it to the stream from HttpWebRequest.GetRequestStream ?
for posterity :
https://www.rfc-editor.org/rfc/rfc2616
http://msdn.microsoft.com/en-us/library/d4cek6cc.aspx
See Question&Answers more detail:os