File transfer method and device
A file transfer and file technology, applied in the field of data transfer, can solve the problems of reducing file transfer efficiency and consuming time, and achieve the effect of improving file transfer efficiency and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0073] see figure 1 , the file transfer method of the present invention, when downloading, comprises the following steps:
[0074] S1: The client sends a file download request to the server;
[0075] S2: The server receives and responds to the request, and sends a response result to the client;
[0076] S3: The client receives the response result and judges whether the server allows downloading, if yes, execute step S4; if not, execute step S7;
[0077] S4: Determine whether the file is larger than 100M, if yes, execute step S6; if not, execute step S5;
[0078] S5: Transmit the file in a single-threaded file transmission mode, and jump to step S7;
[0079] S6: Transmitting the file in a multi-threaded file transmission manner;
[0080] S7: The execution of the current download request of the client ends.
[0081] Further, see figure 2 , in said step S5, comprising the following steps:
[0082] S501: Create a thread;
[0083] S502: Encrypt the file, in this embodiment...
Embodiment 2
[0105] see Figure 4 , the file transfer method of the present invention, the steps when uploading and downloading are basically the same, only in steps S1, S2 and S3 are different, in the second embodiment, it is not necessary to judge whether the response sent by the server is Which type, as long as the server responds, the client starts to transmit files to the server until the file transmission is successful. Since the rest of the steps are basically the same as those in the first implementation, they will not be repeated here.
Embodiment 3
[0107] see Figure 5 , the present invention also provides a file transfer device, including a client and a server,
[0108] The client further includes: a request module, a first judgment module, a second judgment module, a first single-thread transmission module, and a first multi-thread transmission module;
[0109] Wherein, the request module is used for the client to send a file transfer request to the server;
[0110] The first judging module is used for the client to judge whether the server accepts the request;
[0111] The second judging module is used to judge whether the file to be transferred is larger than 100M, and when the file is larger than 100M, send the file to the first multithreaded file transfer module for multithreaded file transfer; otherwise, send the file to the first single-threaded file transfer module;
[0112] The first single-threaded file transfer module is configured to transfer and end the file in a single-threaded file transfer manner;
...
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