C#C
C#4y ago
Alex

❔ Invalid Data Exception when extracting files

I am getting a System.IO.InvalidDataException: Found invalid data while decoding. error while running this line...
ZipFile.ExtractToDirectory(InternalFileManager.INSTANCE.QueryFilePath(filename), InternalFileManager.INSTANCE.QueryDirectoryPath("tmp", true));

Though I have no idea why. The file that I am extracting is one that has been downloaded, with the following code: https://pastecode.io/s/2rhskczr

Is there something i'm missing here?
Was this page helpful?