File transmission method and device, computer equipment and storage medium

A file transfer and computer program technology, applied in the computer field, can solve the problems of low file transfer efficiency and time-consuming

Active Publication Date: 2020-10-16
SHENZHEN NEOWAY TECH
View PDF11 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the current FTP dual-thread download method, when users use dual-thread to download different files, they first need to create a reverse file on the server side, and copy the original file byte by byte to another file to generate a corresponding file. If the reverse file contains a large amount of byte data, it will take a lot of time to

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 transmission method and device, computer equipment and storage medium
  • File transmission method and device, computer equipment and storage medium
  • File transmission method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0058] The file transfer method provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the terminal 102 communicates with the server 104 through the network. The terminal 102 can obtain byte data corresponding to the target file from the server 104 by sending a request to the server 104 . The terminal 102 acquires byte data corresponding to the size of the target file from the server 104 . Terminal 102 compares the byte data to a preset threshold. When the terminal 102 detects that the byte data of the target file...

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 relates to a file transmission method and device, computer equipment and a storage medium. The method comprises the steps of obtaining byte data corresponding to the size of a target file; comparing the byte data with a preset threshold value; when the byte data is greater than a preset threshold value, starting double threads to transmit the target file until the residual transmission byte data of the target file is less than or equal to the preset threshold value; when the remaining transmission byte data of the target file is smaller than or equal to the preset threshold value, starting a single thread to transmit the target file; and combining the data transmitted by each thread to obtain data corresponding to the target file. By the adoption of the method, the transmission mode of the target file can be dynamically adjusted according to the size of the target file, an inverted file does not need to be created at a server side for transmission, the tedious operation process and a large amount of time are prevented from being consumed, the file transmission efficiency is effectively improved, and the downloading speed of large files is increased.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a file transmission method, device, computer equipment and storage medium. Background technique [0002] With the development of computer technology and the advent of the 5G era, the emergence of the Internet has brought great convenience to modern life. More and more users can use mobile terminal devices to transmit data with different Internet platforms. With the development of the Internet, FTP has become one of the most widely used protocols for file transfer on the network. The application layer protocol for transport. [0003] However, in the current FTP dual-thread download method, when users use dual-thread to download different files, they first need to create a reverse file on the server side, and copy the original file byte by byte to another file to generate a corresponding file. If the reverse file contains a large amount of byte data, it will take a lo...

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
IPC IPC(8): H04L29/08
CPCH04L67/06
Inventor 张扬
Owner SHENZHEN NEOWAY TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products