CN107172174A - The quick upload of file is realized between clients and servers - Google Patents

The quick upload of file is realized between clients and servers Download PDF

Info

Publication number
CN107172174A
CN107172174A CN201710404052.9A CN201710404052A CN107172174A CN 107172174 A CN107172174 A CN 107172174A CN 201710404052 A CN201710404052 A CN 201710404052A CN 107172174 A CN107172174 A CN 107172174A
Authority
CN
China
Prior art keywords
file
files
blocks
piece
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
CN201710404052.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.)
Chongqing City Kai Gaolue Wisdom Information Technology Co Ltd
Original Assignee
Chongqing City Kai Gaolue Wisdom Information Technology 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 Chongqing City Kai Gaolue Wisdom Information Technology Co Ltd filed Critical Chongqing City Kai Gaolue Wisdom Information Technology Co Ltd
Priority to CN201710404052.9A priority Critical patent/CN107172174A/en
Publication of CN107172174A publication Critical patent/CN107172174A/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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of scheme for the quick upload for realizing file between clients and servers, to solve the problem of big file uploading under wireless environment is slow, mortality is high, it carries out piecemeal, burst to file and uploaded, simultaneously if there is Network Abnormal, can be from block level retransmissions, without retransmitting whole file;The present invention is verified to block, three ranks of piece and complete file, prevents file from uploading mistake;The present invention uses multitask asynchronous upload, can significantly improve uploading rate, improves network usage.

Description

