Skip to content

[Bug]: End of Central Directory record could not be found. #7833

@HamzaVural14

Description

@HamzaVural14

Describe the issue

Image

When reading ZIP file content using the following code in Business Central 27.5:
ALBase64Convert.FromBase64(PackageBase64, BlobOutStream);
the operation completes successfully without any errors.
However, using the same code with the same Base64 file content in Business Central 28, we encounter the following error:

A call to System.IO.Compression.ZipArchive failed with this message:
End of Central Directory record could not be found.

This occurs despite no changes to the code or the input data between the two environments.

Expected behavior

No error in BC28.

Steps to reproduce

Try to use FromBase64 function for a big zip file includes base64 blob content.

Additional context

No response

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntegrationGitHub request for Integration area

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions