title: Cannot convert from string to System.IO.Stream
body: <p>Here's my code for StreamReader in Xamarin Forms What I want is simply read a file and convert it into byte array but when I try this code I simply get this error that is Cannot convert from string to System.IO.Stream</p>
  
  <pre><code>        using (var sr = new StreamReader(filename))
          {
              buffer = new byte[(int)sr.BaseStream.Length];
              await sr.ReadAsync(buffer, 0, (int)sr.BaseStream.Length);
         }
  </code></pre>