The quick upload of file is realized between clients and servers
Technical field
It is more particularly to a kind of real between clients and servers the present invention relates to the data transmission technology in internet The scheme of the quick upload of existing file.
Background technology
With the popularization of internet, mobile Internet, the upper transmitting file demand of user is huge.Http protocol make it that user can be with Obtained by browser software from internet, upload information.Http protocol is at this stage using very universal, most of users Terminal device (mobile phone, flat board, common computer etc.) passes through http protocol interaction data, including upload text between server Part.But due to the terminals such as mobile phone using WIFI, mobile network access internet, and WIFI and mobile network be typically due to covering, Interference, it is wireless the factor poor quality such as penetrate, there is network interruption, situations such as speed is slow, thus cause transmitting file failure, Speed is slow, and mortality is high when particularly uploading big file, and Consumer's Experience is not good.
The content of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide one kind client and server it Between realize file quick upload scheme, for overcoming in the case of communication quality is not good file to upload, mortality is high to ask Topic.
In order to achieve the above objects and other related objects, the present invention provides solution below:
According to the first aspect of the invention
A kind of file uploading method, including:A client to one first file carry out divide obtain N number of blocks of files and Each blocks of files divide obtaining M file piece, wherein, M and N take positive integer;The client is according to N number of file Block, which starts N number of task, to be carried out an each blocks of files progress burst for being divided into M file piece a pair and is uploaded to a server, wherein, N number of task is asynchronous to be carried out, it is every has uploaded a file piece after, the client uploads front and rear data to the file piece Check value determines whether the file piece being uploaded in the server is correct;It is described after the completion of N number of blocks of files is all uploaded N number of blocks of files is reassembled into one second file by server described in client request, and according to second file and first The file verification value of file determines whether first file uploads success.
According to the second aspect of the invention
A kind of file uploads device, is arranged at client-side, the file, which uploads device, to be included:File division module, is used Obtain N number of blocks of files and divide each blocks of files progress to obtain M file piece in one first file divide, Wherein, M and N take positive integer;Blocks of files uploading module, is divided into for a pair for starting N number of task according to N number of blocks of files come 1 Each blocks of files of M file piece carries out burst and is uploaded to a server, wherein, N number of task is asynchronous to be carried out, and has been uploaded every After one file piece, the client uploads front and rear data check value to determine to be uploaded in the server to the file piece File piece it is whether correct;File verification module, after the completion of all being uploaded in N number of blocks of files, the client request institute State server and N number of blocks of files is reassembled into one second file, and according to the file school of second file and the first file Value is tested to determine whether first file uploads success.
According to the third aspect of the invention we
A kind of document receiving method, including:One file piece is received according to a task, the file piece is buffered according to institute A blocks of files buffer area of task creation is stated, wherein, after the completion of file piece caching, calculate once the one of the file piece First check value, and give described in a buffer address of the blocks of files buffer area by first check value and next blocks of files Client;File generated request is received, according to the stripe sequence for the blocks of files that file generated request is carried will be each Corresponding blocks of files is reassembled into one second file in blocks of files buffer area, and according to the text of the second file generated one first Part check value, client is returned to by the first file verification value.
According to the fourth aspect of the invention
A kind of file reception device, is arranged at server side, and the file reception device includes:File piece receiving unit, For receiving a file piece according to a task, the file piece is buffered in and cached according to a blocks of files of the task creation Area, wherein, after the completion of file piece caching, calculate one first check value of the once file piece, and by described first Check value and next blocks of files give the client in a buffer address of the blocks of files buffer area;File generating unit, connects File generated request is received, the stripe sequence for the blocks of files for asking to carry according to the file generated caches each blocks of files Corresponding blocks of files is reassembled into one second file in area, and according to the file verification value of the second file generated one first, The first file verification value is returned into client.
According to the fifth aspect of the invention
A kind of file uploading system, including a server and at least client that is connected with the server network, institute State client and upload device including above-mentioned file;The server includes above-mentioned file reception device.
Beneficial effects of the present invention:
File uploading speed and successfully take the lead in higher than prior art, embody in the following areas:Uploaded using piecemeal, Monolithic uploads failure and can retransmitted from block, without whole file retransmission, that is, supports breakpoint transmission, saves Internet resources;Using point Piece is uploaded, and monolithic size is smaller, it is ensured that single file upload request message packets are smaller, are difficult to be influenceed by network quality, into Power is high;Using multitask asynchronous upload, multitask is uploaded respectively to blocks of files, is independent of each other between task, is held in network condition Perhaps uploading rate is greatly promoted in the case of.
Brief description of the drawings
Fig. 1 is shown as a kind of flow chart of file uploading method of client-side of the present invention.
Fig. 2 is shown as the flow chart of each task upload blocks of files of client-side of the present invention.
The whether successful flow chart of the file that the confirmation that Fig. 3 is shown as client-side of the present invention is uploaded.
Fig. 4 is shown as a kind of schematic diagram of file upload device of client-side of the present invention.
A kind of file that Fig. 5 is shown as client-side of the present invention uploads schematic diagram of the device in an one of preferred embodiment.
A kind of file that Fig. 6 is shown as client-side of the present invention uploads two schematic diagram of the device in a preferred embodiment.
Fig. 7 is shown as a kind of flow chart of document receiving method of server side of the present invention.
Fig. 8 is shown as a kind of schematic diagram of file reception device of server side of the present invention.
Fig. 9 is shown as a kind of schematic diagram of file uploading system of present system side.
Drawing reference numeral explanation
4 files upload device
41 file division modules
42 blocks of files uploading modules
421 file piece uploading units
422 file piece verification units
43 file verification modules
431 file generated request units
432 file generated verification units
8 file reception devices
81 file piece receiving units
82 file generating units
9 files are uploaded
91 clients
92 servers
S101~S103 steps
S201~S202 steps
S301~S302 steps
S701~S702 steps
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that, in the case where not conflicting, following examples and implementation Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way Think, then in schema only display with relevant component in the present invention rather than according to component count, shape and the size during actual implement Draw, it is actual when implementing, and kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel It is likely more complexity.
Preceding description
The technical scheme provided in implementation below is all based on by http protocol entering between client and server Row information interaction is come what is realized, and it is used to solve in user end to server uploads file processes due to network reason often The problem of causing to upload failure, make file upload procedure relatively reliable.
Embodiment one
Illustrated according to the method for client-side of the present invention
See Fig. 1, give a kind of file uploading method, it performs following steps to realize by order.
S101, to one first file divide obtaining N number of blocks of files and to each blocks of files in a client Progress, which is divided, obtains M file piece, wherein, M and N take positive integer.
In above-mentioned steps S101, the mode for dividing the first file can be a preassigned rule, usually, can be by The size of blocks of files is set in a certain scope or is fixed on a certain value, similarly, and file piece is also, but the size of file piece should be small In blocks of files, for example, blocks of files is without departing from 4MB, piece size is 256KB.
, wherein it is desired to the integral multiple of the regulation file block size of file not necessarily one uploaded, therefore general at least one The cause not of uniform size of the size of individual blocks of files and other blocks of files, accordingly, its quantity for being divided into file piece may also be with The quantity for the file piece that other blocks of files are divided is inconsistent.For example, a file is 42MB, if by each blocks of files 4MB, So, this document part can be divided into 11 blocks of files, and one of blocks of files is sized for 2MB.
S102, the client starts N number of task come 1 according to N number of blocks of files and is divided into each of M file piece for a pair Blocks of files carries out burst and is uploaded to a server, wherein, the N number of task is asynchronous to be carried out, it is every uploaded a file piece after, institute The data check value before and after client uploads the file piece is stated to determine whether is the file piece that is uploaded in the server Correctly.
In above-mentioned steps S102, the file number of blocks that client is obtained according to dividing distributes the task of respective numbers, for example One is treated that transmitting file is divided into 10 blocks of files, then client will start 10 tasks to upload each blocks of files one by one.
Wherein, it is asynchronous progress between each task, is independent of each other.
In one embodiment, one blocks of files of each task correspondence, is shown in Fig. 2, and each task uploads the mistake of blocks of files Journey can be realized by following steps:
S201, the client sends first according to the task and asked, and first request carries a file piece, uses A blocks of files buffer area is created in the instruction server, and the file piece is buffered in blocks of files buffer area, wherein, institute Server is stated after being cached to each file piece, the first check value will be returned to according to the file piece and next blocks of files exists The buffer address of blocks of files buffer area gives the client;
S202, the client receives first check value and buffer address, and is generated according to the file piece just uploaded Second check value, when second check value is consistent with the first check value, the buffer address and next file piece are carried out Uploaded after combination.
Wherein, in second check value and inconsistent the first check value, the file piece is retransmitted.
Wherein, the first check value and the second check value are CRC32 values, by carrying out CRC32 values to the file piece uploaded Verification can verify the uniformity on client and server.
Wherein, after the All Files piece of a blocks of files all uploads completion, that is, corresponding an of blocks of files is represented Business terminates.
S103, after the completion of N number of blocks of files is all uploaded, server described in the client request is by N number of blocks of files weight Combination nova determines first file into one second file, and according to the file verification value of second file and the first file Whether upload is successful.
In above-mentioned steps S103, with reference to the specific descriptions in above-mentioned steps S102, Fig. 3 is seen, the client confirms its institute The step whether the first file of upload is successful can specifically include:
S301, the client sends file generated request, described to ask the division for carrying N number of blocks of files suitable Sequence, for indicating that the server reconfigures the N number of blocks of files of correspondence in N number of blocks of files buffer area according to the stripe sequence Into one second file, returned according to the file verification value of the second file generated one first, and by the first file verification value To client;
S302, client receives the first file verification value, and one second by it and according to the first file generated is literary Part check value is compared, if unanimously, pointing out to upload successfully, if inconsistent, points out to upload failure.
Wherein, the first file verification value and the second file verification value are SHA1 values, are needed for verifying in client It is whether consistent between the file that the file and server of upload are received and reconfigured, it is ensured that the accuracy of upload.
Wherein, each file piece uploads (i.e. HTTP POST requests) if because network reason causes to lose in above-mentioned steps Lose, can re-request, rather than start anew.
Wherein, N number of task of client is the asynchronous progress of multitask, can be able to be specifically multi-thread by procedure auto-control The specific implementations such as journey, many association's journeys.
Wherein, if some tasks carrying fail, can newly-built task replacement primary failure task, that is, re-create file Block, the failure of ancient deed block.
Wherein, the stripe sequence can be to be made requests on, specifically by the way of HTTP POST lists to server CSV can be used in ground, the mark of each blocks of files.
In order to more clearly be illustrated to the embodiment of the present invention, below in actual applications in conjunction with specific embodiments to institute File uploading method is stated to be described in detail:
Illustrated exemplified by being uploaded in client to 10MB file;
Wherein, file upload procedure can so be implemented:
S41, the file that size is 10MB according to a division rule by client according to block size is that 4MB is divided into n=3 Block;First block size 4MB, the second block size 4MB, the 3rd block size 2MB;
S42, client opens 3 tasks and carries out asynchronous upload to three blocks of files respectively, and the upload flow of task is follow-up Description.While the ID and order of three blocks of files of preservation, wherein block identification is respectively blockId1, blockId2, blockId3;
S43, client the block ID of three blocks of files is spliced into sequence " blockId1, blockId2, BlockId3 ", and it is submitted to server application generation file;
S44, server is received after the request of client, installs and file is generated on block identification sequential logic, generates file Id, calculates the SHA1 values of whole file, returns to client;
S45, the SHA1 values of client calculation document, and the SHA1 values returned with server in step 204 are verified, such as Really equal then file is uploaded successfully, anyway the upper transmitting file failure of prompting.
Further, the process that each task is uploaded to blocks of files burst can so be implemented:
Blocks of files is carried out burst by S421, task, and agreement block size is 256KB;1 point of blocks of files is 16,2 points of blocks of files For 16,3 points of blocks of files is 8;
S422, task initiates HTTP request to server and creates block, while uploading the first sheet data;
S423, server receives establishment file block after request and cached, and preserves the first sheet data to buffering area, calculates first Sheet data CRC32 verify and, return to client block identification and verification and.Server will receive three times and create block request, respectively Create blockId1, blockId2, blockId3.
S424, task calculates CRC32 to the file piece just uploaded, and the CRC32 values returned with server are verified, such as It is really unequal, illustrate that this film uploads failure, point out user upper transmitting file failure;
S425, task is performed to follow-up file piece uploads piece operation, while carrying out school to the CRC32 that server is returned Test, completed until file piece is uploaded.
The method that above-described embodiment is provided, by being that blocks of files and file piece are uploaded by file declustering, when uploading, File piece is carried out successively to transmit the upload for completing blocks of files, and the upload between blocks of files is carried out to be asynchronous, so as to be lifted The efficiency that file is uploaded;In addition, upload procedure can carry out data check one by one to file piece, blocks of files and file, so as to protect The accuracy of data transfer is demonstrate,proved, even if therefore this document also can be uploaded accurately and efficiently in the case where network is poor service Device.
Embodiment two
Illustrated according to the device of client-side of the present invention
See Fig. 4, give a kind of file and upload device, it is installed on client-side, including:File division module, is used for One first file divide and obtains N number of blocks of files and each blocks of files divide obtaining M file piece, its In, M and N take positive integer;Blocks of files uploading module, M is divided into a pair for starting N number of task according to N number of blocks of files come 1 Each blocks of files of individual file piece carries out burst and is uploaded to a server, wherein, N number of task is asynchronous to be carried out, and has been uploaded every After one file piece, the client uploads front and rear data check value to determine to be uploaded in the server to the file piece File piece it is whether correct;File verification module, after the completion of all being uploaded in N number of blocks of files, the client request institute State server and N number of blocks of files is reassembled into one second file, and according to the file school of second file and the first file Value is tested to determine whether first file uploads success.
In a preferred embodiment
Fig. 5 is seen, first, the blocks of files uploading module is specifically included:File piece uploading unit, for according to the task A file piece is sent, the file piece is contained in a task requests, for indicating the server according to the task requests A blocks of files buffer area is created, and the file piece is buffered in the blocks of files buffer area, wherein, it is slow in each file piece After the completion of depositing, the server will calculate the first check value of the file piece, and by first check value and next file Block gives the client in a buffer address of the blocks of files buffer area;File piece verification unit, for receiving described first Check value and buffer address, and one second check value is generated according to the file piece that has just uploaded, second check value with When first check value is consistent, uploaded after the buffer address and next file piece are combined.
Fig. 6 is seen, second, file verification module includes:File generated request unit, for sending file generated request, The stripe sequence for asking to carry N number of blocks of files, for indicating that the server will be N number of according to the stripe sequence The N number of blocks of files of correspondence is reassembled into one second file in blocks of files buffer area, according to the text of the second file generated one first Part check value, and the first file verification value is returned into client;File generated verification unit, for receiving described first File verification value, and it is compared with the one second file verification value according to the first file generated, if unanimously, pointing out to upload Success, if inconsistent, points out to upload failure.
Embodiment three
Illustrated according to the method for server side of the present invention
See Fig. 7, give a kind of document receiving method, it comprises the following steps:
S701, a file piece is received according to a task, and the file piece is buffered in into the text according to the task creation Part block buffer area, wherein, after the completion of file piece caching, one first check value of the file piece is calculated once, and will First check value and next blocks of files give the client in a buffer address of the blocks of files buffer area;
S702, receives file generated request, the stripe sequence for the blocks of files for asking to carry according to the file generated will Corresponding blocks of files is reassembled into one second file in each blocks of files buffer area, and according to second file generated one First file verification value, client is returned to by the first file verification value.
Embodiment four
Illustrated according to server side installation method of the present invention
See Fig. 8, give a kind of file reception device, be arranged at server side, the file reception device includes:File Piece receiving unit, for receiving a file piece according to a task, the file piece is buffered in one according to the task creation Blocks of files buffer area, wherein, after the completion of file piece caching, one first check value of the file piece is calculated once, and By first check value and next blocks of files the client is given in a buffer address of the blocks of files buffer area;File is given birth to Into unit, file generated request is received, according to the stripe sequence for the blocks of files that file generated request is carried will be each Corresponding blocks of files is reassembled into one second file in blocks of files buffer area, and according to the text of the second file generated one first Part check value, client is returned to by the first file verification value.
Embodiment five
Illustrated according to server side installation method of the present invention
See Fig. 9, give a kind of file uploading system, it include a server and be connected with the server network to A few client, the file that the client is included in above-mentioned embodiment party two uploads device;The server includes above-mentioned implementation Fang Sizhong file reception device.
It should be noted that due to the method in present embodiment two to five, apparatus and system solve problem principle with Method in above-mentioned embodiment one is similar, therefore, and its implementation process and implementation principle may refer to aforementioned embodiments one In implementation process and implementation principle description, repeat part repeat no more.
In summary, the scheme in above-mentioned embodiment proposed by the invention has the advantage that:
Piecemeal uploads advantage:Monolithic uploads failure and can retransmitted from block, without whole file retransmission, that is, supports breakpoint to continue Pass, save Internet resources;Burst uploads advantage:Monolithic size is smaller, it is ensured that single file piece asks (i.e. http post requests) Message packets are smaller, are difficult to be influenceed by network quality, and success rate is high;Multitask asynchronous upload advantage:Multitask is to blocks of files Upload, be independent of each other between task respectively, uploading rate is greatly promoted in the case of network condition is allowed.So, the present invention is effectively Overcome various shortcoming of the prior art and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as Into all equivalent modifications or change, should by the present invention claim be covered.

