CN108401012A - A kind of document breakpoint transmission method - Google Patents

A kind of document breakpoint transmission method Download PDF

Info

Publication number
CN108401012A
CN108401012A CN201810094808.9A CN201810094808A CN108401012A CN 108401012 A CN108401012 A CN 108401012A CN 201810094808 A CN201810094808 A CN 201810094808A CN 108401012 A CN108401012 A CN 108401012A
Authority
CN
China
Prior art keywords
file
breakpoint
document
server
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810094808.9A
Other languages
Chinese (zh)
Inventor
刘远见
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Hui Trade Electronic Port Co Ltd
Shandong Huimao Electronic Port Co Ltd
Original Assignee
Shandong Hui Trade Electronic Port Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Hui Trade Electronic Port Co Ltd filed Critical Shandong Hui Trade Electronic Port Co Ltd
Priority to CN201810094808.9A priority Critical patent/CN108401012A/en
Publication of CN108401012A publication Critical patent/CN108401012A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of document breakpoint transmission methods, belong to information resources technical field.The document breakpoint transmission method of the present invention is based on client and obtains breakpoint information, and executes file stream based on breakpoint information and resume, and specifically includes following steps:S1, client initiate file upload request and file checking request;S2, server-side determines and save file breakpoint location;S3, client obtain document breaking point information;S4, server-side response resume the request of file stream;S5, client receive file and upload result mark.The document breakpoint transmission method of the invention can save the uplink time and Internet resources of file, and can ensure the accurate and stability that file resumes, and have good application value.

Description

