while converting to datatable from downloaded stream of xlsx returns encrypted text.
Comments: ** Comment from web user: beula **
Comments: ** Comment from web user: beula **
sftpClient.DownloadFile(filePath, Stream);
byte[] decryptedArray = decryptedStream.ToArray();
var table = (Encoding.Default.GetString(decryptedArray, 0, decryptedArray.Length - 1)).Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
which returns encrypted text