Extracts the unzipped ESI file (esiFilename) content from a firmware package.
A firmware package is a ZIP archive that typically contains esiZipFilename
(a ZIP wrapping esiFilename), the firmware binaries, the SII file, and other assets such as
stack_image.svg.zip. This function unzips the package, then unzips the nested esiZipFilename,
and returns the raw XML bytes. Only the ESI entries are decompressed; the firmware binaries are skipped.
The returned content matches what Motion Master returns when reading the file from a device, where the
zipped file is automatically unzipped. This means it can be stored in IndexedDB just like the read-time
caching in getDeviceFile does, allowing the ESI to be resolved locally without writing it to the drive.
Returns
The unzipped ESI XML bytes, or null if the package does not contain an ESI file
(for example, an empty firmware package).
Extracts the unzipped ESI file (esiFilename) content from a firmware package.
A firmware package is a ZIP archive that typically contains esiZipFilename (a ZIP wrapping esiFilename), the firmware binaries, the SII file, and other assets such as
stack_image.svg.zip. This function unzips the package, then unzips the nested esiZipFilename, and returns the raw XML bytes. Only the ESI entries are decompressed; the firmware binaries are skipped.The returned content matches what Motion Master returns when reading the file from a device, where the zipped file is automatically unzipped. This means it can be stored in IndexedDB just like the read-time caching in
getDeviceFiledoes, allowing the ESI to be resolved locally without writing it to the drive.Returns
The unzipped ESI XML bytes, or
nullif the package does not contain an ESI file (for example, an empty firmware package).