Method, system and client for uploading image, network server and computer storage medium
First Claim
1. A method for uploading an image from a client to a network server connecting to the client through a network, wherein the method is performed by the client having one or more processors, the method comprising:
- determining an image to be uploaded from the client to the network server;
generating a unique image identifier corresponding to the image to be uploaded according to feature information of the image, the feature information including one or more of;
a shape, a color, and a texture of the image;
determining whether there is an image identifier corresponding to the image to be uploaded in a synchronization list of the client, wherein the synchronization list stores image identifiers corresponding to images that have been uploaded to the network server successfully;
in accordance with a determination that there is not an image identifier corresponding to the image to be uploaded in the synchronization list of the client, transmitting an image detection request to the network server, the image detection request including the image identifier;
receiving a detection result from the network server indicating whether there is an image in the network server having the same image identifier as the image identifier included in the image detection request;
responsive to the detection result that there is not an image having the same image identifier in the network server, uploading the image to be uploaded in the form of multi-part uploading to the network server, further comprising;
detecting in real time a network transmission rate of current network environment;
determining a number of bytes occupied by each part of the image to be uploaded according to the network transmission rate of current network environment;
dividing the image to be uploaded into multiple parts, each part having a size no greater than the determined number of bytes; and
uploading each of the multiple parts of the image to the network server separately; and
after the image is uploaded successfully;
receiving an upload success response from the network server; and
storing the image identifier into the synchronization list of the client according to the upload success response is received.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure relates to the technical field of wireless network communications, and provides a method, system and client for uploading an image, a network server and a computer storage medium. The method includes: a client determines an image to be uploaded, generates a unique image identifier corresponding to the image to be uploaded, and transmits an image detection request to a network server; the network server detects whether there is an image having the same image identifier in the network server according to the image identifier included in the image detection request, and returns a detection result to the client; when the detection result is that there is not an image having the same image identifier in the network server, the client uploads the image to be uploaded in the form of multi-part uploading to the network server; and after the image to be uploaded is uploaded successfully, the network server records the image identifier, and returns an upload success response to the client. The present disclosure avoids a repeated uploading of a same image, so that the upload rate is improved, a great deal of network traffic bandwidth is saved, and user experiences are improved.
-
Citations
10 Claims
-
1. A method for uploading an image from a client to a network server connecting to the client through a network, wherein the method is performed by the client having one or more processors, the method comprising:
-
determining an image to be uploaded from the client to the network server; generating a unique image identifier corresponding to the image to be uploaded according to feature information of the image, the feature information including one or more of;
a shape, a color, and a texture of the image;determining whether there is an image identifier corresponding to the image to be uploaded in a synchronization list of the client, wherein the synchronization list stores image identifiers corresponding to images that have been uploaded to the network server successfully; in accordance with a determination that there is not an image identifier corresponding to the image to be uploaded in the synchronization list of the client, transmitting an image detection request to the network server, the image detection request including the image identifier; receiving a detection result from the network server indicating whether there is an image in the network server having the same image identifier as the image identifier included in the image detection request; responsive to the detection result that there is not an image having the same image identifier in the network server, uploading the image to be uploaded in the form of multi-part uploading to the network server, further comprising; detecting in real time a network transmission rate of current network environment; determining a number of bytes occupied by each part of the image to be uploaded according to the network transmission rate of current network environment; dividing the image to be uploaded into multiple parts, each part having a size no greater than the determined number of bytes; and uploading each of the multiple parts of the image to the network server separately; and after the image is uploaded successfully; receiving an upload success response from the network server; and storing the image identifier into the synchronization list of the client according to the upload success response is received. - View Dependent Claims (2, 3, 4)
-
-
5. A client for uploading an image from the client to a network server connecting to the client through a network, comprising:
-
memory storing computer-executable instructions; and one or more processors executing the computer-executable instructions to perform a method comprising; determining an image to be uploaded from the client to the network server; generating a unique image identifier corresponding to the image to be uploaded according to feature information of the image, the feature information including one or more of;
a shape, a color, and a texture of the image;determining whether there is an image identifier corresponding to the image to be uploaded in a synchronization list, wherein the synchronization list stores image identifiers corresponding to images that have been uploaded to the network server successfully; in accordance with a determination that there is not an image identifier corresponding to the image to be uploaded in the synchronization list of the client, transmitting an image detection request to the network server, the image detection request including the image identifier; receiving a detection result from the network server indicating whether there is an image in the network server having the same image identifier as the image identifier included in the image detection request; responsive to the detection result that there is not an image having the same image identifier in the network server, uploading the image to be uploaded in the form of multi-part uploading to the network server, further comprising; detecting in real time a network transmission rate of current network environment; determining a number of bytes occupied by each part of the image to be uploaded according to the network transmission rate of current network environment; dividing the image to be uploaded into multiple parts, each part having a size no greater than the determined number of bytes; and uploading each of the multiple parts of the image to the network server separately; after the image is uploaded successfully; receiving an upload success response from the network server; and storing the image identifier into the synchronization list of the client after the upload success response is received. - View Dependent Claims (6)
-
-
7. A non-transitory computer-readable storage medium with computer-executable instructions stored thereon, at a client for uploading an image from the client to a network server connecting to the client through a network, the computer-executable instructions are executable for:
-
determining an image to be uploaded from the client to the network server; generating a unique image identifier corresponding to the image to be uploaded according to feature information of the image, the feature information including one or more of;
a shape, a color, and a texture of the image;determining whether there is an image identifier corresponding to the image to be uploaded in a synchronization list of the client, wherein the synchronization list stores image identifiers corresponding to images that have been uploaded to the network server successfully; in accordance with a determination that there is not an image identifier corresponding to the image to be uploaded in the synchronization list of the client, transmitting an image detection request to the network server, the image detection request including the image identifier; receiving a detection result from the network server indicating whether there is an image in the network server having the same image identifier as the image identifier included in the image detection request; responsive to the detection result that there is not an image having the same image identifier in the network server, uploading the image to be uploaded in the form of multi-part uploading to the network server, further comprising; detecting in real time a network transmission rate of current network environment; determining a number of bytes occupied by each part of the image to be uploaded according to the network transmission rate of current network environment; dividing the image to be uploaded into multiple parts, each part having a size no greater than the determined number of bytes; and uploading each of the multiple parts of the image to the network server separately; and after the image to be uploaded is uploaded successfully; receiving an upload success response from the network server; and storing the image identifier into the synchronization list of the client according to the upload success response is received. - View Dependent Claims (8, 9, 10)
-
Specification