Codeunit 425 "Data Compression"
System Application · System.IO
Across versions
- BC23-25present
- BC26declaration changed
- BC27-30unchanged
Neighbourhood 21 connected objects and pages
System Application · System.IO · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Procedures
CreateZipArchive(): Creates a new ZipArchive instance.OpenZipArchive(InputInStream: InStream; OpenForUpdate: Boolean): Creates a ZipArchive instance from the given InStream.OpenZipArchive(InputInStream: InStream; OpenForUpdate: Boolean; EncodingCodePageNumber: Integer): Creates a ZipArchive instance from the given InStream.OpenZipArchive(TempBlob: Codeunit "Temp Blob"; OpenForUpdate: Boolean): Creates a ZipArchive instance from the given instance of Temp Blob codeunit.SaveZipArchive(OutputOutStream: OutStream): Saves the ZipArchive to the given OutStream.SaveZipArchive(var TempBlob: Codeunit "Temp Blob"): Saves the ZipArchive to the given instance of Temp Blob codeunit.CloseZipArchive(): Disposes the ZipArchive.GetEntryList(var EntryList: List of [Text]): Returns the list of entries for the ZipArchive.ExtractEntry(EntryName: Text; OutputOutStream: OutStream; var EntryLength: Integer)(obsolete 23.0: This function has been replaced by the function ExtractEntry(EntryName: Text; OutputOutStream: OutStream) which instead returns the entry length.): Extracts an entry from the ZipArchive.ExtractEntry(EntryName: Text; OutputOutStream: OutStream): Integer: Extracts an entry from the ZipArchive.ExtractEntry(EntryName: Text; var TempBlob: Codeunit "Temp Blob"): Integer: Extracts an entry from the ZipArchive to a TempBlob instance.AddEntry(InStreamToAdd: InStream; PathInArchive: Text): Adds an entry to the ZipArchive.RemoveEntry(PathInArchive: Text): Removes an entry from the ZipArchive.IsGZip(InStream: InStream): Boolean: Determines whether the given InStream is compressed with GZip.IsZip(InStream: InStream): Boolean: Determines whether the given InStream is compressed with Zip.GZipCompress(InputInStream: InStream; CompressedOutStream: OutStream): Compresses a stream with GZip algorithm. The InStream that contains the content that should be compressed. The OutStream into which the compressed stream is copied to.GZipDecompress(InputInStream: InStream; DecompressedOutStream: OutStream): Decompresses a GZipStream. The InStream that contains the content that should be decompressed. The OutStream into which the decompressed stream is copied to.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 421 “Data Compression Impl.” (12 calls:
AddEntry → AddEntry,CloseZipArchive → CloseZipArchive,CreateZipArchive → CreateZipArchive, …)
Called by
- Codeunit 9988 “Word Template Impl.” (14 calls:
GenerateSpreadsheetDataSource → AddEntry,GetFileFromZip → ExtractEntry,GetFileFromZip → GetEntryList, …) - Codeunit 5261 “Audit File Export Mgt.” (8 calls:
GenerateSingleZipFileForAllLines → AddEntry,GenerateSingleZipFileForAllLines → CloseZipArchive,GenerateSingleZipFileForAllLines → CreateZipArchive, …) - Codeunit 1652 “Add-in Manifest Management” (4 calls:
DownloadMultipleManifestsToClient → AddEntry,DownloadMultipleManifestsToClient → CloseZipArchive,DownloadMultipleManifestsToClient → CreateZipArchive, …) - Codeunit 4308 “Agent Message Impl.” (4 calls:
DownloadAttachments → AddEntry,DownloadAttachments → CloseZipArchive,DownloadAttachments → CreateZipArchive, …) - Codeunit 431 “IC Outbox Export” (4 calls:
DownloadBatchFiles → AddEntry,DownloadBatchFiles → CloseZipArchive,DownloadBatchFiles → CreateZipArchive, …) - Codeunit 4352 “Custom Agent Instructions” (4 calls:
DownloadMultipleInstructions → AddEntry,DownloadMultipleInstructions → CloseZipArchive,DownloadMultipleInstructions → CreateZipArchive, …) - Codeunit 452 “Report Distribution Management” (4 calls:
CreateOrAppendZipFile → AddEntry,CreateOrAppendZipFile → CreateZipArchive,CreateOrAppendZipFile → IsGZip, …) - Codeunit 4810 “IntrastatReportManagement” (4 calls:
ExportToZip → AddEntry,ExportToZip → CloseZipArchive,ExportToZip → CreateZipArchive, …) - Codeunit 5069 “Word Template Interactions” (4 calls:
EnableZipArchive → CreateZipArchive,Merge → CloseZipArchive,Merge → SaveZipArchive, …) - Codeunit 8800 “Custom Layout Reporting” (4 calls:
AddFileToClientZip → CreateZipArchive,ProcessReport → AddEntry,ProcessReport → CloseZipArchive, …) - Codeunit 8906 “Email Editor” (4 calls:
DownloadAttachments → AddEntry,DownloadAttachments → CloseZipArchive,DownloadAttachments → CreateZipArchive, …) - Codeunit 9520 “Mail Management” (4 calls:
DownloadPdfAttachment → AddEntry,DownloadPdfAttachment → CloseZipArchive,DownloadPdfAttachment → CreateZipArchive, …) - Table 1173 “Document Attachment” (4 calls:
DownloadZipFileWithVATReturnAttachments → AddEntry,DownloadZipFileWithVATReturnAttachments → CloseZipArchive,DownloadZipFileWithVATReturnAttachments → CreateZipArchive, …) - Table 31 “Item Picture Buffer” (4 calls:
LoadZIPFile → CloseZipArchive,LoadZIPFile → ExtractEntry,LoadZIPFile → GetEntryList, …) - Table 60 “Document Sending Profile” (4 calls:
SaveZipArchiveToBLOB → CloseZipArchive,SaveZipArchiveToBLOB → SaveZipArchive,SendToEMail → SaveZipArchive, …) - Table 61 “Electronic Document Format” (4 calls:
SendElectronically → AddEntry,SendElectronically → CloseZipArchive,SendElectronically → CreateZipArchive, …) - Table 747 “VAT Report Archive” (4 calls:
DownloadZipFile → AddEntry,DownloadZipFile → CloseZipArchive,DownloadZipFile → CreateZipArchive, …) - Page 9802 “Permission Sets” (3 calls:
ExportMixedPermissionSets → AddEntry,ExportMixedPermissionSets → CreateZipArchive,ExportMixedPermissionSets → SaveZipArchive) - Table 77 “Report Selections” (2 calls:
SendToZipForCust → AddEntry,SendToZipForVend → AddEntry) - Codeunit 8619 “Config. Pckg. Compression Mgt.” (1 call:
ServersideDecompress → IsGZip)
Deprecations
- procedure ExtractEntry: Pending 23.0 (#if not CLEAN26), “This function has been replaced by the function ExtractEntry(EntryName: Text; OutputOutStream: OutStream) which instead returns the entry length.”
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Data Compression"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.