CN108574735A - Data processing method, terminal and computer readable storage medium - Google Patents
Data processing method, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108574735A CN108574735A CN201810320746.9A CN201810320746A CN108574735A CN 108574735 A CN108574735 A CN 108574735A CN 201810320746 A CN201810320746 A CN 201810320746A CN 108574735 A CN108574735 A CN 108574735A
- Authority
- CN
- China
- Prior art keywords
- data
- fragment
- uploaded
- fragment data
- upload
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 239000012634 fragment Substances 0.000 claims abstract description 337
- 241001269238 Data Species 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000001514 detection method Methods 0.000 claims abstract description 14
- 230000005540 biological transmission Effects 0.000 claims description 9
- 230000006870 function Effects 0.000 description 17
- 230000006854 communication Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 230000011218 segmentation Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a kind of data processing methods, run on client, and this method includes:The first fragment data is partitioned into from data to be uploaded;The first fragment data is uploaded to server;When the first fragment data of detection uploads successfully, then the second fragment data is partitioned into from the remaining data of data to be uploaded;The second fragment data is uploaded to server;Judge whether data to be uploaded all upload;Successfully instruction is uploaded if so, being sent to server;If it is not, then continuing to divide N fragment datas from the remaining data of data to be uploaded and being uploaded to the server, completed until data to be uploaded upload.In addition, the invention also discloses a kind of terminal and computer readable storage mediums.Using the present invention, it adaptively can upload data by Dynamic Program Slicing, improve and upload success rate and uploading speed.
Description
Technical field
The present invention relates to a kind of field more particularly to data processing method, terminal and computer readable storage mediums.
Background technology
With the development of the mobile terminals such as smart mobile phone, smart mobile phone application performance is got over as the important indicator of user experience
Paid attention to by user and equipment vendors to get over.On Android platform, the transmitting efficiency of the data such as picture, file is a kind of typical case
Network performance test scene, be common in various instant messaging applications.By taking picture is sent as an example, i.e., the efficiency that picture uploads is straight
Connect the objective evaluation for affecting user to application.
Transfer efficiency is main on picture includes:Uploading speed and upload success rate two indices.Uploading pictures common practices
All rely on Http Client or Http URL Connection network request frames, that is to say, that be all will by with
Server establishes HTTP connections, and blit on the POST request by sending multipart/form-data types to server
The data flows such as piece, file.In this scheme, the efficiency that picture uploads is mainly by client network speed uplink and picture size
It influences.In general, network uplink speed is slower, uploading speed is lower, and picture volume is bigger, and it is higher to upload mortality.Vice versa.
However, this problem is never well solved, in the prior art, it will usually which selection sacrifices user experience to reach
Transfer efficiency on to higher picture, such as:It is recommended that user retransmits picture under wireless network (WIFI) connection;Alternatively,
Picture quality is reduced to reduce picture volume etc. by compression, and these solutions can all influence user experience, it cannot
Inherently solve the problems, such as that data upload.
Invention content
It is a primary object of the present invention to propose a kind of data processing method, terminal and computer readable storage medium, purport
It needs to sacrifice user experience in solving the problems, such as data upload process to solve data upload.
To achieve the above object, the present invention proposes a kind of data processing method, is applied to client, the method includes steps
Suddenly:
The first fragment data is partitioned into from data to be uploaded;
First fragment data is uploaded to server;
When detection first fragment data uploads successfully, then it is partitioned into from the remaining data of the data to be uploaded
Second fragment data;
Second fragment data is uploaded to the server;
Judge whether the data to be uploaded all upload;
Successfully instruction is uploaded if so, being sent to the server;
If it is not, then continuing to divide N fragment datas from the remaining data of the data to be uploaded and be uploaded to the clothes
Business device, wherein N is the positive integer more than or equal to 3.
Optionally, before being partitioned into the second fragment data in the remaining data from the data to be uploaded, the method
Further include:
The net after network state and upload first fragment data before judging to upload first fragment data
Whether network state is identical;
If so, the volume of second fragment data is more than the volume of first fragment data.
Optionally, described to be partitioned into second from the remaining data of the data to be uploaded if network state differs
Fragment data specifically includes:
Second equal with the volume of the first fragment data is partitioned into from the remaining data of the data to be uploaded
Fragment data.
Optionally, when detecting fragment data upload failure, the method further includes:
The fragment data for uploading failure is cut at least one sub- fragment data;
When being spaced the preset stand-by period, at least one sub- fragment data is uploaded respectively.
Optionally, fragment data includes:Data information, fragment volume, fragment serial number and fragment cryptographic Hash.
In addition, to achieve the above object, the present invention also proposes a kind of data processing method, it is applied to server, the side
Method includes step:
Obtain come from client upload the first fragment data, the second fragment data ..., N fragment datas, wherein N
For the positive integer more than or equal to 3;
When receiving the upload that the client is sent and successfully instructing, merge first fragment data, second point
Sheet data ..., N fragment datas, and obtain completely uploading data.
Optionally, obtain come from client upload the first fragment data, the second fragment data ..., N fragment numbers
According to later, the method further includes:
The link data of network channel between detection and the client;
The link data of the network channel is sent to the client.
Optionally, merge first fragment data, the second fragment data ..., before N fragment datas, the side
Method further includes:
Verify respectively first fragment data, the second fragment data ..., N fragment datas whether with the client
The fragment serial number of the fragment data of transmission is consistent with fragment cryptographic Hash.
In addition, to achieve the above object, the present invention also proposes that a kind of terminal, the terminal include processor and storage
Device;
The processor is for executing the data processor stored in memory, to realize above-mentioned method.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable
Storage medium is stored with one or more program, and one or more of programs can be held by one or more processor
Row, to realize above-mentioned method.
Data processing method provided in this embodiment, terminal and computer readable storage medium proposed by the present invention, pass through
It is partitioned into the first fragment data from data to be uploaded, if the first fragment data is successfully uploaded to server, continues from residue
Data to be uploaded in be partitioned into the second fragment data and be uploaded to server, if data to be uploaded all upload successfully, to
Server, which is sent, uploads successfully instruction, and otherwise, continuation is partitioned into fragment data from remaining data to be uploaded, and repeats
Step is stated, is completed until data to be uploaded upload.Using the method for the present embodiment, compared with traditional picture uploading file, no
It will appear and upload the problems such as mortality is high, speed is slow, efficiency is low caused by by change of network environment, but can be adaptively
Dynamic Program Slicing uploads data, improves and uploads success rate and uploading speed.
Description of the drawings
The hardware architecture diagram of Fig. 1 optional mobile terminals of each embodiment one to realize the present invention;
Fig. 2 is the communications network system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow diagram for the data processing method that first embodiment of the invention provides;
Fig. 4 is another flow diagram for the data processing method that first embodiment of the invention provides;
Fig. 5 is another flow diagram for the data processing method that first embodiment of the invention provides;
Fig. 6 is the flow diagram for the data processing method that second embodiment of the invention provides;
Fig. 7 is another flow diagram for the data processing method that second embodiment of the invention provides;
Fig. 8 is the structure diagram of terminal in fourth embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only
The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated so that client is mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that
Other than being used in particular for the element of mobile purpose, construction according to the embodiment of the present invention can also apply to fixed type
Terminal.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 is (i.e.:Client) may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio
Output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107,
The components such as interface unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that Fig. 1
Shown in mobile terminal structure do not constitute the restriction to mobile terminal, mobile terminal may include more more or less than illustrating
Component, either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively
Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
As shown in figure 3, the flow diagram of the data processing method provided for first embodiment of the invention.First embodiment
Applied to client, that is, above-mentioned mobile terminal.The method of the embodiment is once triggered by user, then in the embodiment
Flow passes through terminal automatic running, wherein each step can be according to the sequence priority in such as flow chart when operation
It carries out, can also be to be carried out at the same time according to the multiple steps of actual conditions, do not limit herein, the method for the information processing includes
Following steps:
Step 310, the first fragment data is partitioned into from data to be uploaded;
Step 320, first fragment data is uploaded to server;
Step 330, when detection first fragment data uploads successfully, then from the remaining data of the data to be uploaded
In be partitioned into the second fragment data;
Step 340, second fragment data is uploaded to the server;
Step 350, judge whether the data to be uploaded all upload;If so, 360 are entered step, if it is not, then entering
Step 370;
Step 360, it is sent to the server and uploads successfully instruction;
Step 370, continue to divide N fragment datas from the remaining data of the data to be uploaded and be uploaded to the clothes
Business device, wherein N is the positive integer more than or equal to 3.
By the above embodiment, by being partitioned into the first fragment data from data to be uploaded, if the first fragment data
It is successfully uploaded to server, then continues to be partitioned into the second fragment data from remaining data to be uploaded and be uploaded to server,
If data to be uploaded all upload successfully, sent to server and upload successfully instruction, otherwise, continued from remaining to be uploaded
It is partitioned into fragment data in data, and repeats the above steps, completes, adaptively can dynamically divide until data to be uploaded upload
Piece uploads data, improves and uploads success rate and uploading speed.
In the following, by being further described to each step of the data processing method in the present exemplary embodiment.
In the step 310, client is established HTTP by network with server and is connect, and current network can be wireless network
(WIFI), it can also be mobile network, such as:3G 4G networks etc..Client monitors current network conditions in real time, works as needs
When uploading data to server, then according to different network conditions, the fragment data of a suitable volumes is determined, and to be uploaded
It is split in data, for the ease of understanding and describing, in the present embodiment, point being for the first time partitioned into from data to be uploaded
The piece number is stated to be the first fragment data.
In the present embodiment, the volume of fragment data derives from the empirical value that a large amount of test datas are got, can be not
There is relatively stable, reliable and quick uploading speed when same network type and bandwidth.
Optionally, the data to be uploaded in the present embodiment can be picture, file, audio, video data etc..
Optionally, each fragment data includes at least:Data information, fragment volume, fragment serial number and fragment cryptographic Hash.
Wherein, data information refers to the property parameters of data to be uploaded;Fragment volume refers to the fragment being partitioned into from data to be uploaded
The volume of data;Fragment serial number refers to the serial number of segmentation;Fragment cryptographic Hash refers to according to preset formula and fragment data meter
Obtained cryptographic Hash.
In step 320, the first fragment data being partitioned into is uploaded to server.It is sent out especially by network uploading module
The HTTP POST requests for playing multipart/form-data types submit picture file stream to server.
In a step 330, when the first fragment data uploads successfully, according to current network conditions, from data to be uploaded
The volume that suitable next fragment data is selected in remaining data, as the second fragment data, that is to say, that the second fragment number
According to being the fragment being partitioned into addition to the first fragment data in data to be uploaded.
In step 340, according to the process similar with step 320, the second fragment data being partitioned into is uploaded to clothes
Business device.
It in step 350, can be by judging whether that there is also do not upload data to determine whether uploading whole wait for
Passing data can also be judged that the present invention is not specifically limited herein using other modes in other embodiments.
In step 360, if the second fragment data uploads successfully, and without data to be uploaded, then data upload to be uploaded
Success.That is, data to be uploaded include the first fragment data and the second fragment data, and data to be uploaded upload successfully,
It is then sent to server and uploads successfully instruction, subsequent operation is carried out with trigger the server.
In step 370, if the second fragment data uploads successfully, and there is also when data to be uploaded, then continue from waiting for
It passes to continue to be partitioned into the remaining data of data and removes the first fragment data and second point in fragment data, that is, data to be uploaded
The fragment being partitioned into remaining data except sheet data is uploaded to clothes as third fragment data, and by third fragment data
Business device, repeats above-mentioned steps 350 to step 370, if still continuing to be partitioned into N fragments, N is big without uploading successfully
In 3 positive integer, until all data upload successfully.
Optionally, in another embodiment of the invention, as shown in figure 4, the data processing method includes the following steps:
Step 410, the first fragment data is partitioned into from data to be uploaded;
Step 420, first fragment data is uploaded to server;
Step 430, when detecting first fragment data and uploading successfully, before judging to upload first fragment data
Network state and the network state that uploads after first fragment data it is whether identical, if so, enter step 440, if
It is no, then enter step 450;
Step 440, the second fragment data is partitioned into from the remaining data of the data to be uploaded, the second fragment data
Volume is more than the volume of first fragment data;After step 440,460 are entered step;
Step 450, the volume phase with first fragment data is partitioned into from the remaining data of the data to be uploaded
Deng the second fragment data;After step 450,460 are entered step;
Step 460, second fragment data is uploaded to the server;
Step 470, judge whether the data to be uploaded all upload;If so, 480 are entered step, if it is not, then entering
Step 490;
Step 480, it is sent to the server and uploads successfully instruction;
Step 490, continue to divide N fragment datas from the remaining data of the data to be uploaded and be uploaded to the clothes
Business device, wherein N is the positive integer more than or equal to 3.
In the following, by being further described to each step of the data processing method in the present exemplary embodiment.
The content of step 410-420 is identical as the content of step 310-320, content and the step 340- of step 460-490
370 content is identical, and for identical content, details are not described herein for the present embodiment.
In step 430, after the first fragment data uploads successfully, will continue to move from the remaining data of data to be uploaded
State selects the volume of suitable next fragment, and judges to upload the network state before and after the first fragment data.
In step 440, if network state does not change, the calculating according to the fitting of laboratory experience data is public
Formula is then partitioned into the second fragment data from the remaining data of data to be uploaded, and the volume of the second fragment data is more than described
The volume of first fragment data.According to the calculation formula that experiment experience data are fitted, the volume of the second fragment data is calculated,
In preferred embodiment, the volume of the second fragment data is the several times of the first fragment data volume, and the volume of the second fragment data
Less than the volume threshold of maximum fragment data.If each fragment uploads success, and network state does not change, then exists
In subsequent segmentation, the volume for all following next fragment is the several times of previous fragment.
In step 450, if network state changes, the body of the volume of the second fragment data and the first fragment data
Product is equal.It can be directly partitioned into the second fragment data of multiple volume equalizations, to be uploaded to server respectively.In other implementations
In example, it can also be first partitioned into a piece of second fragment data, after success to be uploaded, then comparing cell state again, and repeat
Step is stated again to divide.
Optionally, it in fragment upload procedure, due to network jitter, can be sent out when server load etc. is because being known as more
Sheet data estranged uploads the phenomenon that failure, as shown in figure 5, when detecting an arbitrary fragment data and uploading failure, then the side
Method further includes:
Step 510, the fragment data for uploading failure is cut at least one sub- fragment data;
Step 520, when being spaced the preset stand-by period, at least one sub- fragment data is uploaded respectively.
Specifically, when arbitrary primary fragment data uploads failure, then fragment is used to the fragment data for uploading failure
It retransmits.The purpose that fragment retransmits is exactly the fragment for again attempting to upload failure, but can't directly be used in this case upper
The fragment volume of secondary failure carries out fragment and retransmits trial, but can select the initial small value of fragment experience under a current network
(such as:Sub- fragment data), the volume of sub- fragment data can be equal with the volume of the first fragment data.In practical applications,
It is since caused by network type switching, network switching typically results in bandwidth, prolongs that, which there is very maximum probability in the reason of fragment upload failure,
When, the factors such as stability have greatly changed.The small value of suitable initial fragment experience, is conducive to improve lower point of new network environment
The probability of successful retransmission of piece.
Still there is certain probability to occur to upload failure in fragment retransmission processes, mould is retransmitted based on exponential backoff algorithm setting fragment
Block calculates the time of waiting according to indexation function, when distance uploads the time interval to fail and reaches the time of waiting, then
It initiates to retransmit next time and attempt, upload the sub- fragment data being newly partitioned into, rather than ceaselessly retransmit always, often cannot in this way
Success uploads, and can also run out of the number retried quickly, to judge that picture file uploads failure.Intelligence is retransmitted by exponential backoff
Energy algorithm improves fragment under extreme scenes and restores to upload successful probability, effectively reduces the probability that picture uploads failure.
Data processing method provided in this embodiment, runs on client, by being partitioned into first from data to be uploaded
Fragment data, if the first fragment data is successfully uploaded to server, continuation is partitioned into second from remaining data to be uploaded
Fragment data is simultaneously uploaded to server, if data to be uploaded all upload successfully, is sent to server and uploads successfully instruction,
Otherwise, continue to be partitioned into fragment data from remaining data to be uploaded, and repeat the above steps, until data to be uploaded upload
It completes.Compared with traditional picture uploading file be not in be caused by change of network environment using the method for the present embodiment
Upload mortality is high, the problems such as speed is slow, efficiency is low, but adaptively can upload data by Dynamic Program Slicing, improve
Pass success rate and uploading speed.
Second embodiment
As shown in fig. 6, the flow diagram of the data processing method provided for second embodiment of the invention.Second embodiment
Applied to server.The method of the embodiment by user once triggered, then the flow in the embodiment is by terminal automatic running,
Wherein, each step can successively be carried out according to the sequence in such as flow chart when operation, can also be according to reality
The multiple steps of situation are carried out at the same time, and are not limited herein, and the method for the information processing includes the following steps:
Step 610, obtain come from client upload the first fragment data, the second fragment data ..., N fragment numbers
According to, wherein N is the positive integer more than or equal to 3;
Step 620, when the upload for receiving the client transmission successfully instructs, merge the first fragment number
According to, the second fragment data ..., N fragment datas, and obtain completely uploading data.
By the above embodiment, the multiple fragment datas uploaded by obtaining client, and uploaded successfully receiving
Instruction when, multiple fragment datas of acquisition are merged, to obtain entirely uploading data.
In the following, by being further described to each step of the data processing method in the present exemplary embodiment.
In step 610, the fragment data that client uploads is obtained respectively to wait for after being properly received piece of data
Receive lower piece of data.For example, obtain the first fragment data first, second fragment data ... to be received such as then, N fragments
Data (wherein, N is the positive integer more than or equal to 3).
In step 620, if obtaining whole upload data, the upload that will receive client transmission is successful
Instruction is merged by the multiple fragment datas that will be obtained after receiving the instruction, all fragment datas is integrated,
Obtain entire data.For example, the multiple fragment image datas repeatedly received are integrated, and then obtain complete picture.
Optionally, as shown in fig. 7, between step 610 and 620, the data processing method of the present embodiment further includes:
Step 710, the link data of the network channel between detection and the client;
Step 720, the link data of the network channel is sent to the client.
Specifically, during obtaining fragment data, the link data of the network channel between detection and client, example
Such as:Round-trip delay (Round Trip Time, RTT), retransmission time out time (Retransmission Time Out, RTO) etc.
These link datas are sent to client by the network quality factor in the successful http response of fragment upload of client, from
And improve the accuracy of judgement of the client to network.
Optionally, before step 620, the data processing method of the present embodiment further includes:
Verify respectively first fragment data, the second fragment data ..., N fragment datas whether with the client
The fragment serial number of the fragment data of transmission is consistent with fragment cryptographic Hash.
Specifically, according to each fragment data is arranged in client serial number and cryptographic Hash, the parameter of fragment data is judged
It is whether consistent with client setting, to be verified to fragment data, if all fragment datas are consistent with preset value,
It verifies successfully and enters step 620, otherwise, verification fails and flow terminates.
Data processing method provided in this embodiment, runs on server, the first fragment uploaded by obtaining client
Data, the second fragment data ..., N fragment datas, and receive upload successfully instruction when, by multiple fragments of acquisition
Data are verified and are merged, and to obtain completely uploading data, improve the efficiency of data processing on the whole.
3rd embodiment
The terminal that third embodiment of the invention provides is based on the above embodiments, as shown in Figure 1, terminal includes processor
110 and memory 109;Wherein, processor 110 is for executing the data processor stored in memory 109, with realize with
Lower step:
The first fragment data is partitioned into from data to be uploaded;
First fragment data is uploaded to server;
When detection first fragment data uploads successfully, then it is partitioned into from the remaining data of the data to be uploaded
Second fragment data;
Second fragment data is uploaded to the server;
Judge whether the data to be uploaded all upload;Successfully instruction is uploaded if so, being sent to the server,
If it is not, then continue to divide N fragment datas from the remaining data of the data to be uploaded and be uploaded to the server,
In, N is the positive integer more than or equal to 3.
By the above embodiment, by being partitioned into the first fragment data from data to be uploaded, if the first fragment data
It is successfully uploaded to server, then continues to be partitioned into the second fragment data from remaining data to be uploaded and be uploaded to server,
If data to be uploaded all upload successfully, sent to server and upload successfully instruction, otherwise, continued from remaining to be uploaded
It is partitioned into fragment data in data, and repeats the above steps, completes, adaptively can dynamically divide until data to be uploaded upload
Piece uploads data, improves and uploads success rate and uploading speed.
It is connect specifically, client establishes HTTP with server by network, current network can be wireless network
(WIFI), it can also be mobile network, such as:3G 4G networks etc..Client monitors current network conditions in real time, works as needs
When uploading data to server, then according to different network conditions, the fragment data of a suitable volumes is determined, and to be uploaded
It is split in data, for the ease of understanding and describing, in the present embodiment, point being for the first time partitioned into from data to be uploaded
The piece number is stated to be the first fragment data.
In the present embodiment, the volume of fragment data derives from the empirical value that a large amount of test datas are got, can be not
There is relatively stable, reliable and quick uploading speed when same network type and bandwidth.
Optionally, the data to be uploaded in the present embodiment can be picture, file, audio, video data etc..
Optionally, each fragment data includes at least:Data information, fragment volume, fragment serial number and fragment cryptographic Hash.
Wherein, data information refers to the property parameters of data to be uploaded;Fragment volume refers to the fragment being partitioned into from data to be uploaded
The volume of data;Fragment serial number refers to the serial number of segmentation;Fragment cryptographic Hash refers to according to preset formula and fragment data meter
Obtained cryptographic Hash.
The first fragment data being partitioned into is uploaded to server.Multipart/ is initiated especially by network uploading module
The HTTP POST requests of form-data types submit picture file stream to server.
When the first fragment data uploads successfully, according to current network conditions, selected from the remaining data of data to be uploaded
The volume for taking out suitable next fragment data, as the second fragment data, that is to say, that the second fragment data is number to be uploaded
The fragment being partitioned into addition to the first fragment data in.
It can be by judging whether that there is also do not upload data to determine whether whole data to be uploaded are uploaded, at other
In embodiment, it can also be judged that the present invention is not specifically limited herein using other modes.
If the second fragment data uploads successfully, and no data to be uploaded, then data to be uploaded upload successfully.Namely
It says, data to be uploaded include the first fragment data and the second fragment data, and data to be uploaded upload successfully, then are sent out to server
Biography successfully instruction is served, subsequent operation is carried out with trigger the server.
If the second fragment data uploads successfully, and there is also when data to be uploaded, then continues the residue from data to be uploaded
Continue to be partitioned into data in fragment data, that is, data to be uploaded in addition to the first fragment data and the second fragment data
The fragment being partitioned into remaining data is uploaded to server as third fragment data, and by third fragment data, repeats
Process is stated, if still continuing to be partitioned into N fragments, N is the positive integer more than 3, until in all data without uploading successfully
It passes successfully.
Optionally, processor 110 is additionally operable to execute the data processor stored in memory 109, to realize following step
Suddenly:
It is network-like before judging to upload first fragment data when detection first fragment data uploads successfully
Whether the network state after state and upload first fragment data is identical, if so, from the residue of the data to be uploaded
The second fragment data is partitioned into data, the volume of the second fragment data is more than the volume of first fragment data, if it is not, then
Second fragment data equal with the volume of the first fragment data is partitioned into from the remaining data of the data to be uploaded.
Specifically, after the first fragment data uploads successfully, selected dynamic is continued from the remaining data of data to be uploaded
The volume of suitable next fragment is taken out, and judges to upload the network state before and after the first fragment data.
If network state does not change, according to the calculation formula that laboratory experience data are fitted, then to be uploaded
The second fragment data is partitioned into the remaining data of data, and the volume of the second fragment data is more than first fragment data
Volume.According to the calculation formula that experiment experience data are fitted, the volume of the second fragment data is calculated, in a preferred approach, the
The volume of two fragment datas is the several times of the first fragment data volume, and the volume of the second fragment data is less than maximum fragment number
According to volume threshold.If each fragment uploads success, and network state does not change, then in subsequent segmentation,
The volume for all following next fragment is the several times of previous fragment.
If network state changes, the volume of the second fragment data is equal with the volume of the first fragment data.Processing
Device 110 can directly be partitioned into the second fragment data of multiple volume equalizations, to be uploaded to server respectively.In other embodiment
In, it can also be first partitioned into a piece of second fragment data, after success to be uploaded, then comparing cell state again, and repeat above-mentioned
Step is divided again.
Optionally, it in fragment upload procedure, due to network jitter, can be sent out when server load etc. is because being known as more
Sheet data estranged uploads the phenomenon that failure, processor 110 is additionally operable to execute the data processor stored in memory 109, with
Realize following steps:
The fragment data for uploading failure is cut at least one sub- fragment data;
When being spaced the preset stand-by period, at least one sub- fragment data is uploaded respectively.
Specifically, when arbitrary primary fragment data uploads failure, then fragment is used to the fragment data for uploading failure
It retransmits.The purpose that fragment retransmits is exactly the fragment for again attempting to upload failure, but can't directly be used in this case upper
The fragment volume of secondary failure carries out fragment and retransmits trial, but can select the initial small value of fragment experience under a current network
(such as:Sub- fragment data), the volume of sub- fragment data can be equal with the volume of the first fragment data.In practical applications,
It is since caused by network type switching, network switching typically results in bandwidth, prolongs that, which there is very maximum probability in the reason of fragment upload failure,
When, the factors such as stability have greatly changed.The small value of suitable initial fragment experience, is conducive to improve lower point of new network environment
The probability of successful retransmission of piece.
Still there is certain probability to occur to upload failure in fragment retransmission processes, mould is retransmitted based on exponential backoff algorithm setting fragment
Block calculates the time of waiting according to indexation function, when distance uploads the time interval to fail and reaches the time of waiting, then
It initiates to retransmit next time and attempt, upload the sub- fragment data being newly partitioned into, rather than ceaselessly retransmit always, often cannot in this way
Success uploads, and can also run out of the number retried quickly, to judge that picture file uploads failure.Intelligence is retransmitted by exponential backoff
Energy algorithm improves fragment under extreme scenes and restores to upload successful probability, effectively reduces the probability that picture uploads failure.
Terminal provided in this embodiment, by being partitioned into the first fragment data from data to be uploaded, if the first fragment number
According to server is successfully uploaded to, then continue to be partitioned into the second fragment data from remaining data to be uploaded and be uploaded to service
Device sends to server if data to be uploaded all upload successfully and uploads successfully instruction, and otherwise, continuation is waited for from remaining
It uploads in data and is partitioned into fragment data, and repeat the above steps, completed until data to be uploaded upload.Using the present embodiment
Terminal is not in that mortality height, speed are uploaded caused by by change of network environment compared with traditional picture uploading file
Slowly the problems such as, efficiency is low, but adaptively can upload data by Dynamic Program Slicing, it improves and uploads success rate and uploading speed.
Fourth embodiment
The terminal that fourth embodiment of the invention provides is based on the above embodiments, as shown in figure 8, terminal includes processor
810 and memory 820;Wherein, processor 810 is for executing the data processor stored in memory 820, with realize with
Lower step:
Obtain come from client upload the first fragment data, the second fragment data ..., N fragment datas, wherein N
For the positive integer more than or equal to 3;
When receiving the upload that the client is sent and successfully instructing, merge first fragment data, second point
Sheet data ..., N fragment datas, and obtain completely uploading data.
By the above embodiment, multiple fragment datas that terminal is uploaded by obtaining client, and uploaded receiving
Successfully when instruction, multiple fragment datas of acquisition are merged, to obtain entirely uploading data.
Specifically, respectively obtain client upload fragment data, after being properly received piece of data, wait it is to be received under
Piece of data.For example, obtain the first fragment data first, second fragment data ... to be received such as then, N fragment data (its
In, N is the positive integer more than or equal to 3).
If obtaining whole upload data, the upload that will receive client transmission successfully instructs, and is receiving
After the instruction, is merged by the multiple fragment datas that will be obtained, all fragment datas are integrated, are entirely counted
According to.For example, the multiple fragment image datas repeatedly received are integrated, and then obtain complete picture.
Optionally, processor 810 is additionally operable to execute the data processor stored in memory 820, to realize following step
Suddenly:
The link data of network channel between detection and the client;
The link data of the network channel is sent to the client.
Specifically, during obtaining fragment data, the link data of the network channel between detection and client, example
Such as:The network qualities factor such as RTT, RTO sends these link datas in the successful http response of fragment upload of client
To client, to improve the accuracy of judgement of the client to network.
Optionally, processor 810 is additionally operable to execute the data processor stored in memory 820, to realize following step
Suddenly:
Verify respectively first fragment data, the second fragment data ..., N fragment datas whether with the client
The fragment serial number of the fragment data of transmission is consistent with fragment cryptographic Hash.
Specifically, according to each fragment data is arranged in client serial number and cryptographic Hash, the parameter of fragment data is judged
It is whether consistent with client setting, to be verified to fragment data, if all fragment datas are consistent with preset value,
It verifies successfully, otherwise, verification fails and flow terminates.
Terminal provided in this embodiment, runs on server, passes through the first fragment data of acquisition client upload, second
Fragment data ..., N fragment datas, and receive upload successfully instruction when, multiple fragment datas of acquisition are subjected to school
It tests and merges, to obtain completely uploading data, improve the efficiency of data processing on the whole.
5th embodiment
The embodiment of the present invention additionally provides a kind of computer readable storage medium.Here computer readable storage medium is deposited
Contain one or more program.Wherein, computer readable storage medium may include volatile memory, such as arbitrary access
Memory;Memory can also be hard including nonvolatile memory, such as read-only memory, flash memory, hard disk or solid-state
Disk;Memory can also include the combination of the memory of mentioned kind.When one or more in computer readable storage medium
Program can be executed by one or more processor, to realize data that above-mentioned first embodiment or second embodiment are provided
Processing method.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of data processing method is applied to client, which is characterized in that the method includes the steps:
The first fragment data is partitioned into from data to be uploaded;
First fragment data is uploaded to server;
When detection first fragment data uploads successfully, then second is partitioned into from the remaining data of the data to be uploaded
Fragment data;
Second fragment data is uploaded to the server;
Judge whether the data to be uploaded all upload;
Successfully instruction is uploaded if so, being sent to the server;
If it is not, then continue to divide N fragment datas from the remaining data of the data to be uploaded and be uploaded to the server,
Wherein, N is the positive integer more than or equal to 3.
2. data processing method according to claim 1, which is characterized in that in the remaining data from the data to be uploaded
In be partitioned into before the second fragment data, the method further includes:
It is network-like after network state and upload first fragment data before judging to upload first fragment data
Whether state is identical;
If so, the volume of second fragment data is more than the volume of first fragment data.
3. data processing method according to claim 2, which is characterized in that described from institute if network state differs
It states and is partitioned into the second fragment data in the remaining data of data to be uploaded and specifically includes:
Second fragment equal with the volume of the first fragment data is partitioned into from the remaining data of the data to be uploaded
Data.
4. data processing method according to claim 1, which is characterized in that when detecting fragment data upload failure, institute
The method of stating further includes:
The fragment data for uploading failure is cut at least one sub- fragment data;
When being spaced the preset stand-by period, at least one sub- fragment data is uploaded respectively.
5. data processing method according to claim 1, which is characterized in that fragment data includes:Data information, fragment body
Product, fragment serial number and fragment cryptographic Hash.
6. a kind of data processing method is applied to server, which is characterized in that the method includes the steps:
Obtain come from client upload the first fragment data, the second fragment data ..., N fragment datas, wherein N is big
In the positive integer equal to 3;
When the upload for receiving the client transmission successfully instructs, merge first fragment data, the second fragment number
According to ..., N fragment datas, and obtain completely uploading data.
7. data processing method according to claim 6, which is characterized in that come from the first of client upload obtaining
Fragment data, the second fragment data ..., after N fragment datas, the method further includes:
The link data of network channel between detection and the client;
The link data of the network channel is sent to the client.
8. data processing method according to claim 6, which is characterized in that merging first fragment data, second
Fragment data ..., before N fragment datas, the method further includes:
Verify respectively first fragment data, the second fragment data ..., N fragment datas whether with the client send
Fragment data fragment serial number it is consistent with fragment cryptographic Hash.
9. a kind of terminal, which is characterized in that the terminal includes processor and memory;
The processor is for executing the data processor stored in memory, to realize that claim 1-5 or 6-8 are any
Method described in.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or
Multiple programs, one or more of programs can be executed by one or more processor, with realize claim 1-5 or
6-8 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810320746.9A CN108574735B (en) | 2018-04-11 | 2018-04-11 | Data processing method, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810320746.9A CN108574735B (en) | 2018-04-11 | 2018-04-11 | Data processing method, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108574735A true CN108574735A (en) | 2018-09-25 |
CN108574735B CN108574735B (en) | 2022-07-12 |
Family
ID=63574734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810320746.9A Expired - Fee Related CN108574735B (en) | 2018-04-11 | 2018-04-11 | Data processing method, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108574735B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639826A (en) * | 2019-01-04 | 2019-04-16 | 厦门中控智慧信息技术有限公司 | A kind of data transmission method, terminal device and server |
CN109905479A (en) * | 2019-03-04 | 2019-06-18 | 腾讯科技(深圳)有限公司 | Document transmission method and device |
CN111200479A (en) * | 2018-11-19 | 2020-05-26 | 福建天泉教育科技有限公司 | Transmission data verification method and storage medium |
CN113518108A (en) * | 2021-04-23 | 2021-10-19 | 北京奇艺世纪科技有限公司 | Fragment uploading method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015050572A (en) * | 2013-08-30 | 2015-03-16 | ブラザー工業株式会社 | Information processing device, program, and information processing method |
CN104967634A (en) * | 2014-05-21 | 2015-10-07 | 腾讯科技(北京)有限公司 | File upload method and apparatus thereof |
CN105430035A (en) * | 2014-09-18 | 2016-03-23 | 腾讯科技(北京)有限公司 | Network data uploading method and device |
WO2016083740A1 (en) * | 2014-11-28 | 2016-06-02 | B<>Com | Method for processing a data delivery request |
CN106302589A (en) * | 2015-05-27 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Document transmission method and terminal |
-
2018
- 2018-04-11 CN CN201810320746.9A patent/CN108574735B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015050572A (en) * | 2013-08-30 | 2015-03-16 | ブラザー工業株式会社 | Information processing device, program, and information processing method |
CN104967634A (en) * | 2014-05-21 | 2015-10-07 | 腾讯科技(北京)有限公司 | File upload method and apparatus thereof |
CN105430035A (en) * | 2014-09-18 | 2016-03-23 | 腾讯科技(北京)有限公司 | Network data uploading method and device |
WO2016083740A1 (en) * | 2014-11-28 | 2016-06-02 | B<>Com | Method for processing a data delivery request |
CN106302589A (en) * | 2015-05-27 | 2017-01-04 | 腾讯科技(深圳)有限公司 | Document transmission method and terminal |
Non-Patent Citations (2)
Title |
---|
HAN QIU,GERARD MEMMI,HASSAN NOURA: ""An Efficient Secure Storage Scheme Based on Information Fragmentation"", 《2017 IEEE 4TH INTERNATIONAL CONFERENCE ON CYBER SECURITY AND CLOUD COMPUTING (CSCLOUD)》 * |
张慧: "多媒体会议系统中音视频传输优化机制的设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111200479A (en) * | 2018-11-19 | 2020-05-26 | 福建天泉教育科技有限公司 | Transmission data verification method and storage medium |
CN111200479B (en) * | 2018-11-19 | 2022-04-12 | 福建天泉教育科技有限公司 | Transmission data verification method and storage medium |
CN109639826A (en) * | 2019-01-04 | 2019-04-16 | 厦门中控智慧信息技术有限公司 | A kind of data transmission method, terminal device and server |
CN109905479A (en) * | 2019-03-04 | 2019-06-18 | 腾讯科技(深圳)有限公司 | Document transmission method and device |
CN113518108A (en) * | 2021-04-23 | 2021-10-19 | 北京奇艺世纪科技有限公司 | Fragment uploading method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108574735B (en) | 2022-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN108563499A (en) | CDN server switching method, mobile terminal and computer readable storage medium | |
CN108574735A (en) | Data processing method, terminal and computer readable storage medium | |
CN108762876A (en) | A kind of input method switching method, mobile terminal and computer storage media | |
CN109725866A (en) | Application interface display methods, terminal and computer readable storage medium | |
CN109453523A (en) | A kind of game picture display processing method, terminal and computer readable storage medium | |
CN109005574A (en) | Cell selecting method, mobile terminal and computer readable storage medium | |
CN109982402A (en) | Terminal voice call method, mobile terminal and computer readable storage medium | |
CN107580336A (en) | A kind of method for connecting network, terminal and computer-readable recording medium | |
CN109144705A (en) | Application management method, mobile terminal and computer readable storage medium | |
CN108198150A (en) | A kind of removing method of dead pixel points of images, terminal and storage medium | |
CN107635232A (en) | A kind of network share method, terminal and computer-readable recording medium | |
CN107749947A (en) | Photographic method, mobile terminal and computer-readable recording medium | |
CN107124718A (en) | Data transmission method, mobile terminal and storage medium | |
CN108958936A (en) | Application programe switch-over method, mobile terminal and computer readable storage medium | |
CN108600513A (en) | A kind of record screen control method, equipment and computer readable storage medium | |
CN109672843A (en) | Video communication method, terminal and computer readable storage medium | |
CN110052023A (en) | Game control method, mobile terminal and computer readable storage medium | |
CN110086993A (en) | Image processing method, device, mobile terminal and computer readable storage medium | |
CN110087267A (en) | Method for switching network, device, electronic equipment and readable storage medium storing program for executing | |
CN110052024A (en) | Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration | |
CN109005354A (en) | Image pickup method, mobile terminal and computer readable storage medium | |
CN108536383A (en) | A kind of game control method, equipment and computer readable storage medium | |
CN108566456A (en) | Image pickup method, mobile terminal and computer readable storage medium | |
CN109358796A (en) | A kind of game visual field sharing method, terminal and readable storage medium storing program for executing |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220620 Address after: 462400 No. 100, Fumin Road, Wuquan Town, Wuyang County, Luohe City, Henan Province Applicant after: Chai Sensen Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220712 |