Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2020-07-14
ZHEJIANG DAHUA TECH CO LTD
View PDF21 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a file processing method, system, device, equipment, and medium to solve the existing problems of low decompression efficiency and large resource occupation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File processing method, system and device, equipment and medium
  • File processing method, system and device, equipment and medium
  • File processing method, system and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file processing method, a file processing system, a file processing device, file processing equipment and a medium, which are used for solving the problems of low decompression efficiency and large occupied resources in the prior art. According to the embodiment of the invention, the position information of the data of each sub-file in the data stream is recorded in the data packet header of the data stream, therefore, when the file data in the data stream is received, according to the position information of the file data in the data stream, a target sub-file corresponding to the file data is determined; and according to the relative path, recorded in the data packet header, of each sub-file in the target file corresponding to the target compressed packet, and according to the specified storage position of the target compressed packet, the target storage position is determined, so that the decompressed file data is stored in the target storage position, the file data is decompressed while being received, the decompression efficiency is improved, and the occupation of cache resources is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular, to a file processing method, system, device, equipment, and medium. Background technique [0002] With the popularization of various electronic devices, data transmission by sending and receiving files has become an important means in information processing. Among them, before sending the file, the original file is compressed to obtain a compressed package that is relatively smaller than the original file size, and the compressed package is transmitted to save resources for file transmission. After receiving the compressed package, the compressed package is compressed The package is decompressed to get the original file. [0003] In the prior art, the common file processing method is, after receiving all the data of the target compressed package, according to the information of the target compressed package contained in the data, such as meta inform...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/172G06F16/174
CPCG06F16/172G06F16/1744
Inventor 吴惠敏
Owner ZHEJIANG DAHUA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products