Claims (9)

1. a kind of file uploading method, it is characterised in that including:
One first file divide in a client and obtains N number of blocks of files and each blocks of files is carried out to divide To M file piece, wherein, M and N take positive integer;
The client starts N number of task come an each blocks of files progress for being divided into M file piece for a pair according to N number of blocks of files Burst is uploaded to a server, wherein, the N number of task is asynchronous to be carried out, it is every uploaded a file piece after, the client pair The file piece uploads front and rear data check value to determine whether the file piece being uploaded in the server is correct;
After the completion of N number of blocks of files is all uploaded, N number of blocks of files is reassembled into one by server described in the client request Second file, and determine whether first file uploads into according to the file verification value of second file and the first file Work(.
2. file uploading method according to claim 1, it is characterised in that:Uploaded in the task of client executing one The process of one blocks of files is specifically included:
The client sends a file piece according to the task, and the file piece is contained in a task requests, for indicating The server creates a blocks of files buffer area according to the task requests, and the file piece is buffered in into the blocks of files Buffer area, wherein, after the completion of each file piece caching, the server will calculate the first check value of the file piece, and By first check value and next blocks of files the client is given in a buffer address of the blocks of files buffer area;
The client receives first check value and buffer address, and according to the file piece generation one second just uploaded Check value, when second check value is consistent with the first check value, the buffer address and next file piece are combined After upload.
3. file uploading method according to claim 2, it is characterised in that:Server described in the client request is generated The process of second file is specifically included:
The client sends file generated request, the stripe sequence for asking to carry N number of blocks of files, for referring to Show that the N number of blocks of files of correspondence in N number of blocks of files buffer area is reassembled into one second by the server according to the stripe sequence File, according to the file verification value of the second file generated one first, and returns to client by the first file verification value;
Client receives the first file verification value, and it is entered with the one second file verification value according to the first file generated Row compares, if unanimously, pointing out to upload successfully, if inconsistent, points out to upload failure.
4. a kind of file uploads device, client-side is arranged at, it is characterised in that the file, which uploads device, to be included:
File division module, for one first file divide obtaining N number of blocks of files and entering each blocks of files Row division obtains M file piece, wherein, M and N take positive integer;
Blocks of files uploading module, each of M file piece is divided into for a pair for starting N number of task according to N number of blocks of files come 1 Blocks of files carries out burst and is uploaded to a server, wherein, the N number of task is asynchronous to be carried out, it is every uploaded a file piece after, institute The data check value before and after client uploads the file piece is stated to determine whether is the file piece that is uploaded in the server Correctly;
File verification module, after the completion of all being uploaded in N number of blocks of files, server will be N number of described in the client request Blocks of files is reassembled into one second file, and described in being determined according to the file verification value of second file and the first file Whether the first file uploads success.
5. file according to claim 4 uploads device, it is characterised in that the blocks of files uploading module is specifically included:
File piece uploading unit, for sending a file piece according to the task, the file piece is contained in a task requests, A blocks of files buffer area is created for indicating the server according to the task requests, and the file piece is buffered in institute Blocks of files buffer area is stated, wherein, after the completion of each file piece caching, the server will calculate the first school of the file piece Value is tested, and the client is given in a buffer address of the blocks of files buffer area by first check value and next blocks of files End;
File piece verification unit, for receiving first check value and buffer address, and according to the file piece just uploaded One second check value is generated, when second check value is consistent with the first check value, by the buffer address and next file Piece is uploaded after being combined.
6. file according to claim 5 uploads device, it is characterised in that:
File generated request unit, for sending file generated request, the division for asking to carry N number of blocks of files Sequentially, for indicating that the server will the N number of blocks of files of correspondence group again in N number of blocks of files buffer area according to the stripe sequence One second file is synthesized, according to the file verification value of the second file generated one first, and the first file verification value is returned Back to client;
File generated verification unit, for receiving the first file verification value, and by itself and one according to the first file generated Second file verification value is compared, if unanimously, pointing out to upload successfully, if inconsistent, points out to upload failure.
7. a kind of document receiving method, it is characterised in that including:
One file piece is received according to a task, the file piece is buffered in and cached according to a blocks of files of the task creation Area, wherein, after the completion of file piece caching, calculate one first check value of the once file piece, and by described first Check value and next blocks of files give the client in a buffer address of the blocks of files buffer area;
File generated request is received, the stripe sequence for the blocks of files for asking to carry according to the file generated is by each file Corresponding blocks of files is reassembled into one second file in block buffer area, and according to the file school of the second file generated one first Value is tested, the first file verification value is returned into client.
8. a kind of file reception device, is arranged at server side, it is characterised in that the file reception device includes:
File piece receiving unit, for receiving a file piece according to a task, the file piece is buffered according to the task The blocks of files buffer area created, wherein, after the completion of file piece caching, calculate once one first school of the file piece Value is tested, and the client is given in a buffer address of the blocks of files buffer area by first check value and next blocks of files End;
File generating unit, receives file generated request, and the division for the blocks of files for asking to carry according to the file generated is suitable Corresponding blocks of files in each blocks of files buffer area is reassembled into one second file by sequence, and is given birth to according to second file Into one first file verification value, the first file verification value is returned into client.
9. a kind of file uploading system, including a server and at least client that is connected with the server network, it is special Levy and be:
The client includes any described files of claim 4-6 and uploads device;
The server includes the file reception device described in claim 8.
CN201710404052.9A 2017-06-01 2017-06-01 The quick upload of file is realized between clients and servers Pending CN107172174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710404052.9A CN107172174A (en) 2017-06-01 2017-06-01 The quick upload of file is realized between clients and servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710404052.9A CN107172174A (en) 2017-06-01 2017-06-01 The quick upload of file is realized between clients and servers

Publications (1)

Publication Number Publication Date
CN107172174A true CN107172174A (en) 2017-09-15

Family

ID=59821197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710404052.9A Pending CN107172174A (en) 2017-06-01 2017-06-01 The quick upload of file is realized between clients and servers

Country Status (1)

Country Link
CN (1) CN107172174A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN109714330A (en) * 2018-12-24 2019-05-03 武汉烽火众智数字技术有限责任公司 A kind of breaker point continuous transmission method and system of across a network
CN110018880A (en) * 2018-01-09 2019-07-16 阿里巴巴集团控股有限公司 IO thread execution method and device
CN110535890A (en) * 2018-05-23 2019-12-03 杭州海康威视***技术有限公司 The method and apparatus that file uploads
CN111083143A (en) * 2019-12-17 2020-04-28 北京思维造物信息科技股份有限公司 Request response method, device, equipment and storage medium
CN111610970A (en) * 2019-02-22 2020-09-01 广东真才企链信息科技有限公司 Method for asynchronously submitting large data scale list package
CN113076283A (en) * 2021-04-06 2021-07-06 中移(上海)信息通信科技有限公司 File consistency verification method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110261775A1 (en) * 2009-02-27 2011-10-27 Ki Hwan Kim Method and apparatus for transmitting signals segmentation
CN102281121A (en) * 2010-06-13 2011-12-14 中兴通讯股份有限公司 Method, equipment and system for transmitting and verifying data file
CN102546783A (en) * 2011-12-28 2012-07-04 深圳市新为软件有限公司 Course resource downloading method, course resource clients, server and system
CN103595661A (en) * 2013-11-28 2014-02-19 杭州华三通信技术有限公司 Message fragmentation restructuring method and device
CN104022852A (en) * 2014-06-25 2014-09-03 北京奇艺世纪科技有限公司 Document transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110261775A1 (en) * 2009-02-27 2011-10-27 Ki Hwan Kim Method and apparatus for transmitting signals segmentation
CN102281121A (en) * 2010-06-13 2011-12-14 中兴通讯股份有限公司 Method, equipment and system for transmitting and verifying data file
CN102546783A (en) * 2011-12-28 2012-07-04 深圳市新为软件有限公司 Course resource downloading method, course resource clients, server and system
CN103595661A (en) * 2013-11-28 2014-02-19 杭州华三通信技术有限公司 Message fragmentation restructuring method and device
CN104022852A (en) * 2014-06-25 2014-09-03 北京奇艺世纪科技有限公司 Document transmission method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN110018880A (en) * 2018-01-09 2019-07-16 阿里巴巴集团控股有限公司 IO thread execution method and device
CN110018880B (en) * 2018-01-09 2023-04-14 阿里巴巴集团控股有限公司 IO thread execution method and device
CN110535890A (en) * 2018-05-23 2019-12-03 杭州海康威视***技术有限公司 The method and apparatus that file uploads
CN110535890B (en) * 2018-05-23 2022-02-11 杭州海康威视***技术有限公司 File uploading method and device
CN109714330A (en) * 2018-12-24 2019-05-03 武汉烽火众智数字技术有限责任公司 A kind of breaker point continuous transmission method and system of across a network
CN109714330B (en) * 2018-12-24 2021-07-23 武汉烽火众智数字技术有限责任公司 Cross-network breakpoint resume method and system
CN111610970A (en) * 2019-02-22 2020-09-01 广东真才企链信息科技有限公司 Method for asynchronously submitting large data scale list package
CN111083143A (en) * 2019-12-17 2020-04-28 北京思维造物信息科技股份有限公司 Request response method, device, equipment and storage medium
CN111083143B (en) * 2019-12-17 2022-10-21 北京思维造物信息科技股份有限公司 Request response method, device, equipment and storage medium
CN113076283A (en) * 2021-04-06 2021-07-06 中移(上海)信息通信科技有限公司 File consistency verification method and device and electronic equipment
CN113076283B (en) * 2021-04-06 2022-02-18 中移(上海)信息通信科技有限公司 File consistency verification method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN107172174A (en) The quick upload of file is realized between clients and servers
CN109922053A (en) Data transmission method, device, electronic equipment and readable storage medium storing program for executing
CN104219215B (en) A kind of method for building up of TCP connection, device, terminal, server and system
CN105471964A (en) Data pushing method, server, client and data pushing system
CN110233881A (en) Service request processing method, device, equipment and storage medium
CN110351379B (en) Communication control method and device, electronic equipment and storage medium
WO2023093879A1 (en) Data transmission method and apparatus, device, and storage medium
CN102394880A (en) Method and device for processing jump response in content delivery network
CN108809766A (en) A kind of method, apparatus and system obtaining RTT
CN103384181A (en) Data packet transmission method and device
CN107995233B (en) Method for establishing connection and corresponding equipment
CN103688509A (en) Acquiring method, supply method, device and system for business content
CN106453668A (en) Reverse file uploading method and system
CN104205743A (en) Method and apparatus for content delivery in radio access networks
CN109547172A (en) Data transmission method, system and data transmitting equipment, data receiver
CN105635222A (en) Cloud terminal upgrading method and system, network management server and proxy server
CN102891851A (en) Access control method, equipment and system of virtual desktop
CN113452778B (en) Session holding method, device, equipment, system and storage medium
CN111917859B (en) Data transmission method and device, computer equipment and storage medium
US8762449B2 (en) Method of downloading large size data to a large number of networked client machines from a single server
CN101510872B (en) Remote customer dialing authentication service client terminal, server and transmission/acceptance method
CN103580817A (en) Data transmission method, device and system and relevant equipment
CN106302432B (en) A kind of communication device and control method based on car networking
CN103841139A (en) Data transmission method, device and system
CN105933298B (en) Apparatus and method for performing transmission control protocol handshaking

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20200922

AD01 Patent right deemed abandoned