File breakpoint resuming method and system

It is a technology of resuming transmission from breakpoints and files, which is applied in transmission systems, electrical components, etc. It can solve problems such as file failure and data duplication at breakpoints, and achieve the effect of reducing transmission time and improving transmission efficiency

Active Publication Date: 2020-06-19
北京东方金信科技股份有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, most of the current breakpoint resume methods read data from the file stream in batches in a certain thread, and then record the position of the last synchronization in the form of points, so that when a batch appears to record the location information When an exception occurs, data duplication will occur at the next breakpoint, causing the file to be unusable

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 breakpoint resuming method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0020] Such as figure 1 As shown, a kind of file resume transmission method provided by the present invention, it comprises the following steps:

[0021] 1) The server sends an HTTP request to the client to obtain information about the resources to be transmitted, segments the resources to be transmitted to obtain segmented resources, and establishes a corresponding download target folder, in which segments are stored Resource start and stop information table, temporary file number table and location information file.

[0022] The method for establishing a corresponding download target folder according to the relevant information of the resource to be transferred includes the following steps:

[0023] 1.1) According to the given number of threads and the size of the resources to be transmitted, the resources to be transmitted are segmented to obtain multiple segmented resources;

[0024] The specific calculation method is: divide the size of the resources to be transmitted b...

Embodiment 2

[0043] Based on the above-mentioned file breakpoint resume transmission method, the present invention also provides a kind of file breakpoint resume transmission system, which includes: a download target creation module set on the server side, used to obtain the file to be transmitted according to the HTTP request sent by the server side to the client terminal Resource-related information, divide the resources to be transferred into segmented resources and establish corresponding download target folders. The download target folders store segmented resource start and end information tables, temporary file number tables, and location information files; set in The segmented resource transmission module of the client is used to determine the segmented resources that need to be transferred according to the recorded information in the download target folder returned by the server, start a thread to transmit each segmented resource, and transfer the resources in the download target fol...

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 breakpoint resuming method and system. The method is characterized by comprising the following steps: 1) a server side sends an HTTP request to a client side, relevantinformation of to-be-transmitted resources is obtained, the to-be-transmitted resources are segmented to obtain segmented resources, a downloading target folder corresponding to the segmented resources is established, and a segmented resource starting and ending information table, a temporary file number mark and a site information file are stored in the downloading target folder; 2) the client sends a data transmission request, determines each segment resource needing to be transmitted according to the record information in the download target folder returned by the server, starts a thread totransmit each segment resource, and updates the download target folder; 3) all the transmitted segmented resources are combined to obtain a complete resource to be transmitted. The method can be widely applied to the field of file breakpoint resuming.

Description

technical field [0001] The invention relates to a method and system for resumed transmission of files at breakpoints, belonging to the technical field of communications. Background technique [0002] With the continuous development of network technology, the application of network in people's daily life is becoming more and more extensive, and the use of network to realize resource sharing is also widely used. The user terminal can transmit files to be shared or saved to the network server. However, if the network is interrupted during the process of transmitting files from the user terminal to the server, the file transmission will be suspended. [0003] In order to solve the problem of aborted file transfer, file resumable transfer came into being. File breakpoint resuming means that when downloading or uploading, the download or upload task (a file or a compressed package) is artificially divided into several parts, and each part uses a thread to upload or download. Fai...

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 & AuthorityApplications(China)
IPC IPC(8): H04L29/08
CPCH04L67/02H04L67/06
Inventor王建圆
Owner北京东方金信科技股份有限公司