title: Can not read memory stream c#
body: <p>I am using some data, that goes to a mvc api. In this case, I pass the data using postman.
  The data format is raw text. The value that I am passing to the API are the following,and represent EDF (<a href="http://www.edfplus.info/" rel="nofollow">http://www.edfplus.info/</a>) data  :</p>
  
  <pre><code>  "rawdata":{
  
   "binaryencoding":"base64","FileID":3,"ExtensionName":"edf",
  
     "value":"gMnW5\/P5  \/Pz16+HZ087KyMbEwsHBwMDAwMHBwcLCw8PExMXFxsfHyMnJysvLy8zMy8vLysrKysnJycnJycrKysvLy8vMzMzMzc7Q0dLS0dHQzs3MysjHxcTCwL69u7m3trSysbCvra2sq6uqqqqqqqqqq6urrKysrK2tra.....QjY2SnKu7zNnb1Mi7sKehnJiWlJKRkZCQkJCRkZGSkpOTk5SUlJWVlpaXl5iYmZmampqam5qbm5ubm5ycnJ2dnp6fn6CgoaGioqGhoKCfnp6dnJybm5uampqamZmZmZiYmJeXlpaWlZWVlZSUlJOTk5KSkZGRkZGQkJCQkI+Pj4+Pj4+Pj..."
  </code></pre>
  
  <p>Here you are some code.To keep things simple, I will assign the rawdata.value from the httppost directly to an object that was created before, the Value is a string.</p>
  
  <pre><code>myObject.value=rawdata.value;
  byte[] data=Base64.Convert.FromBase64String(myObject.value);(myobject.Value); //this gives you a 15.000 positions array.
  Stream stream = new MemoryStream(data);
  //the stream gets those ReadTimeOut and WriteTimeOut exceptions,after being created
  StreamReader Sr=new StreamReader(stream);
  char[] header=new char[256];
  sr.ReadBlock(header, 0, 256);
  </code></pre>
  
  <p>when you inspect the block, it has all its values like the following, with the � symbol:</p>
  
  <p><code>[0] = 65533 '�'</code></p>
  
  <p>I also have to add that I when I inspect the Stream, I can see that the stream readtimeout and writetimeout properties through the following error: <code>System.InvalidOperationException</code></p>
  
  <p>Do you know why this error might be occurring? thanks</p>