I have a Base64 string of xls file. When I try to open base64 stream it throws the following exception
Aspose.Cells.CellsException : This file's format is not supported or you don't specify a correct format.
public Stream ConvertFileToStream(string fileBase64)
{
var fileAsBytes = Convert.FromBase64String(fileBase64);
Stream stream = new MemoryStream(fileAsBytes);
return stream;
}
public void Open(Stream fileSource)
{
FileFormatUtil.DetectFileFormat(fileSource);
_workbook = new Workbook(fileSource);
}