File processing method, system and device, equipment and medium
A processing method and file technology, applied in the computer field, can solve problems such as low decompression efficiency and large resource occupation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] figure 1 A schematic diagram of a file processing flow is provided for an embodiment of the present invention, and the flow includes:
[0052] S101: Receive the data stream of the target compressed packet, and when receiving the data packet header of the data stream, decompress and obtain the information recorded in the data packet header, wherein the information includes the data of each subfile in the data stream The location information in , and the relative path of each subfile in the target file corresponding to the target compressed package.
[0053] An embodiment of the present invention provides a file processing method, which can be applied to an electronic device, and the electronic device can be a smart device with an image collection function, or a PC, a server, and other devices.
[0054] In the embodiment of the present invention, the data stream includes a data packet header and file data after the data packet header. Among them, the information recorde...
Embodiment 2
[0065] In order to save the space occupied by the relative path recorded in the data packet header of the data stream, on the basis of the above embodiments, in the embodiment of the present invention, the information also includes a file name mapping table, a directory name mapping table, and each Path information corresponding to the sub-file, determining the relative path of the target sub-file includes:
[0066] According to the first identifier of each directory of the target subfile recorded in the path information of the target subfile, and the relationship between each directory of the first identifier, and the relationship between the directory name recorded in the directory name mapping table and The corresponding relationship of the first identifier of the directory, determining the directory name corresponding to the directory of the first identifier, and the relationship between the directories of each name; according to the second identifier of the name of the tar...
Embodiment 3
[0076] In order to further improve the efficiency of decompression and reduce the resources occupied by decompression, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, according to the specified storage location of the target compressed package and the target The relative path of the subfile determines the target storage location of the target subfile, including:
[0077] Determine the target storage location of the target subfile according to the quantity of the target subfile, the specified storage location, and the relative path of the target subfile.
[0078] Since there may be at least two subfiles with the same file data in the original file, if each subfile is compressed and decompressed, it will not only increase compression resources, consume more transmission resources, but also reduce decompression The efficiency, occupying decompression resources. Therefore, in order to further reduce compression resources and reduce net...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com