A kind of document breakpoint transmission method
Technical field
The present invention relates to information resources technical fields, specifically provide a kind of document breakpoint transmission method.
Background technology
Current Internet technology is quickly grown, and is based on B/S(Browser/Server)That is the station of client end/server end Point exploitation and erection pattern are dispersed throughout each corner of internet world.Rely on the acquisition of information and information of browser client The shared and exchange of publication also great convenience information resources.Important carrier of the file as information resources, based on browsing In the internet environment of device client, server-side is often uploaded to the download of convenience file resource and is shared.However file passes Inevitably encountered in defeated network interruption or transmission end can not normal response the case where, this just needs to transmit file again.It should for reply Kind the occurrence of, avoid file in the transmission caused by network resources waste the case where, file transmission in support breakpoint on The progress of disease it is particularly necessary.
Currently, there are many file upload mode, have a variety of clients such as ftp, ssh to upload in conjunction with different File Transfer Protocol Tool.In comparison, the pattern for relying on client to carry out file upload as client is more convenient, quick.Nowadays, base In the method that client mode is uploaded also there are many kinds of, such as using various front end transmitting assemblies to file carry out on the whole Biography or fragment(Block)It uploads, even if some support the transmitting assembly of fragment to pay close attention to breakpoint itself, but it is file to resume granularity Flow(Block), and mostly not to breakpoint location persistence, the uplink time and Internet resources of file are not only wasted, it can't Enough ensure the accurate and stability that file resumes.
Invention content
The technical assignment of the present invention be in view of the above problems, provide a kind of uplink time that can save file and Internet resources, and can ensure accurate and stability the document breakpoint transmission method that file resumes.
To achieve the above object, the present invention provides following technical solutions:
A kind of document breakpoint transmission method, this method is based on client and obtains breakpoint information, and executes file based on breakpoint information Stream resumes, and specifically includes following steps:
S1, client initiate file upload request and file checking request;
S2, server-side determines and save file breakpoint location;
S3, client obtain document breaking point information;
S4, server-side response resume the request of file stream;
S5, client receive file and upload result mark.
In the document breakpoint transmission method, user first confirms that client and server-side network environment are connections.
By this document breaker point continuous transmission method, on the one hand for can in time be positioned residing for document breaking point in the case of network interruption Position is accurate to the byte granularity of file stream, has saved the network flow during file resumes, on the other hand, for what is got Document breaking point information carries out the operation for being persisted to database, avoids breakpoint information in the expense favorite outer loss of persistence environment.No The uplink time and Internet resources of file are only saved, and ensure that the accurate and stability that file resumes.
Preferably, when client initiates file request in S1, by client front end transmitting assembly, file is with file stream Form is uploaded to server-side.
Preferably, including source file information, server-side response when client initiates file checking request in S1, in request This document inspection is asked, and is encrypted to the fileinfo of acquisition, is obtained the unique mark of file.
Preferably, source file information described in S1 includes source filename claims, file size, file type and document time Information is stabbed, the file name of acquisition, file size, file type, document time stamp are believed in server-side response file inspection request Md5 encryptions are carried out after breath combination, obtain the unique mark of file.
Preferably, file identification of the server-side based on acquisition in S2, inquiry database judges that source file whether there is, such as It is 0 there is no server-side file size is then returned, returns to server-side file size if existing, breakpoint is determined by file size Position is simultaneously saved in breakpoint information in the breakpoint information table of database.
Preferably, the breakpoint information table includes file name, file identification, transmitting file size and general act are big It is small.
Preferably, client obtains the size of transmitting file of server-side return and is compared with source file size in S3, if Transmitting file size is equal in magnitude with source file, and file is prompted to exist, and is initiated if transmitting file size is less than source file size Remaining file resumes request.
Preferably, server-side customer in response end resumes request in S4, the remaining file of transmitting file is added based on breakpoint Stream, file stream resume to server-side, the whole file size having received are updated in database breakpoint information table.
The residue file stream judges according to breakpoint location, is accurate to the length of stream byte.
Preferably, server-side returns to client upload result mark, client reception result according to interaction protocol in S5 It identifies and provides result prompt.
Preferably, using browser as client in this method.
Compared with prior art, document breakpoint transmission method of the invention has advantageous effect following prominent:
(One)The document breakpoint transmission method is based on client and obtains breakpoint information, and executes file stream based on breakpoint information and continue It passes, for document breaking point present position can be positioned in the case of network interruption in time, is accurate to the byte granularity of file stream, saves File resume in network flow;
(Two)For the operation that the document breaking point information got carries out being persisted to database, avoid breakpoint information lasting in expense Change the favorite outer loss of environment;
(Three)This method not only saves the uplink time and Internet resources of file, and ensure that file resumes accurate and steady It is qualitative, there is good application value.
Description of the drawings
Fig. 1 is document breakpoint transmission method schematic diagram of the present invention;
Fig. 2 is the flow chart of document breakpoint transmission method of the present invention.
Specific implementation mode
Below in conjunction with drawings and examples, the document breakpoint transmission method of the present invention is described in further detail.
Embodiment
As depicted in figs. 1 and 2, document breakpoint transmission method of the invention obtains breakpoint information based on browser, and is based on Breakpoint information executes file stream and resumes.Specifically include following steps:
S1, user confirm that browser and server-side network environment are connections, and browser initiates file upload request and file inspection It makes a thorough investigation of and asks.
(1)When browser initiates file request, by browser front end transmitting assembly, file is uploaded to file manifold formula Server-side.
(2)When browser initiates file checking request, the source file title comprising source file, file size, text in request Part type and document time stamp information, server-side responds this document inspection request, to the file name, file size, text of acquisition Md5 encryptions are carried out after part type, the combination of document time stamp information, obtain the unique mark of file.
S2, server-side determines and save file breakpoint location.
File identification of the server-side based on acquisition, inquiry database judge that source file whether there is, are returned as there is no if Server-side file size is 0, and server-side file size is returned if existing, and determines breakpoint location by file size and breakpoint In information preservation to the breakpoint information table of database.Breakpoint information table include file name, file identification, transmitting file size and Total file size.
S3, browser obtain document breaking point information.
Browser obtain server-side return the size of transmitting file simultaneously compared with source file size, if transmitting file size with Source file is equal in magnitude, and file is prompted to exist, and initiates remaining file and resume to ask if transmitting file size is less than source file size It asks.
S4, server-side response resume the request of file stream.
Server-side response browser resumes request, the remaining file stream of transmitting file is added based on breakpoint, file stream resumes To server-side, the whole file size having received is updated in database breakpoint information table.Remaining file stream is according to disconnected Point position judgment, is accurate to the length of stream byte.
S5, browser receive file and upload result mark.
Server-side returns to browser according to interaction protocol and uploads result mark, and browser reception result identifies and provides result Prompt.
Embodiment described above, the only present invention more preferably specific implementation mode, those skilled in the art is at this The usual variations and alternatives carried out within the scope of inventive technique scheme should be all included within the scope of the present invention.

Claims (10)

