File transmission method and system
A file transmission and file technology, applied in the field of data transmission, can solve the problems of low transmission efficiency and occupy the transmission network for a long time, and achieve the effect of high file transmission efficiency and fast file transmission speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] Embodiment 1 of the present invention provides a file transfer method, figure 1 As a schematic flow chart of the method, the method provided in Embodiment 1 of the present invention may include:
[0037] S11: Divide the file to be transferred into multiple sub-files.
[0038] In this embodiment, dividing the file to be transferred into a plurality of sub-files may specifically be: dividing the file to be transferred into a plurality of sub-files on average, that is, the size of each sub-file is the same, and the size of the sub-files is set by the user, and at the same time , assign a unique identifier to each sub-file, and the identifier of each sub-file can be the serial number of the sub-file. This embodiment does not limit the size of each divided sub-file to be the same or different, as long as the file to be transferred is divided into multiple sub-files, it is within the protection scope of the present invention.
[0039] S12: Start multiple threads to transmit...
Embodiment 2
[0051] Embodiment 2 of the present invention provides a file transmission method, figure 2 It is a schematic flow chart of the method. In addition to steps S11-S13 in Embodiment 1, the file transfer method provided in Embodiment 2 of the present invention may also include:
[0052] S14: Determine whether the file to be transferred is successfully transferred, if not, execute step S15; if yes, execute step S16.
[0053] S15: According to the information of the successfully transmitted subfiles in the record file, start the transmission of the unsuccessfully transmitted subfiles, and then go to step S14.
[0054] S16: Merging multiple sub-files to restore the file to be transferred.
[0055] In this embodiment, each subfile is identified by two attributes of offset and blocksize, wherein offset identifies the starting position of the subfile in the file to be transferred, and blocksize identifies the size of the subfile. After all the subfiles are successfully transferred, th...
Embodiment 3
[0060] Embodiment 3 of the present invention provides a file transmission system, image 3 As a schematic structural diagram of the system, the file transmission system provided by Embodiment 3 of the present invention may include: a division module 11 , a transmission module 12 and a recording module 13 .
[0061] Wherein, division module 11 is used for dividing the file to be transferred into a plurality of sub-files; transmission module 12 is used to start multiple threads to transmit a plurality of sub-files; recording module 13 is used to record the information of successfully transmitted sub-files to the record in the file.
[0062] In the file transmission system provided by the third embodiment of the present invention, the file to be transmitted is divided into multiple sub-files, and multiple threads are started to transmit the multiple sub-files. Since multiple threads are used to transmit the files to be transmitted at the same time, the file transmission speed is...
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