File uploading method and device, terminal, server and readable storage medium

A file upload and server technology, applied in the field of computer vision, can solve problems such as long upload time, waste of traffic, complex terminal business logic, etc., and achieve the effect of realizing service, reducing data volume, and saving traffic

Inactive Publication Date: 2019-05-31
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF7 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the upload period, the terminal needs to monitor the upload process of each piece in real time to determine the upload status of each piece, and then determine the piece to be uploaded next time, which makes the business logic of the terminal more complex, takes a long time to upload, and wastes traffic

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File uploading method and device, terminal, server and readable storage medium
  • File uploading method and device, terminal, server and readable storage medium
  • File uploading method and device, terminal, server and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a flow chart of a file uploading method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where a terminal uploads a file to a server. The method can be executed by a file uploading device, which can be implemented by hardware and / or software Composition, and generally integrated in the terminal, specifically includes the following operations:

[0047] S110. Fragment the file to be uploaded to obtain multiple fragment data.

[0048] In this embodiment, the file to be uploaded is generally relatively large, and the file needs to be uploaded in pieces. Files to be uploaded include but are not limited to video files, audio files, documents, etc. Optionally, the terminal divides the file into multiple pieces of data according to piece information, and the piece information includes piece size and number of pieces. Optionally, the fragmentation information can be obtained from the server first, or set in advance. ...

Embodiment 2

[0062] This embodiment is further optimized on the basis of the optional implementation manners of the foregoing embodiments. Optionally, optimize the operation "upload the fragment data corresponding to the current fragment data information to be uploaded to the server" to "obtain fragment data upload methods from the server, and the fragment data upload methods include serial upload or parallel upload method; according to the fragment data upload method, upload the fragment data corresponding to the fragment data information to be uploaded to the server", so that the terminal does not need to determine the fragment data upload method by itself, further reducing the business logic of the terminal.

[0063] figure 2 It is a flow chart of a file upload method provided by Embodiment 2 of the present invention, such as figure 2 As shown, the method provided in this embodiment includes the following operations:

[0064] S210. Fragment the file to be uploaded to obtain multiple...

Embodiment 3

[0077] image 3 It is a flow chart of a file upload method provided by Embodiment 3 of the present invention. The embodiments of the present invention are optimized on the basis of the technical solutions of the foregoing embodiments. Optionally, the operation "upload the fragment data corresponding to the current fragment data information to be uploaded to the server" is optimized to "upload the fragment data corresponding to the current fragment data information to be uploaded to the server and the fragment data corresponding The unique identifier is used for the server to determine that the fragmented data has not been uploaded according to the unique identifier, receive the fragmented data uploaded by the terminal, and return the fragment upload completion status to the terminal, so as to avoid repeatedly receiving fragmented data. combine image 3 , the method provided in this embodiment includes the following operations:

[0078] S310. Fragment the file to be uploaded...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a file uploading method and device, a terminal, a server and a readable storage medium. The method comprises the following steps: fragmenting a to-be-uploadedfile to obtain a plurality of pieces of fragmented data; acquiring current fragmented data information to be uploaded from a server; uploading the fragmented data corresponding to the current fragmented data information to be uploaded to a server, so that the server determines the current fragmented data information to be uploaded according to the uploaded fragmented data; and returning to execute the acquisition operation of the current to-be-uploaded fragmented data information until the uploading of all the fragmented data is completed, thereby simplifying the service logic of the terminal. Meanwhile, information interaction with a server and a network is reduced; and quick and low-cost access of various terminals and third-party services is supported.

Description

technical field [0001] Embodiments of the present invention relate to computer vision technology, and in particular to a file upload method, device, terminal, server, and readable storage medium. Background technique [0002] With the continuous evolution of the Internet, users have increasingly strong demand for diversified content. Graphics, short videos, live broadcasts, etc. are called new growth points of the content industry. To share these graphics, short videos, live broadcasts and other files, terminals need to It is uploaded to the corresponding server. [0003] Because these files are relatively large, when the terminal uploads them to the corresponding server, it needs to divide the files into blocks and slices, and upload each slice in turn. During the upload period, the terminal needs to monitor the upload process of each piece in real time to determine the upload status of each piece, and then determine the piece to be uploaded next time, which makes the busi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
Inventor 王学兵
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products