1. a kind of document breakpoint transmission method, it is characterised in that:This method is based on client and obtains breakpoint information, and is based on breakpoint Information executes file stream and resumes, and specifically includes following steps:
S1, client initiate file upload request and file checking request;
S2, server-side determines and save file breakpoint location;
S3, client obtain document breaking point information;
S4, server-side response resume the request of file stream;
S5, client receive file and upload result mark.
2. document breakpoint transmission method according to claim 1, it is characterised in that:Client initiates file request in S1 When, by client front end transmitting assembly, file is uploaded to server-side with file manifold formula.
3. document breakpoint transmission method according to claim 1 or 2, it is characterised in that:Client initiates file inspection in S1 It makes a thorough investigation of when asking, includes source file information in request, server-side responds this document inspection request, adds to the fileinfo of acquisition Close processing obtains the unique mark of file.
4. document breakpoint transmission method according to claim 3, it is characterised in that:Source file information described in S1 includes source File name, file size, file type and document time stamp information, server-side response file inspection request, to the text of acquisition Md5 encryptions are carried out after part title, file size, file type, the combination of document time stamp information, obtain unique mark of file Know.
5. document breakpoint transmission method according to claim 4, it is characterised in that:File of the server-side based on acquisition in S2 Mark, inquiry database judge that source file whether there is, and are 0 as returned to server-side file size there is no if, are returned if existing Server-side file size is returned, breakpoint location is determined by file size and breakpoint information is saved in the breakpoint information table of database In.
6. document breakpoint transmission method according to claim 5, it is characterised in that:The breakpoint information table includes filename Title, file identification, transmitting file size and total file size.
7. document breakpoint transmission method according to claim 6, it is characterised in that:Client obtains server-side and returns in S3 The size of transmitting file and compared with source file size, prompt file to deposit if transmitting file size and source file are equal in magnitude It is initiating remaining file if transmitting file size is less than source file size and resumes request.
8. document breakpoint transmission method according to claim 7, it is characterised in that:Server-side customer in response end resumes in S4 Request adds the remaining file stream of transmitting file based on breakpoint, and file stream is resumed to server-side, the whole text that will be had received Part size is updated in database breakpoint information table.
9. document breakpoint transmission method according to claim 8, it is characterised in that:Server-side is returned according to interaction protocol in S5 It returns client and uploads result mark, client reception result identifies and provides result prompt.
10. document breakpoint transmission method according to claim 9, it is characterised in that:Using browser as visitor in this method Family end.
CN201810094808.9A 2018-01-31 2018-01-31 A kind of document breakpoint transmission method Pending CN108401012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810094808.9A CN108401012A (en) 2018-01-31 2018-01-31 A kind of document breakpoint transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810094808.9A CN108401012A (en) 2018-01-31 2018-01-31 A kind of document breakpoint transmission method

Publications (1)

Publication Number Publication Date
CN108401012A true CN108401012A (en) 2018-08-14

Family

ID=63095729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810094808.9A Pending CN108401012A (en) 2018-01-31 2018-01-31 A kind of document breakpoint transmission method

Country Status (1)

