CN104363271B - Document breakpoint transmission method and device - Google Patents
Document breakpoint transmission method and device Download PDFInfo
- Publication number
- CN104363271B CN104363271B CN201410593386.1A CN201410593386A CN104363271B CN 104363271 B CN104363271 B CN 104363271B CN 201410593386 A CN201410593386 A CN 201410593386A CN 104363271 B CN104363271 B CN 104363271B
- Authority
- CN
- China
- Prior art keywords
- downloaded
- file
- data
- message digest
- breakpoint
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/59—Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention belongs to communication technical field, there is provided a kind of document breakpoint transmission method and device, methods described include:The download instruction information of file to be downloaded is received, the downloading data according to corresponding to the download instruction information obtains the file to be downloaded in local storage;The message digest information of downloading data described in calculating;When the message digest information is identical with the message digest information stored during Transmission, the non-downloading data of the file to be downloaded is downloaded from breakpoint.The above method is realized before breakpoint transmission to the detection and verification of the integrality of the downloading data of file to be downloaded being stored in local storage, so as to ensure that the availability of file that breakpoint transmission obtained, improve the security of breakpoint transmission file, and reduce unnecessary network transmission, save Internet resources.
Description
Technical field
The invention belongs to communication technical field, more particularly to a kind of document breakpoint transmission method and device.
Background technology
Existing Android phone generally realizes the breakpoint transmission of file in such a way:In file Transmission,
Record the deviation post of downloading data hereof;Subsequently initiate when re-downloading, then to pass through the record to this document
The deviation post of the file is obtained, the file is downloaded since the deviation post.
Prior art during document breakpoint transmission, if what the downloading data in local storage was surprisingly changed
Words, it is easy to which the whole file obtained by causing after breakpoint transmission is invalid, both wastes Internet resources, there is also certain
Potential safety hazard.
The content of the invention
In consideration of it, the embodiment of the present invention provides a kind of document breakpoint transmission method and device, with realize breakpoint transmission it
The integrality and availability of the downloading data of preceding detection and verification in local storage, improve the safety of breakpoint transmission file
Property, and save Internet resources.
First aspect, there is provided a kind of document breakpoint transmission method, methods described include:
The download instruction information of file to be downloaded is received, institute is obtained in local storage according to the download instruction information
State corresponding to file to be downloaded downloading data;
The message digest information of downloading data described in calculating;
When the message digest information is identical with the message digest information stored during Transmission, downloaded from breakpoint
The non-downloading data of the file to be downloaded.
Further, also include before the download instruction information for receiving file to be downloaded:
The solicited message for downloading the file to be downloaded is sent to server, described treat down is carried in the solicited message
The uniform resource position mark URL of published article part;
Receive the data for the file to be downloaded that the server returns, and by the file to be downloaded received
Data are saved in local storage;
The message digest information for the downloading data being saved in described in calculating in local storage, and store the message and pluck
Want information.
Further, during the data for the file to be downloaded that the reception server returns, if in data transfer
Disconnected, then methods described also includes:
The breakpoint information of the file to be downloaded is obtained, and stores the breakpoint information;
Wherein, deviation post of the breakpoint information including downloading data relative to file to be downloaded head.
It is further, described when the message digest information is identical with the message digest information stored during Transmission,
The non-downloading data of the download file to be downloaded is specially from breakpoint:
Obtain the deviation post of the file to be downloaded;
Data of the file to be downloaded after the deviation post are downloaded from server, and the data downloaded are protected
It is stored in local storage.
Further, methods described also includes:
When the message digest information stored in the message digest information being calculated and Transmission differs, carry
Show that user is stored in downloading data destroyed corresponding to the file to be downloaded in local storage, and prompt user to cancel
Current breakpoint transmission re-downloads the file to be downloaded.
Second aspect, there is provided a kind of document breakpoint transmission device, described device include:
Acquisition module, for receiving the download instruction information of file to be downloaded, according to the download instruction information in local
Downloading data is obtained corresponding to the file to be downloaded in memory;
Computing module, for calculating the message digest information of the downloading data;
Download module, for when the message digest information is identical with the message digest information stored during Transmission,
The non-downloading data of the file to be downloaded is downloaded from breakpoint.
Further, the download module is additionally operable to:
The solicited message for downloading the file to be downloaded is sent to server, described treat down is carried in the solicited message
The uniform resource position mark URL of published article part;The data for the file to be downloaded that the server returns are received, and will be received
The data of the file to be downloaded be saved in local storage;The download number being saved in described in calculating in local storage
According to message digest information;And the storage message digest information.
Further, described device also includes:
Logging modle, for the file to be downloaded returned in the reception server data during occur data pass
During defeated interruption, the breakpoint information of the file to be downloaded is obtained, and stores the breakpoint information;
Wherein, deviation post of the breakpoint information including downloading data relative to file to be downloaded head.
Further, it is characterised in that the download module is specifically used for:
When the message digest information is identical with the message digest information stored during Transmission, obtain described to be downloaded
The deviation post of file;
Data of the file to be downloaded after the deviation post are downloaded from server, and the data downloaded are protected
It is stored in local storage.
Further, described device also includes:
Reminding module, the message digest for being stored in the message digest information being calculated and Transmission are believed
When breath differs, user is prompted to be stored in downloading data destroyed corresponding to the file to be downloaded in local storage,
And user is prompted to cancel current breakpoint transmission or re-download the file to be downloaded.
Compared with prior art, the embodiment of the present invention adds the verification to downloading data in breakpoint transmission, passes through
After the download instruction information of file to be downloaded is received, according to the download instruction information obtains in local storage
Downloading data corresponding to file to be downloaded;And the message digest information of downloading data described in calculating;In the message digest
When information is identical with the message digest information stored during Transmission, then downloaded from breakpoint the file to be downloaded not under
Data are carried, it is achieved thereby that to the downloading data of file to be downloaded that is stored in local storage before breakpoint transmission
The detection and verification of integrality, the availability for the file that breakpoint transmission is obtained is ensure that, improve the peace of breakpoint transmission file
Quan Xing, and reduce unnecessary network transmission, save Internet resources.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the first implementation process figure of the document breakpoint transmission method that the embodiment of the present invention one provides;
Fig. 2 is the second implementation process figure of the document breakpoint transmission method that the embodiment of the present invention two provides;
Fig. 3 is the composition structure chart for the document breakpoint transmission device that the embodiment of the present invention three provides.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The embodiment of the present invention adds the verification to downloading data in breakpoint transmission, by receiving text to be downloaded
After the download instruction information of part, according to corresponding to the download instruction information obtains the file to be downloaded in local storage
Downloading data;The message digest information of downloading data described in calculating;In the message digest information with being deposited during Transmission
When the message digest information of storage is identical, then the non-downloading data of the file to be downloaded is downloaded from breakpoint.The present invention realizes
Before breakpoint transmission to the detection of the integrality of the downloading data of file to be downloaded that is stored in local storage and
Verification, ensure that the availability of downloading data, improves the security of breakpoint transmission file.The embodiment of the present invention additionally provides
Corresponding document breakpoint transmission device, is described in detail individually below.
In the present embodiment, the SHA SHA (Secure Hash Algorithm) is American National safety
Office's design, a series of Cryptographic Hash Functions of National Institute of Standards and Technology's issue.The algorithm initially stated clearly is in 1993
Year issue, referred to as secure hash standard (Secure Hash Standard), FIPS PUB180, this version is referred to as " SHA-
0”.Revision version FIPS PUB180-1 (commonly referred to as SHA-1) described FIPS PUB180 of substitution of nineteen ninety-five issue, have modified
The mistake of cipher safety can be reduced in primal algorithm.SHA-0 and SHA-1 can produce from the message of a maximum 2^64 bit
The message digest of raw a string of 64 bits.The embodiment of the present invention be obtained by running the SHA SHA-1 it is described
The message digest of the downloading data of file to be downloaded, whether become with the downloaded file data judged in current storage
Change.
Embodiment one
Fig. 1 shows the first implementation process of the document breakpoint transmission method that the embodiment of the present invention one provides;For the ease of
Illustrate, illustrate only part related to the present invention.
In the present embodiment, methods described is applied in the smart machine with android system.The smart machine bag
Include but be not limited to audio-visual devices (such as blue light player, DVD player, HDTV, set top box, multimedia television box
Deng), mobile phone, pocket computer (Pocket personal Computer, PPC), palm PC, personal digital assistant
(Personal Digital Assistant, PDA) etc., can be with internet, LAN connection communication.
As shown in figure 1, when carrying out the breakpoint transmission of file to be downloaded, methods described includes:
In step S101, the download instruction information of file to be downloaded is received, according to the download instruction information in local
Downloading data is obtained corresponding to the file to be downloaded in memory.
In the present embodiment, the interruption of document transmission process can be due to network failure, the user mode such as pause manually
It is caused.Accordingly, the download instruction information can be network recovery after automatically generate, or user manually side
Formula (for example click on the download start button shown by smart machine display screen or the download start button on control panel
Deng) input download instruction.
File to be downloaded for needing breakpoint transmission, one part data, which have been downloaded, to be finished, and is stored in local (i.e. intelligence
Can equipment) in memory, and a remaining part is not downloaded.The local storage can be in the smart machine that user specifies
Any store path.The store path of the downloading data of the file to be downloaded is not limited herein.
In the present embodiment, after the download instruction information for receiving file to be downloaded, then according to the download instruction information
Downloading data is obtained corresponding to the file to be downloaded from local storage.
In step s 102, the message digest information of downloading data described in calculating.
Because the downloading data being stored in local storage may be changed, it is therefore desirable to which checking is currently in memory
In downloading data it is whether complete.The embodiment of the present invention is after current downloading data in memory is got, preferably
The message digest information of current downloading data in memory is calculated using secure hash SHA-1 algorithms, is specially:With pre-
If the downloading data is irreversibly converted into smaller ciphertext, and the ciphertext is converted into length is shorter, position
The message digest of number fixed output sequence, preferably 160 bits, is designated as SHA-1 values.
In step s 103, when the message digest information is identical with the message digest information stored during Transmission,
The non-downloading data of the file to be downloaded is downloaded from breakpoint.
In the present embodiment, recorded under all being produced corresponding to one for the data being successfully downloaded in local storage
Record, and each Download History is preserved in the local database.Wherein, a Download History contains the system of file to be downloaded
One URLs URL, the download initial time of the data and download deadline, the download shape of the file to be downloaded
State, file to be downloaded are downloading data relative to file header in local store path, breakpoint information etc., the breakpoint information
The offset in portion, the download state, which includes downloading, to be completed and downloads not completing.Further, in order to record downloading data
Essential information, the embodiment of the present invention will calculate the message digest information of downloading data by SHA-1 algorithms, and in the number
According to a check field is added in storehouse, for preserving and recording the message digest information of the downloading data, i.e. SHA-1 values.
Because data constantly can be write into local storage in downloading process, therefore whenever there is new data block to be successfully downloaded to this
In ground memory, then message digest corresponding to the data block and downloading data before is calculated by the SHA
Information, while the message information being newly calculated with this updates the data the check field in storehouse.
Therefore, before the breakpoint transmission of file to be downloaded is carried out, the embodiment of the present invention will add from local data base
Check field in the message digest information of the downloading data that is recorded when extracting Transmission;And it will be calculated
Compared with the message digest information that message digest information stores when the Transmission extracted.
Different data contents, its message digest information being calculated by SHA SHA-1 is to differ
's.Therefore, if downloaded file data change, then the message digest information being calculated by SHA-1 algorithms
Differ, whether the current downloading data so as to judge in local storage is changed.If calculate
When obtained message digest information is identical with the message digest information stored during Transmission, then current download number is can determine that
According to being complete, do not change, then the non-downloading data of the file to be downloaded is downloaded from breakpoint;Otherwise, sentence
Downloading data before settled is that incorrect, i.e., current downloading data has been altered.
In the present embodiment, if current downloading data is complete, obtained from the Download History of local data base
The breakpoint information of the file to be downloaded is taken, to obtain the deviation post of the file to be downloaded;And using the deviation post as
Starting point, the data after the deviation post are downloaded from server, realize the breakpoint transmission of file to be downloaded;And it will download
Data are saved in local storage.
By above-mentioned steps, before breakpoint transmission is carried out to file to be downloaded, pass through SHA SHA-1 first
The integrality of current downloading data in local storage is detected and verified, to judge the file to be downloaded at this
Whether the download part in ground memory is complete.It is described download part is complete when, then from the bits of offset that records when interrupting
Put and downloaded the file to be downloaded, so as to ensure that the whole file that breakpoint transmission is obtained is complete, available, reduced
The security risk that file is maliciously tampered and brought, improve the security of breakpoint transmission file.
Preferably, in the message digest information being calculated and the message digest information that is stored during Transmission not phase
Meanwhile methods described also includes:
Prompt user to be stored in downloading data destroyed corresponding to the file to be downloaded in local storage, and carry
Show that user cancels current breakpoint transmission or re-downloads the file to be downloaded.
By above-mentioned steps, when the downloading data in local storage changes, user can be notified in time
Downloading data destroyed so that user can cancel current breakpoint transmission or re-download the file to be downloaded, from
And reduce unnecessary network transmission, Internet resources are saved, also save the time of user.
The embodiment of the present invention adds the verification to downloading data in breakpoint transmission, by receiving text to be downloaded
After the download instruction information of part, according to corresponding to the download instruction information obtains the file to be downloaded in local storage
Downloading data;The message digest information of downloading data described in calculating;In the message digest information with being deposited during Transmission
When the message digest information of the downloading data of storage is identical, then that the file to be downloaded is downloaded from breakpoint does not download number
According to;Realize before breakpoint transmission to the integrality of the downloading data of file to be downloaded that is stored in local storage
Detection and verification, so as to ensure that the availability of file that breakpoint transmission obtained, the security of breakpoint transmission file is improved,
And reduce unnecessary network transmission, save Internet resources.
Embodiment two
Fig. 2 shows the second implementation process of the document breakpoint transmission method that the embodiment of the present invention two provides.Fig. 2 gives
The complete procedure interrupted to document breakpoint transmission occurs for document transmission process, and for convenience of description, illustrate only and the present invention
Related part.
As shown in Fig. 2 methods described includes:
In step s 201, the solicited message for downloading the file to be downloaded is sent to server.
Wherein, the uniform resource position mark URL of the file to be downloaded is carried in the solicited message.
In step S202, the data for the file to be downloaded that the server returns, and the institute that will be received are received
The data for stating file to be downloaded are saved in local storage.
In step S203, the downloading data that is saved according to calculating SHA in local storage
Message digest information, and store the message digest information.
In the present embodiment, whenever thering is a new data block to be written to local storage, then calculated by secure hash
Method calculates message digest information corresponding to the new data block and its all downloading datas before, and the message is plucked
Information storage is wanted into local data base.
In step S204, judge whether data transfer interrupts.
When judged result is to be, step S205 is performed;Otherwise, return to step S202.
In step S205, the breakpoint information of the file to be downloaded is obtained, and stores the breakpoint information.
Preferably, deviation post of the breakpoint information including downloading data relative to file to be downloaded head.
The file to be downloaded that caused or user manually inputs after network recovery is received again
Download instruction when, methods described also includes:
In step S206, the download instruction information of file to be downloaded is received, according to the download instruction information in local
Downloading data is obtained corresponding to the file to be downloaded in memory.
In step S207, by SHA calculate described in downloading data message digest information.
In step S208, the message digest information that is calculated described in judgement and the message digest stored during Transmission
Whether information is identical.
When judged result is to be, step S209 is performed;Otherwise, step S210 is performed.
In step S209, the non-downloading data of the file to be downloaded is downloaded from breakpoint.
In the present embodiment, if current downloading data is complete, obtained from the Download History of local data base
The breakpoint information of the file to be downloaded is taken, to obtain the deviation post of the file to be downloaded;And using the deviation post as
Starting point, the data after the deviation post are downloaded from server, realize the breakpoint transmission of file to be downloaded;And by the data
It is saved in local storage.
By above-mentioned steps, before breakpoint transmission is carried out to file to be downloaded, pass through SHA SHA-1 first
The integrality of download part of the file to be downloaded in local storage is detected and verified, to be treated described in judgement
Whether complete download download part of the file in local storage.It is described download part is complete when, then from transmission
The deviation post stored when disconnected, which rises, downloads the file to be downloaded, so as to ensure that the whole file that breakpoint transmission obtains is complete
, it is available, reduce the security risk that file is maliciously tampered and brought, improve the security of breakpoint transmission file.
In step S210, number has been downloaded corresponding to the file to be downloaded that prompting user is stored in local storage
According to destroyed, and user is prompted to cancel current breakpoint transmission or re-download the file to be downloaded.
When downloading data in local storage changes, the embodiment of the present invention can also notify user in time
Downloading data destroyed so that user can cancel current breakpoint transmission or re-download the file to be downloaded, so as to
Reduce unnecessary network transmission, save Internet resources, also save the time of user, greatly improved user's body
Test.
SHA is applied in breakpoint transmission by the embodiment of the present invention, refers in the download for receiving file to be downloaded
After making information, number has been downloaded according to corresponding to the download instruction information obtains the file to be downloaded in local storage
According to;And by SHA calculate described in downloading data message digest information;In the message digest information with passing
When the message digest information of the downloading data stored during defeated interruption is identical, then the file to be downloaded is resumed from breakpoint
Non- downloading data, realize before breakpoint transmission to the complete of the downloading data of file to be downloaded that is stored in local storage
The detection and verification of whole property, so as to ensure that the availability of file that breakpoint transmission obtained, improve breakpoint transmission file
Security, and reduce unnecessary network transmission, save Internet resources.
Embodiment three
Fig. 3 shows the composition structure for the document breakpoint transmission device that the embodiment of the present invention three provides, for convenience of description,
It illustrate only part related to the present invention.
In embodiments of the present invention, described device is used to realize the document breakpoint transmission side described in Fig. 1 or Fig. 2 embodiments
Method, it can be built in the smart machine with android system.The smart machine includes but is not limited to audio-visual devices (ratio
Such as blue light player, DVD player, HDTV, set top box, multimedia television box), mobile phone, pocket computer
(Pocket personal Computer, PPC), palm PC, personal digital assistant (Personal Digital
Assistant, PDA) etc., can be with internet, LAN connection communication.
As shown in figure 3, described device includes:
Download module 31, the solicited message of the file to be downloaded is downloaded for being sent to server;Receive the service
The data for the file to be downloaded that device returns, and the data of the file to be downloaded received are saved in local storage
In;The message digest information for the downloading data being saved in described in calculating in local storage;And the storage message digest
Information.
Wherein, the uniform resource position mark URL of the file to be downloaded is carried in the solicited message.
Preferably, the embodiment of the present invention is preferably saved in local storage using described in SHA SHA-1 calculating
In downloading data message digest information.
During the data for the file to be downloaded that the reception server returns, if data transfer is interrupted, institute
The breakpoint information that device will record the file to be downloaded is stated, therefore, described device also includes:
Logging modle 32, data occur during the data for the file to be downloaded returned in the reception server
During Transmission, the breakpoint information of the file to be downloaded is obtained, and stores the breakpoint information.
Wherein, deviation post of the breakpoint information including downloading data relative to file to be downloaded head.
The file to be downloaded that caused or user manually inputs after network recovery is received again
Download instruction when, described device also includes:
Acquisition module 33, for receiving the download instruction information of file to be downloaded, according to the download instruction information at this
Downloading data is obtained corresponding to the file to be downloaded in ground memory.
Computing module 34, for calculating the message digest information of the downloading data.
The embodiment of the present invention is preferably using the message digest of downloading data is believed described in SHA SHA-1 calculating
Breath.
The download module 31 is additionally operable to:The message digest information stored in the message digest information and Transmission
When identical, the non-downloading data of the file to be downloaded is downloaded from breakpoint.
Preferably, the embodiment of the present invention also includes:
Judge module 35, for judging that the message digest information being calculated is plucked with the message stored during Transmission
Want information whether identical.
Preferably, when the judged result of judge module is is, the download module 31 is specifically used for:
Obtain the deviation post of the file to be downloaded;
Data of the file to be downloaded after the deviation post are downloaded from server, and the data are saved in
In local storage.
By above-mentioned module, before breakpoint transmission is carried out to file to be downloaded, pass through SHA SHA-1 first
The integrality of download part of the file to be downloaded in local storage is detected and verified, to be treated described in judgement
Whether complete download download part of the file in local storage.It is described download part is complete when, then from interrupt when
The deviation post of record, which rises, downloads the file to be downloaded, so as to ensure that the whole file obtained by breakpoint transmission is complete
, it is available, reduce the security risk that file is maliciously tampered and brought, improve the security of breakpoint transmission file.
Preferably, when the judged result of the judge module 35 is no, described device can also provide downloading data quilt
The prompt message of destruction, therefore, described device also includes:
Reminding module 36, for the message digest stored in the message digest information being calculated and Transmission
When information differs, downloading data has been broken corresponding to the file to be downloaded that prompting user is stored in local storage
It is bad, and prompt user to cancel current breakpoint transmission or re-download the file to be downloaded.
By the reminding module, user has been notified in time when the downloading data in local storage changes
Downloading data destroyed so that user can cancel current breakpoint transmission or re-download the file to be downloaded, so as to
Reduce unnecessary network transmission, save Internet resources, also save the time of user, greatly improved user's body
Test.
It should be noted that the device in the embodiment of the present invention can be used for realizing whole skills in above method embodiment
Art scheme, the function of its each functional module can be implemented according to the method in above method embodiment, and it is implemented
Process can refer to the associated description in above-described embodiment, and here is omitted.
SHA is applied in breakpoint transmission by the embodiment of the present invention, refers in the download for receiving file to be downloaded
After making information, number has been downloaded according to corresponding to the download instruction information obtains the file to be downloaded in local storage
According to;And by SHA calculate described in downloading data message digest information;In the message digest information with passing
When the message digest information of the downloading data recorded during defeated interruption is identical, then the file to be downloaded is downloaded from server
Non- download part;Realize before breakpoint transmission to the downloading data of file to be downloaded that is stored in local storage
The detection and verification of integrality, so as to ensure that the availability of file that breakpoint transmission obtained, improve breakpoint transmission file
Security, and reduce unnecessary network transmission, save Internet resources.
Those of ordinary skill in the art are further appreciated that all or part of step realized in above-described embodiment method is can
To instruct the hardware of correlation to complete by program, described program can be stored in a computer read/write memory medium
In, described storage medium, including ROM/RAM, disk, CD etc..
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention.For example, modules are only
Divided according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized;Separately
Outside, the specific name of each functional module is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
All any modification, equivalent and improvement made within the spirit and principles of the invention etc., should be included in
Within protection scope of the present invention.
Claims (8)
- A kind of 1. document breakpoint transmission method, it is characterised in that methods described includes:The solicited message for downloading file to be downloaded is sent to server, the file to be downloaded is carried in the solicited message Uniform resource position mark URL;Receive the data for the file to be downloaded that the server returns, and by the data of the file to be downloaded received It is saved in local storage;The message digest information for the downloading data being saved according to calculating SHA in local storage, and The message digest information is stored in local data base;The download instruction information of the file to be downloaded is received, institute is obtained in local storage according to the download instruction information State the downloading data corresponding to file to be downloaded;By the SHA, the message digest information of downloading data is calculated described in current time;When the message digest information being calculated is identical with the message digest information stored during Transmission, from disconnected The non-downloading data for downloading the file to be downloaded is acted at point.
- 2. document breakpoint transmission method as claimed in claim 1, it is characterised in that under being treated described in being returned in the reception server Publish papers during the data of part, if data-transmission interruptions, methods described also includes:The breakpoint information of the file to be downloaded is obtained, and stores the breakpoint information;Wherein, deviation post of the breakpoint information including downloading data relative to file to be downloaded head.
- 3. document breakpoint transmission method as claimed in claim 1 or 2, it is characterised in that described in the message digest information When identical with the message digest information stored during Transmission, the non-downloading data of the file to be downloaded is downloaded from breakpoint Specially:Obtain the deviation post of the file to be downloaded;Data of the file to be downloaded after the deviation post are downloaded from server, and the data downloaded are saved in In local storage.
- 4. document breakpoint transmission method as claimed in claim 1, it is characterised in that methods described also includes:When the message digest information stored in the message digest information being calculated and Transmission differs, prompt to use Family is stored in downloading data destroyed corresponding to the file to be downloaded in local storage, and it is current to prompt user to cancel Breakpoint transmission or re-download the file to be downloaded.
- 5. a kind of document breakpoint transmission device, it is characterised in that described device includes:Acquisition module, for receiving the download instruction information of file to be downloaded, it is being locally stored according to the download instruction information Downloading data is obtained corresponding to the file to be downloaded in device;Computing module, for by SHA, calculating described in current time the message digest information of downloading data;Download module, the solicited message of the file to be downloaded is downloaded for being sent to server, is carried in the solicited message There is the uniform resource position mark URL of the file to be downloaded;The data for the file to be downloaded that the server returns are received, And the data of the file to be downloaded received are saved in local storage;The guarantor is calculated according to SHA The message digest information for the downloading data being stored in local storage, and the message digest letter is stored in the local database Breath;It is additionally operable to identical with the message digest information stored during Transmission in the message digest information being calculated When, the non-downloading data of the download file to be downloaded from breakpoint.
- 6. document breakpoint transmission device as claimed in claim 5, it is characterised in that described device also includes:Logging modle, for the file to be downloaded returned in the reception server data during occur data transfer in When disconnected, the breakpoint information of the file to be downloaded is obtained, and store the breakpoint information;Wherein, deviation post of the breakpoint information including downloading data relative to file to be downloaded head.
- 7. the document breakpoint transmission device as described in claim 5 or 6, it is characterised in that the download module is specifically used for:When the message digest information is identical with the message digest information stored during Transmission, the file to be downloaded is obtained Deviation post;Data of the file to be downloaded after the deviation post are downloaded from server, and the data downloaded are saved in In local storage.
- 8. document breakpoint transmission device as claimed in claim 5, it is characterised in that described device also includes:Reminding module, in the message digest information being calculated and the message digest information stored during Transmission not When identical, user is prompted to be stored in downloading data destroyed corresponding to the file to be downloaded in local storage, and carry Show that user cancels current breakpoint transmission or re-downloads the file to be downloaded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410593386.1A CN104363271B (en) | 2014-10-28 | 2014-10-28 | Document breakpoint transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410593386.1A CN104363271B (en) | 2014-10-28 | 2014-10-28 | Document breakpoint transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104363271A CN104363271A (en) | 2015-02-18 |
CN104363271B true CN104363271B (en) | 2018-01-16 |
Family
ID=52530497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410593386.1A Active CN104363271B (en) | 2014-10-28 | 2014-10-28 | Document breakpoint transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104363271B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872041B (en) * | 2016-03-29 | 2019-11-05 | 广州酷狗计算机科技有限公司 | The processing method and processing device of operation object |
CN106250785A (en) * | 2016-08-17 | 2016-12-21 | 成都市和平科技有限责任公司 | The guard method of a kind of data interruption transmission and data storage based on this guard method |
CN107168739A (en) * | 2017-05-15 | 2017-09-15 | 万达百汇科技(深圳)有限公司 | POS, POS wireless communication module firmware upgrade method and device |
CN109426579A (en) | 2017-08-28 | 2019-03-05 | 西门子公司 | The interruption restoration methods of machine tooling file and the lathe for being applicable in this method |
CN108040115B (en) * | 2017-12-21 | 2021-03-02 | 北京华夏电通科技股份有限公司 | File transmission method and device |
CN111193777B (en) * | 2019-12-13 | 2021-02-05 | 佛山欧神诺云商科技有限公司 | File downloading method and device based on breakpoint continuous transmission and storage medium |
CN111262952B (en) * | 2020-03-27 | 2023-11-21 | 北京环鼎科技有限责任公司 | Breakpoint continuous loading method for downloading acoustic data file for storage logging |
CN111478751B (en) * | 2020-03-30 | 2023-03-24 | 百富计算机技术(深圳)有限公司 | Data breakpoint continuous transmission method and device and terminal equipment |
CN112272212B (en) * | 2020-09-30 | 2022-07-12 | 新华三信息安全技术有限公司 | File transmission method and device |
CN112291317B (en) * | 2020-10-19 | 2023-11-24 | 深圳市广和通无线股份有限公司 | Data downloading method, device, computer equipment and storage medium |
CN113132462B (en) * | 2021-03-15 | 2022-07-15 | 深圳震有科技股份有限公司 | File data transmission method, system and terminal equipment of 5G virtualized network element |
CN115484250A (en) * | 2021-05-31 | 2022-12-16 | 华为技术有限公司 | File transmission method, system, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155117A (en) * | 2006-09-15 | 2008-04-02 | 索尼株式会社 | Information processing equipment, download method, download breaking method and download recovering method |
CN101179393A (en) * | 2006-12-14 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for implementing document breakpoint transmission |
WO2010028571A1 (en) * | 2008-09-11 | 2010-03-18 | 华为技术有限公司 | Large data object transmission method, transmission system, transmitting device and receiving device |
CN103581242A (en) * | 2012-07-27 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Method, client-side equipment, server and system for uploading files |
CN103634407A (en) * | 2013-12-11 | 2014-03-12 | 北京荣之联科技股份有限公司 | Method and device for breakpoint resuming of cloud storage files |
-
2014
- 2014-10-28 CN CN201410593386.1A patent/CN104363271B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155117A (en) * | 2006-09-15 | 2008-04-02 | 索尼株式会社 | Information processing equipment, download method, download breaking method and download recovering method |
CN101179393A (en) * | 2006-12-14 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for implementing document breakpoint transmission |
WO2010028571A1 (en) * | 2008-09-11 | 2010-03-18 | 华为技术有限公司 | Large data object transmission method, transmission system, transmitting device and receiving device |
CN103581242A (en) * | 2012-07-27 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Method, client-side equipment, server and system for uploading files |
CN103634407A (en) * | 2013-12-11 | 2014-03-12 | 北京荣之联科技股份有限公司 | Method and device for breakpoint resuming of cloud storage files |
Also Published As
Publication number | Publication date |
---|---|
CN104363271A (en) | 2015-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104363271B (en) | Document breakpoint transmission method and device | |
US9223988B1 (en) | Extending browser functionality with dynamic on-the-fly downloading of untrusted browser components | |
CN101783801B (en) | Software protection method based on network, client side and server | |
EP3345114B1 (en) | Disabling malicious browser extensions | |
US8700897B2 (en) | Method and terminal equipment for applying digital rights management | |
US20120242459A1 (en) | Interrogating an authentication device | |
CN105426708A (en) | Reinforcing method of application program of Android system | |
WO2016053729A1 (en) | Method and system for secure management of computer applications | |
CN106161336A (en) | A kind of information updating method, Apparatus and system | |
CN101964789B (en) | Method and system for safely accessing protected resources | |
US20150244737A1 (en) | Detecting malicious advertisements using source code analysis | |
US9659189B2 (en) | Systems and methods of safeguarding user information while interacting with online service providers | |
KR20160058673A (en) | Method and apparatus for preventing injection-type attacks in a web based operating system | |
CN104391729B (en) | Programme upgrade method and device based on Root authority | |
CN111143869A (en) | Application package processing method and device, electronic equipment and storage medium | |
US20160330030A1 (en) | User Terminal For Detecting Forgery Of Application Program Based On Hash Value And Method Of Detecting Forgery Of Application Program Using The Same | |
CN108431819B (en) | Method and system for protecting client access to service of DRM agent of video player | |
CN108111622A (en) | A kind of method, apparatus and system for downloading whitepack library file | |
CN110336781A (en) | A kind of method and apparatus based on browser identification terminal uniqueness | |
CN113127844A (en) | Variable access method, device, system, equipment and medium | |
US20210374211A1 (en) | Drm sharing and playback service specification selection | |
CN103997483B (en) | A kind of information security control method, device and electronic equipment | |
CN111062030A (en) | Method and device for identifying tampering of application program | |
CN109218009B (en) | Method, client and server for improving equipment ID security | |
CN105975860B (en) | A kind of trust file management method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
CP03 | Change of name, title or address |