CN109413190A - File acquisition method, device, electronic equipment and storage medium - Google Patents
File acquisition method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109413190A CN109413190A CN201811309346.4A CN201811309346A CN109413190A CN 109413190 A CN109413190 A CN 109413190A CN 201811309346 A CN201811309346 A CN 201811309346A CN 109413190 A CN109413190 A CN 109413190A
- Authority
- CN
- China
- Prior art keywords
- file
- terminal
- fragmentation
- server
- file fragmentation
- 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.)
- Granted
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/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
-
- 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]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of file acquisition method, device, electronic equipment and storage mediums, belong to network technique field.This method comprises: obtaining target terminal number when receiving acquisition instruction, which refers to the total quantity of the first terminal Yu at least one second terminal;Based on the target terminal number and file identification, the first acquisition request is sent to server, which is used to indicate the server and is based on the target terminal number cutting file destination and obtains multiple file fragmentations;Receive the first file fragmentation in multiple file fragmentations of server transmission;The second file fragmentation is obtained from least one second terminal, which is sent at least one second terminal by the server;Based on first file fragmentation and the second file fragmentation obtained from least one second terminal, the file destination is generated.By server cutting file, multiple terminal shared file fragments improve file acquisition efficiency.
Description
Technical field
The present invention relates to network technique field, in particular to a kind of file acquisition method, device, electronic equipment and storage are situated between
Matter.
Background technique
With the development of network technology, user can obtain required file from network, for example, the installation of application program
Packet, video file etc..Under normal conditions, user can be downloaded in special downloading application, after being applied by the downloading
Platform server provides the file to be downloaded for the terminal of the user.
In the related technology, by taking the installation kit for obtaining application program as an example, the process of file is obtained are as follows: when user needs to obtain
When the installation kit of some application program, the program identification for the destination application that terminal is selected according to user is sent to server
Acquisition request.The server obtains the installation kit of the destination application according to the program identification, which is sent to this
Terminal, the terminal obtain the installation kit.
The above method is actually the process that terminal obtains file from server in real time, however, when a certain period services
When the downloading number of requests that device receives is more, for example, the server needs simultaneously to a large amount of at the beginning of certain game application is issued
Terminal send installation kit, it is practical even if the current network transmission rate of the server is larger, but for each terminal
Speed of download is still relatively slow, and user still needs to wait for longer acquisition time, causes file acquisition efficiency lower.
Summary of the invention
The embodiment of the invention provides a kind of file acquisition method, device, electronic equipment and storage mediums, are able to solve text
Part obtains the lower problem of efficiency.The technical solution is as follows:
On the one hand, provide a kind of file acquisition method, the method is applied on first terminal, the first terminal with
At least one second terminal establishes point-to-point communication connection, which comprises
When receiving acquisition instruction, target terminal number is obtained, the target terminal number refers to the first terminal and institute
State the total quantity of at least one second terminal;
Based on the target terminal number and file identification, the first acquisition request is sent to server, first acquisition is asked
It asks and is used to indicate the server based on the target terminal number cutting file destination and obtains multiple file fragmentations;
Receive the first file fragmentation in the multiple file fragmentation that the server is sent;
Obtain the second file fragmentation in the multiple file fragmentation from least one described second terminal, described second
File fragmentation is sent at least one described second terminal by the server, wherein server is sent to every second terminal
The second file fragmentation it is different;
Based on first file fragmentation and the second file fragmentation obtained from least one described second terminal, institute is generated
State file destination.
On the other hand, a kind of file acquisition method is provided, the method application is on the server, which comprises
The first acquisition request of first terminal is received, first acquisition request carries the file of file destination to be obtained
Mark and target terminal number, the target terminal number refer to the total quantity of the first terminal Yu at least one second terminal, institute
It states first terminal and establishes point-to-point communication at least one described second terminal and connect;
According to the file identification in first acquisition request, the file destination is obtained;
According to the target terminal number, the file destination is subjected to cutting, obtains multiple file fragmentations;
Send the first file fragmentation in the multiple file fragmentation to the first terminal, and to it is described at least one
Two terminals send the second file fragmentation in the multiple file fragmentation, wherein first file fragmentation and the second file fragmentation
For forming the file destination.
On the other hand, a kind of file acquisition device is provided, described device is applied on first terminal, the first terminal
It establishes point-to-point communication at least one second terminal to connect, described device includes:
Module is obtained, for when receiving acquisition instruction, obtaining target terminal number, the target terminal number refers to described
The total quantity of first terminal and at least one second terminal;
Sending module sends the first acquisition request, institute to server for being based on the target terminal number and file identification
The first acquisition request is stated to be used to indicate the server based on the target terminal number cutting file destination and obtain multiple files
Fragment;
Receiving module, for receiving the first file fragmentation in the multiple file fragmentation that the server is sent;
The acquisition module is also used to obtain in the multiple file fragmentation from least one described second terminal
Two file fragmentations, second file fragmentation are sent at least one described second terminal by the server, wherein server
The second file fragmentation for being sent to every second terminal is different;
Generation module, for based on first file fragmentation and the second text obtained from least one described second terminal
Part fragment generates the file destination.
On the other hand, a kind of file acquisition device is provided, on the server, described device includes: for described device application
Receiving module, for receiving the first acquisition request of first terminal, first acquisition request carries to be obtained
The file identification and target terminal number of file destination, the target terminal number refer to the first terminal and at least one second end
The total quantity at end, the first terminal are established point-to-point communication at least one described second terminal and are connect;
Module is obtained, for obtaining the file destination according to the file identification in first acquisition request;
Cutting module, for the file destination being carried out cutting, obtains multiple files point according to the target terminal number
Piece;
Sending module, for sending the first file fragmentation in the multiple file fragmentation to the first terminal, and to
At least one described second terminal sends the second file fragmentation in the multiple file fragmentation, wherein first file fragmentation
With the second file fragmentation for forming the file destination.
On the other hand, a kind of electronic equipment is provided, the electronic equipment includes processor and memory, the memory
In be stored at least one instruction, described instruction is loaded by the processor and is executed to realize such as above-mentioned file acquisition method
Performed operation.
On the other hand, a kind of computer readable storage medium is provided, at least one finger is stored in the storage medium
It enables, described instruction is loaded as processor and executed to realize the operation as performed by above-mentioned file acquisition method.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, which is based on by first terminal and this document identifies, is sent to server
First acquisition request, which first carries out cutting to file destination, then sends multiple texts after cutting to the first terminal
The first file fragmentation in part fragment, and the second file fragmentation in multiple file fragmentation is sent to second terminal, due to
First file fragmentation, the second file fragmentation are more much smaller than file destination, to reduce, server is practical to each terminal to be passed
Defeated data volume, reduces transmission time, shortens the waiting time of user.Also, the first terminal passes through point-to-point communication
Connection obtains the second file fragmentation from second terminal, and the first file fragmentation and the second file fragmentation are spliced into file destination,
Since point-to-point communication connection transmission rate is much larger than the transmission rate of server, so that reducing terminal obtains complete file reality
The time of cost improves the efficiency that terminal obtains file.
Also, server reduces the data of the actual transmissions of server without sending complete file to great amount of terminals in turn
The network communication data amount of amount and each terminal saves the communications cost for obtaining file for user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention;
Fig. 2 is a kind of signaling interaction diagram of file acquisition method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of file dicing process provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of server transport file processes provided in an embodiment of the present invention;
Fig. 5 is the process schematic of multiple terminal shared files provided in an embodiment of the present invention;
Fig. 6 is the process schematic of multiple terminal splicing files provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of file acquisition device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of file acquisition device provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention, which includes: first terminal
101, second terminal 102 and server 103.Wherein, point-to-point communication is established between the first terminal 101 and second terminal 102
Connection.The server 103 is established network communication and is connect with the first terminal 101, second terminal 102 respectively.The first terminal 101
It is applied with being mounted with to download in second terminal 102, the first terminal 101 and second terminal 102 are based on the downloading application, with the clothes
Data interaction is carried out between business device 103.
Wherein, which can be the currently used terminal of user, the second terminal 102 can for this
One terminal 101 establishes the terminal of point-to-point communication connection, and the quantity of the second terminal 102 can be one or more.This
One terminal 101 can be based on the terminal quantity of the second terminal 102 of first terminal 101 and file destination to be obtained, to the service
Device 103 sends acquisition request.Wherein, which sends the first acquisition request, the second terminal 102 to server 103
The second acquisition request is sent to server 103.The server 103 is based on the first acquisition request of the first terminal 101 and second
Second acquisition request of terminal 102 first carries out cutting to the file destination, obtains multiple file fragmentations.The server will be multiple
The first file fragmentation in file fragmentation is sent to first terminal 101, and the second file fragmentation in multiple file fragmentations is sent
To second terminal 102.First terminal 101 is based on point-to-point communication with second terminal 102 and connects, by the first file fragmentation and second
File fragmentation is shared, and the first terminal 101 and second terminal 102 can get the first file fragmentation and the second file point
Piece, and the first file fragmentation and the second file fragmentation are spliced, obtain file destination.
Wherein, point-to-point communication connection can be LAN connection, bluetooth connection or NFC (Near Field
Communication, near field communication (NFC)) connection etc..The first terminal 101 and second terminal 102 can be installation
Any terminal for having download function of the downloading application or download plug-in etc., the present invention is not especially limit this.
Fig. 2 is a kind of signaling interaction diagram of file acquisition method provided in an embodiment of the present invention.The inventive embodiments by
First terminal and server interaction are realized, wherein the first terminal is established point-to-point communication at least one second terminal and is connected,
Referring to fig. 2, this method comprises:
201, when first terminal receives acquisition instruction, which obtains target terminal number.
Wherein, which refers to the total quantity of the first terminal Yu at least one second terminal.When the first end
When end detects that the file destination in multiple files is chosen, which receives acquisition instruction, and the acquisition instruction is for referring to
Show and obtains the chosen file destination.The first terminal obtains the target terminal number that user inputs in current interface.
It should be noted that when opening downloading in the first terminal in application, the first terminal can be on currently display circle
The file identification of multiple files is shown on face, which can be based on the file identification of multiple file, from multiple file
Selection needs the file downloaded, and when the file identification of user's selected target file, which shows in current interface
Input options, the first terminal obtain the target terminal number that the user inputs in the input options.Wherein, which can
Think the files such as installation kit, the video file of application program.
202, first terminal is based on the target terminal number and file identification, sends the first acquisition request to server.
Wherein, which is used to indicate the server and is based on the target terminal number cutting file destination and obtains
To multiple file fragmentations.In this step, which can obtain the target terminal according to target terminal number and file identification
Number image identification code corresponding with file identification, and the image identification code is scanned, acquisition request is sent to the server.
Wherein, which can be generated by any terminal in first terminal or at least one second terminal, phase
It answers, this step can be realized by following two mode.
First way, image identification code are generated by first terminal, then in this step, the first terminal is according to target end
Number and file identification are held, generates image identification code, which shows the image identification code in the display interface, to the image
Identification code is scanned, and sends first acquisition request to the server, first acquisition request carry the target terminal number and
This document mark.
Wherein, which is used to indicate to server and sends acquisition request.First acquisition request carries the mesh
Mark number of terminals and this document mark.Wherein, which is scanned image identification code, sends first to server and obtains
The process of request can be with are as follows: the target terminal number and this document mark, first terminal scanning are carried in the image identification code
The image identification code obtains the target terminal number and this document mark, and the instruction based on the image identification code, sends out to server
Send the first acquisition request.Wherein, directive script can be carried in the image identification code, which obtains the target terminal number
It is identified with this document, and executes the directive script of the image identification code, send first acquisition request to server.
In a kind of possible embodiment, due to there is multiple terminals that need to send acquisition request, each terminal to server
An image identification code can be corresponded to, the first terminal is according to the target terminal number, this document mark and image mark to be generated
Know the number of code, generation quantity is equal to the several image identification codes of target terminal.Wherein, the volume of each image identification code to be generated
It number is used to indicate in first terminal and at least one second terminal successively scan image identification code, first terminal or each second
The scanning sequency of terminal.Then, which shows the several image identification codes of the target terminal in display interface, this first
Terminal and second terminal can successively scan the several image identification codes of target terminal, send acquisition request to server.
In a kind of possible embodiment, the file instruction of the first terminal can also be carried in first acquisition request
Information, this document instruction information are used to indicate the storage condition and/or transmission conditions of file fragmentation to be received.Then step 202
It can be with are as follows: the first terminal indicates information according to the file of the target terminal number, this document mark and the first terminal, generates
Image identification code;The first terminal shows the image identification code in display interface, the first terminal to the image identification code into
Row scanning, sends first acquisition request to server.
Wherein, file instruction information includes but is not limited to: the file size of the file fragmentation to be received be no more than this
The target storage space of one terminal, and/or, the amount of communication data for transmitting the file fragmentation to be received is no more than the first terminal
Destinations traffic data volume.The first terminal can obtain the file of file the instruction information and second terminal of first terminal in advance
Indicate information, generate the image identification code of the first terminal and the image identification code of second terminal respectively, the first terminal and
The image identification of each this terminal of self-scanning of second terminal.
Wherein, the target storage space, destinations traffic data volume can be configured based on needs, the embodiment of the present invention pair
This is not especially limited.For example, the target storage space can be the residual memory space of current residual in the first terminal, it should
Destinations traffic data volume can be remaining remaining amount of communication data of that month in the first terminal.
The second way generates image identification code by second terminal, then this step can be with are as follows: first terminal to this at least one
Image identification code in the display interface of a second terminal is scanned, and sends the first acquisition request to the server.
Wherein, which can be any one second terminal at least one second terminal.The second terminal
Image identification code in display interface is the image identification code generated by second terminal according to file identification, target terminal number, or
Person's second terminal can also indicate information according to target terminal number, this document mark and file, generate image identification code;And
The image identification code is shown in display interface, so that the second terminal and other terminals scan.Wherein, which generates figure
As the process of identification code, similarly for the process with first terminal generation image identification code, details are not described herein again.
Wherein, which can show that image identification code, first terminal pass through to second terminal in display interface
Display interface in image identification code be scanned, to server send the first acquisition request.In addition, first terminal scanning the
The process for the image identification code that two terminals are shown, the process for scanning the image identification code that first terminal is shown with first terminal are same
Reason, details are not described herein again.
In the embodiment of the present invention, which also sends the second acquisition request to server.The second terminal is to service
Device sends the process of the second acquisition request, no longer superfluous herein to send the process of the first acquisition request similarly with the first terminal
It states.
203, server receives the first acquisition request of the first terminal.
Wherein, which carries the file identification of file destination to be obtained and the target end of the file destination
Hold number.The server receives the first acquisition request of the first terminal, from first acquisition request obtain this document mark and
Target terminal number.In addition, the server can also obtain the number of the image identification code and/or is somebody's turn to do from first acquisition request
The file of first terminal indicates information.The server determines the order of transmission of first terminal according to the number of the image identification code.
In addition, the second terminal sends the second acquisition request also by scan image identification code, to server.The server can also connect
Receive the second acquisition request of the second terminal.Wherein, the number of image identification code indicate first terminal and at least one the
Two terminals successively scan image identification code when, scan the scanning sequency of the terminal of the image identification code, which can should
The scanning sequency of each terminal, as the order of transmission for sending file fragmentation to multiple terminals, according to the transmission of each terminal
Multiple file fragmentations are successively sent to multiple terminal by order.For example, the number of the image identification code of first terminal scanning is
5, then the scanning sequency of first terminal scanning sequency in multiple terminals is the 5th.Then server can be by the scanning sequency
As order of transmission, 1 to 4 terminal sends file fragmentation forward, then sends file fragmentation to the first terminal.
204, server obtains the file destination according to the file identification in first acquisition request.
Multiple files are previously stored in the server, the first terminal is according to the files-designated in first acquisition request
Know, obtains the file destination.
205, server carries out cutting to the file destination, obtains multiple file fragmentations according to the target terminal number.
Wherein, which carries out cutting to the file destination according to the target terminal number, is by the file destination cutting
The quantity is equal to the several file fragmentations of target terminal.
In a kind of possible embodiment, which can also carry the file instruction letter of first terminal
Breath.This step can be with are as follows: the server, will according to this document instruction information and the target terminal number in first acquisition request
The file destination cutting be multiple file fragmentations, multiple file fragmentation include meet the first terminal storage condition and/or
First file fragmentation of transmission conditions, this document instruction information are used to indicate the first terminal and treat depositing for received file fragmentation
Storage condition and/or transmission conditions.
As shown in figure 3, file destination cutting can be file fragmentation based on the acquisition request of n terminal by the server
1, file fragmentation 2 ... file fragmentation n, when carrying out file cutting, the server can be combined with terminal file instruction letter
Breath carries out cutting, so that each terminal can correspond to storage condition and/or the transmission item that a file size meets the terminal
The file fragmentation of part.
It should be noted that indicating that information is defined the size of file fragmentation by file, it is contemplated that each terminal
The factors such as itself memory space, residual flow are each sizeable file fragmentation of terminal cutting, to improve file
The accuracy of cutting meets the individual requirement of different user, greatly improves user experience.
206, server sends the first file fragmentation in multiple file fragmentation to the first terminal.
Terminal iidentification of the server based on the first terminal sends first file fragmentation to the first terminal, and to
At least one second terminal sends the second file fragmentation in multiple file fragmentation.Wherein, server is sent to each
Second file fragmentation of two terminals is different.First file fragmentation and the second file fragmentation are for forming the file destination.It should
Server can also send the location information of first file fragmentation in the file destination to the first terminal, and to second
Terminal sends location information of second file fragmentation in file destination, so that each SS later can be based on each file point
Multiple file fragmentations are spliced into complete file destination by the location information of piece.Wherein, the location information of each file fragmentation
It can be the storage location in file destination of this document fragment.
In a kind of possible embodiment, which can also carry the image mark of first terminal scanning
Know the number of code.Step 206 can be with are as follows: server first terminal according to indicated by the number of the image identification code
Order of transmission is determined as first file with the matched file fragmentation of the order of transmission for putting in order in multiple file fragmentation
Fragment;The server sends first file fragmentation to the first terminal.
Wherein, putting in order for each file fragmentation can be the storage according to each file fragmentation in file destination end
Position, this document fragment putting in order in multiple file fragmentations.The server can be according to the transmission time of the first terminal
The file fragmentation identical with the order of transmission that puts in order in multiple file slice is determined as first file fragmentation by sequence.
In a kind of possible embodiment, which can also carry the file instruction letter of the first terminal
Breath.The server indicates information according to the file of the first terminal, and depositing for the first terminal will be met in multiple file fragmentation
The file fragmentation of storage condition and/or the transmission conditions is determined as first file fragmentation, sends first text to the first terminal
Part fragment.Wherein, when this document instruction information includes the storage condition of the first terminal, the server is according to multiple files point
File size in multiple file fragmentations is no more than the file point of the target storage space of the first terminal by the file size of piece
Piece is determined as first file fragmentation.When this document instruction information include the transmission conditions of first terminal when, the server according to
File size in multiple file fragmentations is no more than the destinations traffic data volume of the first terminal by the size of multiple file fragmentations
File fragmentation is determined as first file fragmentation.
Wherein, which also sends the second file fragmentation in multiple file fragmentation at least one second terminal.
The transmission process is to send the process of the first file fragmentation similarly to first terminal with server, and details are not described herein again.
It should be noted that the server putting in order by order of transmission according to multiple terminals and file fragmentation,
It successively puts in order and the matched file fragmentation of order of transmission to the transmission of multiple terminal, to guarantee the standard of file fragmentation transmission
True property.Also, since server is by file destination cutting, the file fragmentation after cutting is sent to each terminal, compares existing skill
The each terminal of art obtains the process of complete file destination from server, and in the embodiment of the present invention, server is not necessarily to big
Amount terminal sends complete file in turn, when file especially to be transmitted is larger, to reduce the sum of server actual transmissions
According to amount, while reducing the waiting time of user, the user experience is improved.
207, first terminal receives the first file fragmentation of server transmission.
Wherein, which can also receive the location information of the first file fragmentation of the server.Certainly, second eventually
End also receives the second file fragmentation of the server.
208, first terminal obtains the second file fragmentation from least one second terminal.
Wherein, the second file fragmentation is sent at least one second terminal by the server, wherein server is sent to
Second file fragmentation of each second terminal is different, and first terminal is based on establishing what point-to-point communication was connect with the first terminal
Second terminal is connected by the point-to-point communication, sends third acquisition request to the second terminal, which receives this
It when third acquisition request, is connected by the point-to-point communication, sends the second file fragmentation to the first terminal.The first terminal is logical
Point-to-point communication connection is crossed, second file fragmentation is received.In addition, the first terminal can also be obtained from the second terminal
The location information of second file fragmentation puts in order.
Wherein, which sends first file to the second terminal also according to the terminal iidentification of the second terminal
Fragment.The first terminal sends the process of the first file fragmentation to second terminal, is and first terminal is obtained from second terminal
The process of second file fragmentation similarly is all based on point-to-point communication connection and is sent, and details are not described herein again.
It should be noted that as shown in figure 4, server needs equal to each terminal in traditional acquisition file processes
Send a complete file destination, even if the network transmission speed is very big, the server transport entire file destination, it is also desirable to
It takes a long time.It in comparison, in embodiments of the present invention, is multiple files point by file destination cutting by server
Piece is respectively sent to different terminals, without sending entire file destination, the file fragmentation that server is sent to each terminal
File size, it is clear that more much smaller than the entire file destination, when transmission rate is 120k per second, the time for transmitting cost is bright
It is aobvious to reduce, so that the amount of communication data of terminal be greatly saved, so that the more user of data traffic can be logical with power-assisted data
The more user of traffic realizes that floating resources are shared.
Also, multiple subsequent other portions that the file destination can be obtained from other terminals that point-to-point communication connects
Point, since the transmission rate of point-to-point communication connection is far longer than the transmission rate between the server and terminal, utilize point
It is shared in multiple terminal room high speeds that file may be implemented in point to-point communication connection.For example, by taking 100,000,000 local area networks as an example, actual transmissions
Rate is 12M/s, much larger than the transmission rate of the 120k/s between server and terminal, so that substantially reducing terminal obtains text
The time of part, actual file acquisition speed significantly improves, to improve file acquisition efficiency.
209, first terminal according to first file fragmentation and from least one second terminal obtain the second file fragmentation,
Generate the file destination.
In this step, the first terminal according to the location information of first file fragmentation in the file destination and this second
First file fragmentation and second file fragmentation are spliced into the target by location information of the file fragmentation in the file destination
File.Alternatively, the first terminal can also according to first file fragmentation put in order and the arrangement of second file fragmentation
Sequentially, first file fragmentation and the second file fragmentation are spliced into the file destination.
As shown in figure 5, establishing multiple terminals of point-to-point communication connection, the text that each terminal will be obtained from server terminal
Part fragment and other terminals are shared, and each terminal gets the file fragmentation of other multiple terminals, thus by multiple file fragmentations
It is combined.
Wherein, as shown in fig. 6, after getting All Files fragment to each terminal, each terminal carries out multiple files
The splicing of fragment obtains complete file destination.In Fig. 6 by taking terminal 4 as an example, terminal 4 is by each file fragmentation according to each text
The location information of part fragment puts in order, and 4 file fragmentations are successively spliced, complete file destination is obtained,
Certainly, actually terminal 1, terminal 2, terminal 3 have also carried out file splicing in the way of terminal 4 respectively.
In the embodiment of the present invention, which is based on by first terminal and this document identifies, is sent to server
First acquisition request, which first carries out cutting to file destination, then sends multiple files after cutting to the first terminal
The first file fragmentation in fragment, and the second file fragmentation in multiple file fragmentation is sent to second terminal, due to
One file fragmentation, the second file fragmentation are more much smaller than file destination, to reduce server to each terminal actual transmissions
Data volume, reduce transmission time, shorten the waiting time of user.Also, the first terminal is connected by point-to-point communication
It connects and obtains the second file fragmentation from second terminal, the first file fragmentation and the second file fragmentation are spliced into file destination, by
It is much larger than the transmission rate of server in point-to-point communication connection transmission rate, so that reducing terminal obtains the practical flower of complete file
The time taken improves the efficiency that terminal obtains file.
Also, server reduces the data of the actual transmissions of server without sending complete file to great amount of terminals in turn
The network communication data amount of amount and each terminal saves the communications cost for obtaining file for user.
Fig. 7 is a kind of structural schematic diagram of file acquisition device provided in an embodiment of the present invention.Referring to Fig. 7, which is answered
With on first terminal, which establishes point-to-point communication at least one second terminal and connect, which includes: to obtain
Module 701, sending module 702, receiving module 703, generation module 704.
Module 701 is obtained, for obtaining target terminal number when receiving acquisition instruction, which refers to this
The total quantity of first terminal and at least one second terminal;
Sending module 702 sends the first acquisition request to server for being based on the target terminal number and file identification,
First acquisition request is used to indicate the server and is based on the target terminal number cutting file destination and obtains multiple file fragmentations;
Receiving module 703, the first file fragmentation in multiple file fragmentation for receiving server transmission;
The acquisition module 701 is also used to obtain second in multiple file fragmentation from least one second terminal
File fragmentation, second file fragmentation are sent at least one second terminal by the server, wherein server is sent to often
Second file fragmentation of platform second terminal is different;
Generation module 704, for based on first file fragmentation and the second text obtained from least one second terminal
Part fragment generates the file destination.
Optionally, sending module 702, for being identified according to the target terminal number and this document, generation image identification code,
The image identification code is shown in display interface, which is scanned, and sends first acquisition request to server;
Alternatively,
Sending module 702, the image identification code being also used in the display interface at least one second terminal are swept
It retouches, sends the first acquisition request to the server;
Wherein, which is used to indicate to the server and sends acquisition request, which carries should
Target terminal number and this document mark.
Optionally, sending module 702 are also used to according to the target terminal number, this document mark and image mark to be generated
Know the number of code, generation quantity is equal to the several image identification codes of target terminal;
Wherein, the number of each image identification code to be generated is used to indicate in first terminal and at least one second terminal
Successively when scan image identification code, the scanning sequency of first terminal or each second terminal.
Optionally, the sending module 702 is also used to according to the target terminal number, this document mark and the first terminal
File indicates information, generates image identification code, the image identification code is shown in display interface, is swept to the image identification code
It retouches, sends first acquisition request to the server;Alternatively,
The sending module 702, the image identification code being also used in the display interface at least one second terminal carry out
Scanning sends the first acquisition request to the server;
Wherein, this document instruction information is used to indicate the storage condition and/or transmission conditions of file fragmentation to be received, should
Image identification code is used to indicate to the server and sends acquisition request, which carries the target terminal number, this article
The file of part mark and the first terminal indicates information.
Optionally, this document instruction information includes: that the file size of the file fragmentation to be received is no more than first end
The target storage space at end, and/or, the amount of communication data for transmitting the file fragmentation to be received is no more than the mesh of the first terminal
Mark amount of communication data.
Optionally, the generation module 704, for according to the location information of first file fragmentation in the file destination and
First file fragmentation and second file fragmentation are spliced by the location information of second file fragmentation in the file destination
The file destination.
Optionally, the sending module 702, is also used to the terminal iidentification according to the second terminal, sends to the second terminal
First file fragmentation.
In the embodiment of the present invention, which is based on by first terminal and this document identifies, is sent to server
First acquisition request, which first carries out cutting to file destination, then sends multiple files after cutting to the first terminal
The first file fragmentation in fragment, since the first file fragmentation is more much smaller than file destination, to reduce server to each
The data volume of the actual transmissions of terminal, reduces transmission time, shortens the waiting time of user.Also, the first terminal is logical
It crosses point-to-point communication connection and obtains the second file fragmentation from second terminal, the first file fragmentation and the second file fragmentation are spliced
It is obtained since point-to-point communication connection transmission rate is much larger than the transmission rate of server to reduce terminal for file destination
The complete file practical time spent improves the efficiency that terminal obtains file.
Also, server reduces the data of the actual transmissions of server without sending complete file to great amount of terminals in turn
The network communication data amount of amount and each terminal saves the communications cost for obtaining file for user.
Fig. 8 is a kind of structural schematic diagram of file acquisition device provided in an embodiment of the present invention.Referring to Fig. 8, which is answered
With on the server, which includes: receiving module 801, obtains module 802, cutting module 803 and sending module 804.
Receiving module 801, for receiving the first acquisition request of first terminal, which carries mesh to be obtained
The file identification and target terminal number of file are marked, which refers to the total of the first terminal and at least one second terminal
Quantity, the first terminal are established point-to-point communication at least one second terminal and are connect;
Module 802 is obtained, for obtaining the file destination according to the file identification in first acquisition request;
Cutting module 803, for which being carried out cutting, obtains multiple files point according to the target terminal number
Piece;
Sending module 804, for sending the first file fragmentation in multiple file fragmentation to the first terminal, and to this
At least one second terminal sends the second file fragmentation in multiple file fragmentation, wherein first file fragmentation and second
File fragmentation is for forming the file destination.
Optionally, the sending module 804 is also used to receive the second acquisition request of at least one second terminal, to this
At least a second terminal sends the second file fragmentation in multiple file fragmentation.
Optionally, which also carries the file instruction information of the first terminal, which goes back
For being multiple texts by the file destination cutting according to this document instruction information and the target terminal number in first acquisition request
Part fragment;
Wherein, multiple file fragmentation includes the storage condition for meeting the first terminal and/or the first text of transmission conditions
Part fragment and the second file fragmentation, this document instruction information are used to indicate the storage condition and/or biography of file fragmentation to be received
Defeated condition.
Optionally, which also carries the number of the image identification code of first terminal scanning, the transmission mould
Block 804 is also used to the scanning sequency of the first terminal according to indicated by the number of the image identification code, by multiple file point
It puts in order in piece and is determined as first file fragmentation with the matched file fragmentation of the scanning sequency;Sending to the first terminal should
First file fragmentation.
In the embodiment of the present invention, when receiving the first acquisition request of first terminal, the server is first to file destination
Cutting is carried out, then sends the first file fragmentation in multiple file fragmentations after cutting to the first terminal, and at least one
A second terminal sends the second file fragmentation, and first file fragmentation and the second file fragmentation are used to form the file destination, by
It is more much smaller than file destination in the first file fragmentation, thus reduce server to the data volume of the actual transmissions of each terminal,
Reduce transmission time, shorten the waiting time of user, improves the efficiency that terminal obtains file from server.
Also, server reduces the data of the actual transmissions of server without sending complete file to great amount of terminals in turn
The network communication data amount of amount and each terminal saves the communications cost for obtaining file for user.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination
It repeats one by one.
It should be understood that file acquisition device provided by the above embodiment is when obtaining file, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of function described above
Energy.In addition, file acquisition device provided by the above embodiment and file acquisition method embodiment belong to same design, it is specific real
Existing process is detailed in embodiment of the method, and which is not described herein again.
Fig. 9 shows the structural block diagram of the terminal 900 of an illustrative embodiment of the invention offer.The terminal 900 can be with
It is: smart phone, tablet computer, laptop, desktop computer or other intelligent electronic devices.Terminal 900 is also possible to be claimed
For user equipment, portable terminal, laptop terminal, terminal console, intelligent terminal or other titles.
In general, terminal 900 includes: processor 901 and memory 902.
Processor 901 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 901 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 901 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 901 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 901 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 902 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 902 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 902 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 901 for realizing this Shen
Please in embodiment of the method provide file acquisition method.
In some embodiments, terminal 900 is also optional includes: peripheral device interface 903 and at least one peripheral equipment.
It can be connected by bus or signal wire between processor 901, memory 902 and peripheral device interface 903.Each peripheral equipment
It can be connected by bus, signal wire or circuit board with peripheral device interface 903.Specifically, peripheral equipment includes: radio circuit
904, at least one of touch display screen 905, camera 906, voicefrequency circuit 907, positioning component 908 and power supply 909.
Peripheral device interface 903 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 901 and memory 902.In some embodiments, processor 901, memory 902 and peripheral equipment
Interface 903 is integrated on same chip or circuit board;In some other embodiments, processor 901, memory 902 and outer
Any one or two in peripheral equipment interface 903 can realize on individual chip or circuit board, the present embodiment to this not
It is limited.
Radio circuit 904 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates
Frequency circuit 904 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 904 turns electric signal
It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 904 wraps
It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip
Group, user identity module card etc..Radio circuit 904 can be carried out by least one wireless communication protocol with other terminals
Communication.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), wireless office
Domain net and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio circuit 904 may be used also
To include the related circuit of NFC (Near Field Communication, wireless near field communication), the application is not subject to this
It limits.
Display screen 905 is for showing UI (User Interface, user interface).The UI may include figure, text, figure
Mark, video and its their any combination.When display screen 905 is touch display screen, display screen 905 also there is acquisition to show
The ability of the touch signal on the surface or surface of screen 905.The touch signal can be used as control signal and be input to processor
901 are handled.At this point, display screen 905 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or
Soft keyboard.In some embodiments, display screen 905 can be one, and the front panel of terminal 900 is arranged;In other embodiments
In, display screen 905 can be at least two, be separately positioned on the different surfaces of terminal 900 or in foldover design;In still other reality
It applies in example, display screen 905 can be flexible display screen, be arranged on the curved surface of terminal 900 or on fold plane.Even, it shows
Display screen 905 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 905 can use LCD (Liquid
Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode)
Etc. materials preparation.
CCD camera assembly 906 is for acquiring image or video.Optionally, CCD camera assembly 906 include front camera and
Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One
In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively
Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle
Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped
Camera shooting function.In some embodiments, CCD camera assembly 906 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp,
It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not
With the light compensation under colour temperature.
Voicefrequency circuit 907 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will
Sound wave, which is converted to electric signal and is input to processor 901, to be handled, or is input to radio circuit 904 to realize voice communication.
For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 900 to be multiple.Mike
Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 901 or radio circuit will to be come from
904 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When
When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications
Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 907 can also include
Earphone jack.
Positioning component 908 is used for the current geographic position of positioning terminal 900, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 908 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union
The positioning component of Galileo system.
Power supply 909 is used to be powered for the various components in terminal 900.Power supply 909 can be alternating current, direct current,
Disposable battery or rechargeable battery.When power supply 909 includes rechargeable battery, which can support wired charging
Or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 900 further includes having one or more sensors 910.The one or more sensors
910 include but is not limited to: acceleration transducer 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914,
Optical sensor 915 and proximity sensor 916.
The acceleration that acceleration transducer 911 can detecte in three reference axis of the coordinate system established with terminal 900 is big
It is small.For example, acceleration transducer 911 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 901 can
With the acceleration of gravity signal acquired according to acceleration transducer 911, touch display screen 905 is controlled with transverse views or longitudinal view
Figure carries out the display of user interface.Acceleration transducer 911 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 912 can detecte body direction and the rotational angle of terminal 900, and gyro sensor 912 can
To cooperate with acquisition user to act the 3D of terminal 900 with acceleration transducer 911.Processor 901 is according to gyro sensor 912
Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting
Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 905 in terminal 900 can be set in pressure sensor 913.Work as pressure
When the side frame of terminal 900 is arranged in sensor 913, user can detecte to the gripping signal of terminal 900, by processor 901
Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 913 acquires.When the setting of pressure sensor 913 exists
When the lower layer of touch display screen 905, the pressure operation of touch display screen 905 is realized to UI circle according to user by processor 901
Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu
At least one of control.
Fingerprint sensor 914 is used to acquire the fingerprint of user, collected according to fingerprint sensor 914 by processor 901
The identity of fingerprint recognition user, alternatively, by fingerprint sensor 914 according to the identity of collected fingerprint recognition user.It is identifying
When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 901
Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 914
900 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 900, fingerprint sensor 914 can be with
It is integrated with physical button or manufacturer Logo.
Optical sensor 915 is for acquiring ambient light intensity.In one embodiment, processor 901 can be according to optics
The ambient light intensity that sensor 915 acquires controls the display brightness of touch display screen 905.Specifically, when ambient light intensity is higher
When, the display brightness of touch display screen 905 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 905 is bright
Degree.In another embodiment, the ambient light intensity that processor 901 can also be acquired according to optical sensor 915, dynamic adjust
The acquisition parameters of CCD camera assembly 906.
Proximity sensor 916, also referred to as range sensor are generally arranged at the front panel of terminal 900.Proximity sensor 916
For acquiring the distance between the front of user Yu terminal 900.In one embodiment, when proximity sensor 916 detects use
When family and the distance between the front of terminal 900 gradually become smaller, touch display screen 905 is controlled from bright screen state by processor 901
It is switched to breath screen state;When proximity sensor 916 detects user and the distance between the front of terminal 900 becomes larger,
Touch display screen 905 is controlled by processor 901 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 900 of structure shown in Fig. 9, can wrap
It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
Figure 10 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, the server 1000 can because of configuration or
Performance is different and generates bigger difference, may include one or more processors (central processing
Units, CPU) 1001 and one or more memory 1002, wherein at least one is stored in the memory 1002
Item instruction, at least one instruction are loaded by the processor 1001 and are executed to realize that above-mentioned each embodiment of the method provides
File acquisition method.Certainly, which can also have wired or wireless network interface, keyboard and input/output interface
Equal components, to carry out input and output, which can also include other for realizing the component of functions of the equipments, not do herein
It repeats.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the memory for example including instruction,
Above-metioned instruction can be executed by the processor in terminal to complete the file acquisition method in above-described embodiment.For example, the calculating
Machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices
Deng.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (15)
1. a kind of file acquisition method, which is characterized in that the method is applied on first terminal, the first terminal at least
One second terminal establishes point-to-point communication connection, which comprises
When receiving acquisition instruction, obtain target terminal number, the target terminal number refer to the first terminal and it is described extremely
The total quantity of a few second terminal;
Based on the target terminal number and file identification, the first acquisition request is sent to server, first acquisition request is used
The target terminal number cutting file destination is based in the instruction server and obtains multiple file fragmentations;
Receive the first file fragmentation in the multiple file fragmentation that the server is sent;
The second file fragmentation in the multiple file fragmentation, second file are obtained from least one described second terminal
Fragment is sent at least one described second terminal by the server, wherein server is sent to the of each second terminal
Two file fragmentations are different;
Based on first file fragmentation and the second file fragmentation obtained from least one described second terminal, the mesh is generated
Mark file.
2. the method according to claim 1, wherein the target terminal number and text based on the file destination
Part mark, sending the first acquisition request to server includes:
According to the target terminal number and the file identification, image identification code is generated, described image is shown in display interface
Identification code is scanned described image identification code, and Xiang Suoshu server sends first acquisition request;Alternatively,
Image identification code in the display interface of at least one second terminal is scanned, Xiang Suoshu server sends the
One acquisition request;
Wherein, described image identification code is used to indicate to the server and sends acquisition request, and first acquisition request carries
The target terminal number and the file identification.
3. according to the method described in claim 2, it is characterized in that, described according to the target terminal number and the files-designated
Know, generating image identification code includes:
According to the number of the target terminal number, the file identification and image identification code to be generated, generation quantity is equal to mesh
Mark the several image identification codes of terminal;
Wherein, the number of each image identification code to be generated be used to indicate first terminal and at least one second terminal successively
When scan image identification code, the scanning sequency of first terminal or each second terminal.
4. the method according to claim 1, wherein it is described be based on the target terminal number and file identification, to
Server sends the first acquisition request
Information is indicated according to the file of the target terminal number, the file identification and the first terminal, generates image identification
Code, described image identification code is shown in display interface, is scanned to described image identification code, and Xiang Suoshu server sends institute
State the first acquisition request;Alternatively,
Image identification code in the display interface of at least one second terminal is scanned, Xiang Suoshu server sends the
One acquisition request;
Wherein, the file instruction information is used to indicate the storage condition and/or transmission conditions of file fragmentation to be received, described
Image identification code is used to indicate to the server and sends acquisition request, and first acquisition request carries the target terminal
The file of several, the described file identification and the first terminal indicates information.
5. according to the method described in claim 4, it is characterized in that, file instruction information includes: the text to be received
The file size of part fragment is no more than the target storage space of the first terminal, and/or, transmit the file to be received point
The amount of communication data of piece is no more than the destinations traffic data volume of the first terminal.
6. the method according to claim 1, wherein it is described based on first file fragmentation and from it is described at least
The second file fragmentation that one second terminal obtains, generating the file destination includes:
According to location information of first file fragmentation in the file destination and second file fragmentation in the mesh
The location information in file is marked, first file fragmentation and second file fragmentation are spliced into the file destination.
7. the method according to claim 1, wherein the method also includes:
According to the terminal iidentification of the second terminal, Xiang Suoshu second terminal sends first file fragmentation.
8. a kind of file acquisition method, which is characterized in that the method application is on the server, which comprises
The first acquisition request of first terminal is received, first acquisition request carries the file identification of file destination to be obtained
With target terminal number, the target terminal number refers to the total quantity of the first terminal Yu at least one second terminal, described
One terminal is established point-to-point communication at least one described second terminal and is connect;
According to the file identification in first acquisition request, the file destination is obtained;
According to the target terminal number, the file destination is subjected to cutting, obtains multiple file fragmentations;
Send the first file fragmentation in the multiple file fragmentation to the first terminal, and to it is described at least one second eventually
End sends the second file fragmentation in the multiple file fragmentation, wherein first file fragmentation and the second file fragmentation are used for
Form the file destination.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
The second acquisition request of at least one second terminal is received, a Xiang Suoshu at least second terminal sends the multiple
The second file fragmentation in file fragmentation.
10. according to the method described in claim 8, it is characterized in that, first acquisition request also carries the first terminal
File indicate information, it is described according to the target terminal number, the file destination is subjected to cutting, obtains multiple file fragmentations
Include:
Information and the target terminal number are indicated according to file described in first acquisition request, by the file destination cutting
For multiple file fragmentations;
Wherein, the multiple file fragmentation includes the storage condition for meeting the first terminal and/or the first text of transmission conditions
Part fragment and the second file fragmentation, file instruction information be used to indicate file fragmentation to be received storage condition and/or
Transmission conditions.
11. according to the method described in claim 9, it is characterized in that, first acquisition request also carries the first terminal
The number of the image identification code of scanning, first file fragmentation sent to the first terminal in the multiple file fragmentation
Include:
The scanning sequency of the first terminal according to indicated by the number of described image identification code, by the multiple file fragmentation
In put in order and be determined as first file fragmentation with the matched file fragmentation of the scanning sequency;
First file fragmentation is sent to the first terminal.
12. a kind of file acquisition device, which is characterized in that described device is applied on first terminal, the first terminal with extremely
A few second terminal establishes point-to-point communication connection, and described device includes:
Module is obtained, for obtaining target terminal number when receiving acquisition instruction, the target terminal number refers to described first
The total quantity of terminal and at least one second terminal;
Sending module sends the first acquisition request to server for being based on the target terminal number and file identification, and described the
One acquisition request is used to indicate the server and is based on the target terminal number cutting file destination and obtains multiple file fragmentations;
Receiving module, for receiving the first file fragmentation in the multiple file fragmentation that the server is sent;
The acquisition module is also used to obtain the second text in the multiple file fragmentation from least one described second terminal
Part fragment, second file fragmentation are sent at least one described second terminal by the server, wherein server is sent
It is different to the second file fragmentation of every second terminal;
Generation module, for based on first file fragmentation and the second file point obtained from least one described second terminal
Piece generates the file destination.
13. a kind of file acquisition device, which is characterized in that on the server, described device includes: for described device application
Receiving module, for receiving the first acquisition request of first terminal, first acquisition request carries target to be obtained
The file identification and target terminal number of file, the target terminal number refer to the first terminal and at least one second terminal
Total quantity, the first terminal are established point-to-point communication at least one described second terminal and are connect;
Module is obtained, for obtaining the file destination according to the file identification in first acquisition request;
Cutting module, for the file destination being carried out cutting, obtains multiple file fragmentations according to the target terminal number;
Sending module, for sending the first file fragmentation in the multiple file fragmentation to the first terminal, and to described
At least one second terminal sends the second file fragmentation in the multiple file fragmentation, wherein first file fragmentation and
Two file fragmentations are for forming the file destination.
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory
Contain at least one instruction, described instruction loaded by the processor and executed to realize such as claim 1 to claim 7 or
Operation performed by person's claim 8 to the described in any item file acquisition methods of claim 11.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, institute in the storage medium
Instruction is stated load by processor and executed to realize such as claim 1 to claim 7 or claim 8 to claim 11
Operation performed by described in any item file acquisition methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811309346.4A CN109413190B (en) | 2018-11-05 | 2018-11-05 | File acquisition method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811309346.4A CN109413190B (en) | 2018-11-05 | 2018-11-05 | File acquisition method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109413190A true CN109413190A (en) | 2019-03-01 |
CN109413190B CN109413190B (en) | 2020-09-04 |
Family
ID=65471480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811309346.4A Active CN109413190B (en) | 2018-11-05 | 2018-11-05 | File acquisition method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109413190B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935221A (en) * | 2020-07-03 | 2020-11-13 | Oppo(重庆)智能科技有限公司 | File transmission method, device, storage medium and terminal |
CN113472905A (en) * | 2021-09-06 | 2021-10-01 | 广州朗国电子科技股份有限公司 | Universal file accelerated transmission method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016960A1 (en) * | 2005-07-18 | 2007-01-18 | Nt Objectives, Inc. | NTO input validation technique |
CN102546768A (en) * | 2011-12-23 | 2012-07-04 | 深圳市同洲电子股份有限公司 | Content sharing method, device and system |
CN102801784A (en) * | 2012-07-03 | 2012-11-28 | 华为技术有限公司 | Distributed type data storing method and equipment |
CN103402229A (en) * | 2013-07-25 | 2013-11-20 | 中国科学院信息工程研究所 | Data downloading method and data downloading system |
CN104052774A (en) * | 2013-03-14 | 2014-09-17 | 腾讯科技(深圳)有限公司 | Data transmission method and system |
CN104092713A (en) * | 2013-05-31 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Network resource download information display method and device |
CN105120530A (en) * | 2015-09-11 | 2015-12-02 | 北京金山安全软件有限公司 | Method and device for acquiring data and data acquisition system |
-
2018
- 2018-11-05 CN CN201811309346.4A patent/CN109413190B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070016960A1 (en) * | 2005-07-18 | 2007-01-18 | Nt Objectives, Inc. | NTO input validation technique |
CN102546768A (en) * | 2011-12-23 | 2012-07-04 | 深圳市同洲电子股份有限公司 | Content sharing method, device and system |
CN102801784A (en) * | 2012-07-03 | 2012-11-28 | 华为技术有限公司 | Distributed type data storing method and equipment |
CN104052774A (en) * | 2013-03-14 | 2014-09-17 | 腾讯科技(深圳)有限公司 | Data transmission method and system |
CN104092713A (en) * | 2013-05-31 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Network resource download information display method and device |
CN103402229A (en) * | 2013-07-25 | 2013-11-20 | 中国科学院信息工程研究所 | Data downloading method and data downloading system |
CN105120530A (en) * | 2015-09-11 | 2015-12-02 | 北京金山安全软件有限公司 | Method and device for acquiring data and data acquisition system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935221A (en) * | 2020-07-03 | 2020-11-13 | Oppo(重庆)智能科技有限公司 | File transmission method, device, storage medium and terminal |
CN113472905A (en) * | 2021-09-06 | 2021-10-01 | 广州朗国电子科技股份有限公司 | Universal file accelerated transmission method |
Also Published As
Publication number | Publication date |
---|---|
CN109413190B (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109982102A (en) | The interface display method and system and direct broadcast server of direct broadcasting room and main broadcaster end | |
CN109302385A (en) | Multimedia resource sharing method, device and storage medium | |
CN108762881A (en) | Interface method for drafting, device, terminal and storage medium | |
CN109657165A (en) | Method for page jump and device | |
CN109697113A (en) | Request method, apparatus, equipment and the readable storage medium storing program for executing retried | |
CN109522146A (en) | The method, apparatus and storage medium of abnormality test are carried out to client | |
CN109922356A (en) | Video recommendation method, device and computer readable storage medium | |
CN110321228A (en) | Call method, device, equipment and the computer readable storage medium of Native method | |
CN110288689A (en) | The method and apparatus that electronic map is rendered | |
CN108900925A (en) | The method and apparatus of live streaming template are set | |
CN109800003A (en) | Using method for down loading, device, terminal and storage medium | |
CN110196673A (en) | Picture exchange method, device, terminal and storage medium | |
CN110535890A (en) | The method and apparatus that file uploads | |
CN109413190A (en) | File acquisition method, device, electronic equipment and storage medium | |
CN109600301A (en) | Message treatment method and device | |
CN109783176A (en) | Switch the method and apparatus of the page | |
CN109218169A (en) | Instant communication method, device and storage medium | |
CN109144609A (en) | Using method for down loading, device, storage medium and terminal | |
CN108829582A (en) | The method and apparatus of program compatibility | |
CN112330380B (en) | Order creation method, order creation device, computer equipment and computer readable storage medium | |
CN109240823B (en) | The method, apparatus and readable storage medium storing program for executing of multiterminal linkage processing task | |
CN109033473A (en) | Picture sharing method, device and computer readable storage medium | |
CN109413440A (en) | Virtual objects management method, device and storage medium | |
CN110297684A (en) | Theme display methods, device and storage medium based on virtual portrait | |
CN109451168A (en) | Generate the method, apparatus and storage medium of ring signal file |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |