Is there a way to extract a single file from a zip file in Adobe AIR?
I am using the NoChumps zip library to extract files from zip. In this library, the entire IDataStream file is loaded into memory, after which you can easily extract records from the file. In cases where the zip is from 5 to 10 MB, there are no problems. But when the zip code is 80 MB, and many of them, 80 MB is loaded into memory. This causes the application to crash and work on mobile devices. According to the zip specification,
"The ZIP file is identified by the presence of a central directory located at the end of the file, which allows you to add new files. The directory stores a list of record names (files or directories) stored in the ZIP file, as well as other metadata about the record and the offset to the ZIP file, indicating the actual input data. "
In addition, I have no control over the size of zip files, but in most cases from 60 to 100 MB. Files inside - ~ 4 MB.
source share