Country Link
CN (1) CN108401012A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149410A (en) * 2019-06-05 2019-08-20 武汉墨仗信息科技股份有限公司 The bidding documents uploading system of big data breakpoint transmission of the concentrating type based on cloud platform
CN110809039A (en) * 2019-10-30 2020-02-18 华工正源智能终端(孝感)有限公司 File uploading method and device
CN111245949A (en) * 2020-01-19 2020-06-05 中国建设银行股份有限公司 File filing and transmission method, device and equipment
CN111262952A (en) * 2020-03-27 2020-06-09 北京环鼎科技有限责任公司 Breakpoint continuous loading method for downloading acoustic data file for storage logging
CN112153132A (en) * 2020-09-18 2020-12-29 北京浪潮数据技术有限公司 File uploading method, device and equipment based on virtualization management platform
CN112417437A (en) * 2020-10-28 2021-02-26 北京八分量信息科技有限公司 Trusted cloud platform based program white list generation method
CN112689022A (en) * 2020-12-31 2021-04-20 上海宏力达信息技术股份有限公司 Automatic data continuous transmission method
CN114584551A (en) * 2022-01-27 2022-06-03 深圳爱捷云科技有限公司 File uploading method, electronic equipment and computer program product
CN114979118A (en) * 2022-05-19 2022-08-30 浪潮云信息技术股份公司 File breakpoint continuous transmission method based on browser
CN115549757A (en) * 2022-09-13 2022-12-30 中国电子科技集团公司第五十四研究所 Satellite communication software online upgrading method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141866A1 (en) * 2003-12-11 2005-06-30 Pioneer Corporation Data recording-and-reproducing apparatus, data recording-and-reproducing method, program, and recording medium
CN101127879A (en) * 2007-10-10 2008-02-20 张福泉 Stream media VoD system for intelligent access data
CN101174954A (en) * 2006-10-31 2008-05-07 上海高勤通信科技有限公司 Document breaking point uploading method based on internet hypertext transfer protocol
CN102096772A (en) * 2011-01-30 2011-06-15 北京恒华伟业科技股份有限公司 Smart client system of power transmission and transformation project
CN103067505A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 Method for uploading files to server
CN105227610A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading and storing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141866A1 (en) * 2003-12-11 2005-06-30 Pioneer Corporation Data recording-and-reproducing apparatus, data recording-and-reproducing method, program, and recording medium
CN101174954A (en) * 2006-10-31 2008-05-07 上海高勤通信科技有限公司 Document breaking point uploading method based on internet hypertext transfer protocol
CN101127879A (en) * 2007-10-10 2008-02-20 张福泉 Stream media VoD system for intelligent access data
CN102096772A (en) * 2011-01-30 2011-06-15 北京恒华伟业科技股份有限公司 Smart client system of power transmission and transformation project
CN103067505A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 Method for uploading files to server
CN105227610A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading and storing method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149410A (en) * 2019-06-05 2019-08-20 武汉墨仗信息科技股份有限公司 The bidding documents uploading system of big data breakpoint transmission of the concentrating type based on cloud platform
CN110809039A (en) * 2019-10-30 2020-02-18 华工正源智能终端(孝感)有限公司 File uploading method and device
CN111245949A (en) * 2020-01-19 2020-06-05 中国建设银行股份有限公司 File filing and transmission method, device and equipment
CN111262952A (en) * 2020-03-27 2020-06-09 北京环鼎科技有限责任公司 Breakpoint continuous loading method for downloading acoustic data file for storage logging
CN111262952B (en) * 2020-03-27 2023-11-21 北京环鼎科技有限责任公司 Breakpoint continuous loading method for downloading acoustic data file for storage logging
CN112153132A (en) * 2020-09-18 2020-12-29 北京浪潮数据技术有限公司 File uploading method, device and equipment based on virtualization management platform
CN112417437A (en) * 2020-10-28 2021-02-26 北京八分量信息科技有限公司 Trusted cloud platform based program white list generation method
CN112689022A (en) * 2020-12-31 2021-04-20 上海宏力达信息技术股份有限公司 Automatic data continuous transmission method
CN114584551A (en) * 2022-01-27 2022-06-03 深圳爱捷云科技有限公司 File uploading method, electronic equipment and computer program product
CN114979118A (en) * 2022-05-19 2022-08-30 浪潮云信息技术股份公司 File breakpoint continuous transmission method based on browser
CN115549757A (en) * 2022-09-13 2022-12-30 中国电子科技集团公司第五十四研究所 Satellite communication software online upgrading method
CN115549757B (en) * 2022-09-13 2024-05-07 中国电子科技集团公司第五十四研究所 Satellite communication software online upgrading method

Similar Documents

Publication Publication Date Title
CN108401012A (en) A kind of document breakpoint transmission method
US10778554B2 (en) Latency measurement in resource requests
US9912740B2 (en) Latency measurement in resource requests
US9253065B2 (en) Latency measurement in resource requests
AU2021266341B2 (en) Session processing method, device, and system
US10681127B2 (en) File upload method and system
US9185012B2 (en) Latency measurement in resource requests
US9781215B2 (en) Migration of network connection under mobility
WO2007005546A3 (en) Method and apparatus for browsing network resources using an asynchronous communications protocol
US8505024B2 (en) Storing state in a dynamic content routing network
TWI535255B (en) A metod and device thereof for sending business requirements
CN102882974B (en) Method for saving website access resource by website identification version number
TW428392B (en) Network information providing method and device
WO2011088640A1 (en) Method for mobile terminal to browse multimedia resource and corresponding system and communication system
CN107222561A (en) A kind of transport layer reverse proxy method
CN104468852A (en) Method, device and system for client to select IP link address
CN107623752B (en) Network management method and device based on link layer
CN107634975A (en) A kind of method of data synchronization, equipment and system
JP2004247916A (en) Sip service control system coping with web link and control method
CN103973638A (en) Access control method, electronic equipment and server
CN104955153A (en) Method, device and appliances for discovering resources
JP2006268671A (en) Log-in control system and log-in control method
JP2003162449A (en) Integrated access management system, integrated access management device and its method and program
JP5543896B2 (en) Mediation server, and access analysis method and program by the mediation server
CN104618450B (en) The Web caching systems and method of a kind of WLAN

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180814