I am getting an error:
Value of type 'System.IO.FileStream' cannot be converted to '1-dimensional array of Byte'.
My code block is:
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
SignedFileInfo.file is a Byte type.
How can I convert File to byte?