Skip to content

Saving xls memorystream results in System.IO.InvalidDataException #718

@mileaminute

Description

@mileaminute

With version 6.0.6 loading .xls from file or httpclient results in this error:

System.IO.InvalidDataException: 'The file is not a valid Package file. If the file is encrypted, please supply the password in the constructor.'

at this line:

ExcelPackage package = new ExcelPackage(memStream);

However, loading same file but saved as .xlsx file works fine. Is there a potential fix or workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions