title: Error message: Value of type 'System.IO.FileStream' cannot be converted to '1-dimensional array of Byte'
body: <p>I am getting an error: </p>
  
  <blockquote>
    <p>Value of type 'System.IO.FileStream' cannot be converted to
    '1-dimensional array of Byte'.  </p>
  </blockquote>
  
  <p>My code block is:  </p>
  
  <pre><code>Dim FileToSign As System.IO.FileStream = GetTestPdfFile(fileName)
  Dim SignedFileInfo As New secure.echosign.com.FileInfo()
  SignedFileInfo.fileName = fileName
  SignedFileInfo.mimeType = Nothing
  SignedFileInfo.file = FileToSign
  </code></pre>
  
  <p>SignedFileInfo.file is a Byte type.<br>
  How can I convert File to byte?</p>