Describe the issue
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
Describe the issue
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