WO2020233168A1 - 图片类评论数据的网络存储方法、装置、电子设备及介质 - Google Patents

图片类评论数据的网络存储方法、装置、电子设备及介质 Download PDF

Info

Publication number
WO2020233168A1
WO2020233168A1 PCT/CN2020/073799 CN2020073799W WO2020233168A1 WO 2020233168 A1 WO2020233168 A1 WO 2020233168A1 CN 2020073799 W CN2020073799 W CN 2020073799W WO 2020233168 A1 WO2020233168 A1 WO 2020233168A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
location information
comment
data
information corresponding
Prior art date
Application number
PCT/CN2020/073799
Other languages
English (en)
French (fr)
Inventor
王岳晨
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2020233168A1 publication Critical patent/WO2020233168A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Definitions

  • the embodiments of the present disclosure relate to the field of data processing technology, for example, to a network storage method, device, electronic device, and medium for image-type comment data.
  • the data form of the data posted by users is no longer limited to text data, but can also include image data.
  • the embodiments of the present disclosure provide a network storage method, device, electronic equipment, and medium for image-type comment data, which can reduce the pressure of interface data transmission and reduce the management difficulty of comment data.
  • the embodiments of the present disclosure provide a method for network storage of image comment data, the method including:
  • the client divides the picture comment data to be stored into at least one picture and other comment data
  • the client uploads the at least one picture to a general server for storage, and receives the storage location information corresponding to the at least one picture fed back by the general server;
  • the client splicing the storage location information corresponding to at least one picture with the other comment data to obtain picture comment result data, and upload the picture comment result data to at least one service server;
  • the stored location information corresponding to the at least one picture is used to instruct the service server to obtain access location information corresponding to the at least one picture from the general server, and replace the stored location information with the access location information To store the access location information.
  • the embodiments of the present disclosure provide a method for network storage of image comment data, the method including:
  • the business server receives the picture comment result data sent by the client;
  • the picture comment result data is that the client combines the storage location information corresponding to at least one picture in the picture comment data provided by the general server and other comment data in the picture comment data. owned;
  • the service server sends the storage location information corresponding to the at least one picture in the picture comment result data to the general server, and receives feedback from the general server corresponding to the at least one picture Access location information;
  • the service server uses the access location information corresponding to the at least one picture to replace the stored location information corresponding to the at least one picture in the picture-type comment result data.
  • the embodiments of the present disclosure provide a method for network storage of image comment data, the method including:
  • the universal server receives at least one picture in the picture comment data uploaded by the client and stores the at least one picture
  • the universal server feeds back the storage location information corresponding to the at least one picture to the client according to the storage address of the at least one picture;
  • the storage location information is used to instruct the client to splice the storage location information corresponding to the at least one picture with other comment data in the picture comment data to obtain picture comment result data, and Upload the image comment result data to at least one business server;
  • the general server generates access location information corresponding to the at least one picture according to the domain name information of the service server and feeds back the access location information to the service server.
  • the embodiment of the present disclosure also provides a network storage device for image-type comment data, which is set in a client, and the device includes:
  • the picture comment data division module which is used to divide the picture comment data to be stored into at least one picture and other comment data;
  • the storage location information acquisition module is configured to upload the at least one picture to a general server for storage, and receive the storage location information corresponding to the at least one picture fed back by the general server;
  • the picture comment result data uploading module is configured to splice the storage location information corresponding to at least one picture with the other comment data to obtain picture comment result data, and upload the picture comment result data to at least one service server
  • the storage location information corresponding to the at least one picture is used to instruct the service server to obtain the access location information corresponding to the at least one picture from the general server and replace the storage location with the access location information Information to store access location information.
  • the embodiment of the present disclosure also provides a network storage device for image comment data, which is set in a service server, and the device includes:
  • the picture comment result data acquisition module is configured to receive picture comment result data sent by the client; wherein the picture comment result data is at least one piece of picture comment data provided by the client from a general server
  • the storage location information corresponding to the picture is obtained by splicing with other comment data in the picture comment data;
  • Access to the positioning information transmission module configured to send the stored positioning information corresponding to the at least one picture in the picture comment result data to the general server, and receive feedback from the general server with the at least one picture Visit location information corresponding to a picture;
  • the storage location information replacement module is configured to replace the storage location information corresponding to the at least one picture in the picture comment result data with the access location information corresponding to the at least one picture.
  • the embodiment of the present disclosure also provides a network storage device for image comment data, which is set in a general server, and the device includes:
  • the picture storage module is configured to receive and store at least one picture in the picture comment data uploaded by the client;
  • the storage location information feedback module is configured to feed back storage location information corresponding to the at least one picture to the client according to the storage address of the at least one picture; wherein the storage location information is used to indicate the The client splicing the storage location information corresponding to the at least one picture with other comment data in the picture comment data to obtain picture comment result data, and upload the picture comment result data to at least one service server ;
  • a storage location information receiving module configured to receive storage location information corresponding to the at least one picture sent by the service server;
  • the access location information feedback module is configured to generate access location information corresponding to the at least one picture according to the domain name information of the service server and feed back the access location information to the service server.
  • An embodiment of the present disclosure also provides an electronic device, which includes:
  • One or more processors are One or more processors;
  • Memory set to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the network storage method for picture-type comment data as described in the embodiments of the present disclosure.
  • the embodiment of the present disclosure further provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • Fig. 1a is a structural diagram of a network storage system for image comment data in an embodiment of the present disclosure
  • FIG. 1b is a flowchart of a method for network storage of image comment data in an embodiment of the present disclosure
  • FIG. 1c is a schematic diagram of a display interface of picture comment data in an embodiment of the present disclosure.
  • FIG. 2 is a flowchart of a method for network storage of image comment data in an embodiment of the present disclosure
  • Fig. 3a is a flowchart of a method for network storage of image comment data in an embodiment of the present disclosure
  • Fig. 3b is a flowchart of a method for network storage of image comment data in an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a network storage device for image comment data in an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a network storage device for image comment data in an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a network storage device for image comment data in an embodiment of the present disclosure
  • Fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • FIG. 1a shows a structural diagram of a network storage system for image comment data to which the embodiment of the present disclosure is applicable.
  • the system includes: one or more user equipment 100 (used to configure client software), a general server 200, and one or more service servers 300.
  • the service server refers to a server that provides a service (short video or live broadcast, etc.) service, and the service server is generally configured for use with a client installed in a user equipment. Through the client, the user can input and upload comment data for the published content provided by the business service.
  • the comment data may include picture-type comment data, and the picture-type comment data may include one or more pictures.
  • the general server refers to a server for storing pictures.
  • the image-type comment data when a user inputs and uploads image-type comment data using the published content provided by the client for a certain business service, the image-type comment data is not directly uploaded by the client to the business server and the business server is The picture-type comment data is stored, but the client first separates the pictures in the picture-type comment data and uploads it to a general server.
  • the general server stores the received pictures and feeds back the storage location information to the client.
  • the client terminal splices the storage location information and other comment data to form picture comment result data, and then the client uploads the picture comment result data to the service server.
  • the business server obtains the storage location information in the picture comment result data and sends the storage location information to the general server.
  • the general server determines the picture stored by the general server according to the storage location information, and feeds back the access location information corresponding to the picture to the service server .
  • the service server replaces the stored storage location information with access location information. Therefore, the service server can obtain the matching access location information and other matching comment data according to the comment viewing request associated with the picture-type comment data sent by the client of the user equipment, and send the access location information to the general server.
  • the general server obtains the matched picture according to the access location information and feeds the obtained picture back to the service server, and the service server feeds back the picture and other comment data to the client.
  • the client splices pictures and other comment data for display.
  • Figure 1b is a flowchart of a method for network storage of image comment data in an embodiment of the present disclosure. This embodiment is applicable to a situation where a client uploads comment data including images. It can be implemented by a storage device.
  • the device can be implemented in software and/or hardware.
  • the device can be configured in a client of an electronic device, such as a client of a terminal device.
  • the terminal device is typically a mobile phone, a tablet, or a vehicle-mounted device. Wait.
  • the method includes the following steps:
  • S110 The client divides the picture-type comment data to be stored into at least one picture and other comment data.
  • the picture-type comment data to be stored is used for storage in the server, and may refer to comment data provided by the user through the client and needs to be uploaded to the network for storage.
  • the picture-type comment data may include at least one picture.
  • the other comment data is used to distinguish it from the picture. It does not include the picture and may include text data.
  • the data type of the other comment data is rich text format.
  • the data in the picture comment data is divided into pictures and other comment data, which are used to separate the picture data from the picture comment data.
  • S120 The client uploads the at least one picture to a general server for storage, and receives the storage location information corresponding to the at least one picture fed back by the general server.
  • the general server is used to store pictures in picture comment data.
  • the storage location information is used to identify the storage location (address) of the corresponding picture in the general server, so that the general server can query the stored picture locally according to the storage location information.
  • the storage location information may include the width and height and format information of the picture, and may also include other attribute information of the picture, which is not limited in the embodiment of the present disclosure.
  • S130 The client splicing the storage location information corresponding to at least one picture with the other comment data to obtain picture comment result data, and upload the picture comment result data to at least one service server; where The storage location information corresponding to the at least one picture is used to instruct the service server to obtain the access location information corresponding to the at least one picture from the universal server and replace the storage location information with the access location information to store the access Positioning information.
  • the picture-type comment result data is used to send to the service server, so that the service server can manage the comment data and provide the client with comment data containing pictures.
  • the picture comment result data refers to comment data obtained by removing pictures from the picture comment data.
  • the access location information is used by the client and/or the service server to access the picture.
  • the storage location information is also used for the service server to obtain access location information pointing to the corresponding picture. In this embodiment, using the access location information to replace the stored location information can enable the service server to directly query the image identified by the stored location information.
  • the corresponding picture can be configured with a rich text picture object, and the storage location information is stored as a member attribute of the rich text picture.
  • the picture-type comment result data obtained by splicing the stored positioning information and other comment data only includes data in a rich text format.
  • the storage location information is a uniform resource identifier (Uniform Resource Identifier, URI), and the access location information is a uniform resource locator (Uniform Resource Locator, URL).
  • the uniform resource identifier may refer to a character string used to identify the name of a certain Internet resource. This type of identification allows users to interact with resources in the network (generally referred to as the World Wide Web) through a specified protocol.
  • Uniform resource locator can refer to the location of resources obtained from the Internet and the method of accessing these resources, providing an abstract identification method for the location of resources, and using this method to locate resources.
  • the access terminal can perform various operations on the resource, such as access, update, replacement, and search for attributes.
  • the storage location information is http://www.tongyong.com.cn/html/html40/; the access location information is http://www.yewu.com.cn/html/html40/welcome.jpg.
  • the access address of the picture can be quickly and accurately determined, so that the picture to be accessed can be obtained quickly.
  • the picture is stored in a general server other than the service server, and the storage location information and access location information that can locate the picture are obtained, so that only non-picture data is stored in the service server, which is convenient for management.
  • the client Other comment data other than pictures can be obtained directly from the service server, and the pictures can be accessed according to the access location information stored in the service server, so as to achieve complete obtaining of the comment data of the picture.
  • the method before the client divides the picture-type comment data to be stored into at least one picture and other comment data, the method further includes: the client obtains the comment data to be published that matches the comment publishing request; In the case where it is determined that the comment data to be published includes a comment picture, the client terminal determines the comment data to be published as the picture comment data to be stored.
  • the comment data to be published is used to send to the service server, so that other clients can obtain it through the service server.
  • the comment publishing request is used to instruct the client to send comment data to the service server.
  • Comment pictures are used to show users' views on things (posted content) in the form of image data.
  • the comment picture may include emoticons, such as static emoticons and dynamic emoticons.
  • the non-picture data is stored in the service server to realize the differentiated storage and management of the comment data, and improve the management efficiency of the comment data.
  • the embodiment of the present disclosure divides the picture comment data into pictures and non-picture comment data, uploads the pictures to the general server for storage, and obtains the storage positioning information for pointing to the pictures fed back by the general server, and stores the positioning information and non-picture comment data.
  • Image comment data is merged to generate image comment result data and uploaded to the business server, which realizes the separation of uploaded pictures and non-picture comment data, solves the problem of increasing the pressure on the interface caused by the transfer of image data on the interface for transferring comment data, and is used to store comments
  • the problem of increased difficulty in the management of the data server reducing the data size of the result data of picture comments, thereby reducing the pressure of interface data transmission, and the general server only stores pictures, and the business server only stores non-picture data, centrally distinguishing and managing different types of comments Data, reduce the management difficulty of comment data, and at the same time, improve the management efficiency of comment data of the business server.
  • the client may also send a comment view request for the result data of the image comment of a certain published content to the business service to obtain the result data of the image comment, and according to the access location in the result data of the image comment
  • the information downloads at least one matching picture from the general server through the business server, and splices at least one picture with other comment data in the picture-type comment result data, and displays the spliced at least one picture and other comment data.
  • a comment display control to trigger the display of a comment display interface for a posted content
  • one or more comment data is displayed in the comment display area by entry, and
  • the comment data may include image comment data.
  • FIG. 2 is a flowchart of a method for network storage of image comment data in an embodiment of the disclosure. This embodiment is applicable to a situation where a service server manages image comment result data sent by a client.
  • the method can be The image-type comment data is executed by a network storage device.
  • the device can be implemented in software and/or hardware.
  • the device can be configured in an electronic device, such as a service server that provides comment data management functions.
  • the method of this embodiment may include:
  • the service server receives the picture comment result data sent by the client; wherein the picture comment result data is the storage location information corresponding to at least one picture in the picture comment data provided by the general server by the client , Obtained by splicing with other comment data in the picture comment data.
  • the business server, client, general server, picture review data, storage location information, other review data, access location information, and picture review result data can all refer to the foregoing description.
  • the service server sends the storage location information corresponding to the at least one picture in the picture-type comment result data to the general server, and receives feedback from the general server and the at least one picture. Corresponding access location information.
  • the service server uses the access location information corresponding to the at least one picture to replace the stored location information corresponding to the at least one picture in the picture comment result data.
  • the client uploads pictures to the general server, and directly obtains storage location information.
  • the business server only needs to interact with the general server once to obtain matching access location information. It can avoid the situation that the service server obtains the picture-type comment data and separates the pictures to upload to the general server, obtains the access location information and stores the location information, and also needs to deliver the storage location information to the client.
  • the client can upload the image comment data separately, reduce the number of interactions between the service server and the general server, and improve the processing efficiency of the service server for the image comment data.
  • the method further includes : The service server provides the picture-type comment result data to the target client in the case of detecting a comment view request for the picture-type comment result data sent by the target client; wherein, the picture The access location information corresponding to the at least one picture in the comment result data is used to instruct the target client to download the at least one picture from the general server through the service server, and then transfer the at least one picture to After a picture is spliced with other comment data in the picture-type comment result data, at least one picture and other comment data after the splicing are displayed.
  • the comment viewing request is used to obtain image comment result data and display it to the user.
  • the matched picture comment result data is provided to the target client, so that the target client can obtain the pictures by accessing the positioning information and display the pictures, so that the pictures can be accurately obtained
  • the images matching the comment result data are displayed to improve the accuracy of query display images.
  • the embodiments of the present disclosure receive picture comment result data that does not contain pictures sent by the client, so that the comment data stored by the service server is all non-picture data, which improves the management efficiency of the service server for comment data, and at the same time, only interacts with the general server Once, replace the location information stored in the image comment result data with matching access location information to achieve access to the corresponding image, reduce the number of interactions between the service server and the general server and the client when storing comment data, and improve the storage efficiency of comment data .
  • Fig. 3a is a flowchart of a method for network storage of picture-type comment data in an embodiment of the disclosure. This embodiment may be applicable to a situation where a general server stores pictures sent by a client.
  • the method can be used for picture-type comment data.
  • the device can be implemented by a network storage device that can be implemented by software and/or hardware.
  • the device can be configured in an electronic device, such as a general-purpose server that provides the function of storing comment image data.
  • S310 The general server receives and stores at least one picture in the picture comment data uploaded by the client.
  • the business server, client, general server, picture review data, storage location information, other review data, access location information, and picture review result data can all refer to the foregoing description.
  • the universal server feeds back storage location information corresponding to the at least one picture to the client according to the storage address of the at least one picture; wherein the storage location information is used to instruct the client
  • the storage location information corresponding to the at least one picture is spliced with other comment data in the picture comment data to obtain picture comment result data, and the picture comment result data is uploaded to at least one service server.
  • the general server receives storage location information corresponding to the at least one picture and sent by the service server.
  • S340 The general server generates access location information corresponding to the at least one picture according to the domain name information of the service server, and feeds back the access location information to the service server.
  • the domain name information is used to determine the access location information.
  • the domain name information is the name of a computer or group of computers on the Internet composed of a series of names separated by dots, used to identify the electronic location of the computer during data transmission (Such as Internet Protocol (IP) address), sometimes also refers to geographic location.
  • IP Internet Protocol
  • the embodiments of the present disclosure configure a universal server to receive and store pictures uploaded by the client, and at the same time feed back the storage location information of the picture to the client, for the client to obtain the picture according to the storage location information and receive the storage location information sent by the service server , At the same time, it feeds back matching access location information, which is used by the business server to obtain a picture of the storage location information identification by accessing the location information, so as to realize the interaction between the general server and the client and the business server, avoiding the general server only interacting with the business server and indirectly to the client
  • Sending and storing location information from the end terminal leads to an increase in the workload of the business server, thereby improving the business processing efficiency of the business server, and at the same time, the general server centrally stores pictures for easy management.
  • FIG. 3b is a flowchart of a method for network storage of image comment data provided by an embodiment of the present disclosure.
  • the method provided in this embodiment includes the relationship between a client, a business server, and a general server in a network storage system for image comment data. Interaction. As shown in Figure 3b, the method provided in this embodiment includes the following steps:
  • S3510 The client divides the picture comment data to be stored into at least one picture and other comment data.
  • the client sends the at least one picture to a general server.
  • the general server receives the at least one picture for storage, and determines storage location information according to the storage address of the at least one picture.
  • S3540 The general server feeds back the storage location information corresponding to the at least one picture to the client.
  • S3550 The client splices the storage location information corresponding to at least one picture with the other comment data to obtain picture comment result data.
  • S3560 The client sends the picture comment result data to the service server.
  • the service server obtains storage location information corresponding to the at least one picture in the picture comment result data.
  • the service server sends the storage location information to the general server.
  • the general server generates access location information corresponding to the at least one picture according to the domain name information of the service server.
  • S3600 The general server feeds back the storage location information corresponding to the at least one picture to the service server.
  • the service server uses the access location information corresponding to the at least one picture to replace the stored location information corresponding to the at least one picture in the picture comment result data.
  • the embodiment of the present disclosure divides the picture-type comment data into picture and non-picture comment data through the client, and uploads the picture to the general server for storage, and at the same time obtains the storage location information for pointing to the picture fed back by the general server, and stores the location information Combine with non-image comment data to generate image comment result data and upload it to the business server to realize the separation of uploading image and non-image comment data, and upload the image comment data in time sharing, thereby reducing the pressure of interface data transmission, and the general server only stores For pictures, the business server only stores non-picture data, and centrally differentiates and manages different types of comment data, reducing the difficulty of managing comment data, and improving the efficiency of comment data management.
  • FIG. 4 is a schematic structural diagram of a network storage device for image-type comment data provided by an embodiment of the present disclosure. This embodiment is applicable to a situation where a client uploads comment data including pictures.
  • the device can be implemented in software and/or hardware, and the device can be configured in a client of an electronic device, for example, a client of a terminal device.
  • the device may include a picture-type comment data division module 410, a storage location information acquisition module 420, and a picture-type comment result data uploading module 430.
  • the picture comment data division module 410 is configured to divide the picture comment data to be stored into at least one picture and other comment data;
  • the storage location information acquisition module 420 is configured to upload the at least one picture to a general server for processing Store and receive the storage location information corresponding to at least one picture fed back by the general server;
  • the picture comment result data upload module 430 is configured to combine the storage location information corresponding to the at least one picture with the other comment data Perform splicing to obtain picture-type comment result data, and upload the picture-type comment result data to at least one service server; wherein, the storage location information corresponding to the at least one picture is used to instruct the service server to download from the universal The server obtains the access location information corresponding to the at least one picture and replaces the stored location information with the access location information to store the access location information.
  • the embodiment of the present disclosure divides the picture comment data into pictures and non-picture comment data, uploads the pictures to the general server for storage, and obtains the storage positioning information for pointing to the pictures fed back by the general server, and stores the positioning information and non-picture comment data.
  • Image comment data is merged to generate image comment result data and uploaded to the business server, which realizes the separation of uploaded pictures and non-picture comment data, solves the problem of increasing the pressure on the interface caused by the transfer of image data on the interface for transferring comment data, and is used to store comments
  • the problem of increased difficulty in the management of the data server reducing the data size of the result data of picture comments, thereby reducing the pressure of interface data transmission, and the general server only stores pictures, and the business server only stores non-picture data, centrally distinguishing and managing different types of comments Data, reduce the management difficulty of comment data, and at the same time, improve the management efficiency of comment data of the business server.
  • the network storage device for picture comment data includes: a picture comment data determining unit configured to divide the picture comment data to be stored into at least one picture and other comment data ,
  • the client terminal obtains the comment data to be posted that matches the comment posting request; in the case that the client side determines that the comment data to be posted includes a comment picture, it determines that the comment data to be posted is the Image comment data to be stored.
  • the storage location information includes: a uniform resource identifier; the access location information includes: a uniform resource locator.
  • FIG. 5 is a schematic structural diagram of a network storage device for image comment data provided by an embodiment of the disclosure. This embodiment may be applicable to a situation where a service server manages image comment result data sent by a client.
  • the device can be implemented in software and/or hardware, and the device can be configured in an electronic device, such as a service server that provides a comment data management function.
  • the device may include a picture review result data acquisition module 510, an access location information transmission module 520, and a storage location information replacement module 530.
  • the picture comment result data acquisition module 510 is configured to receive picture comment result data sent by the client; wherein the picture comment result data is at least one of the picture comment data provided by the client from the universal server
  • the stored positioning information corresponding to a picture is spliced with other comment data in the picture-type comment data; access to the positioning information transmission module 520 is set to match the at least one piece of the picture-type comment result data
  • the storage location information corresponding to the picture is sent to the general server, and the access location information corresponding to the at least one picture fed back by the general server is received; the storage location information replacement module 530 is configured to use the same with the at least one picture.
  • the access location information corresponding to the picture replaces the stored location information corresponding to the at least one picture in the picture comment result data.
  • the embodiments of the present disclosure receive picture comment result data that does not contain pictures sent by the client, so that the comment data stored by the service server is all non-picture data, which improves the management efficiency of the service server for comment data, and at the same time, only interacts with the general server Once, replace the location information stored in the image comment result data with matching access location information to achieve access to the corresponding image, reduce the number of interactions between the service server and the general server and the client when storing comment data, and improve the storage efficiency of comment data .
  • the network storage device for picture-type comment data includes: a comment viewing request processing unit configured to replace the picture-type with access location information corresponding to the at least one picture on the service server After the storage location information corresponding to the at least one picture in the comment result data, the service server sends the comment view request for the picture comment result data sent by the target client to the The picture comment result data is provided to the target client; wherein the access location information corresponding to the at least one picture in the picture comment result data is used to instruct the target client to pass the service server After downloading the at least one picture to the general server, the at least one picture is spliced with other comment data in the picture-type comment result data, and then the spliced at least one picture and other comment data are displayed.
  • the storage location information includes: a uniform resource identifier; the access location information includes: a uniform resource locator.
  • FIG. 6 is a schematic structural diagram of a network storage device for picture-type comment data provided by an embodiment of the present disclosure. This embodiment may be applicable to a situation where a general server stores pictures sent by a client.
  • the device may be implemented in software and/or hardware, and the device may be configured in an electronic device, for example, a general server that provides a storage function of comment picture data.
  • the device may include a picture storage module 610, a storage location information feedback module 620, a storage location information receiving module 630, and an access location information feedback module 640.
  • the picture storage module 610 is configured to receive at least one picture in the picture-type comment data uploaded by the client for storage; the storage location information feedback module 620 is configured to send the data to the client according to the storage address of the at least one picture Feedback the storage location information corresponding to the at least one picture; wherein the storage location information is used to instruct the client to combine the storage location information corresponding to the at least one picture with the information in the picture comment data Other comment data is spliced to obtain picture-type comment result data, and the picture-type comment result data is uploaded to at least one service server; the storage location information receiving module 630 is configured to receive the at least one picture sent by the service server Corresponding storage location information; the access location information feedback module 640 is configured to generate access location information corresponding to the at least one picture according to the domain name information of the service server and feed it back to the service server.
  • the embodiment of the present disclosure divides the picture comment data into pictures and non-picture comment data, uploads the pictures to the general server for storage, and obtains the storage positioning information for pointing to the pictures fed back by the general server, and stores the positioning information and non-picture comment data.
  • Image comment data is merged to generate image comment result data and uploaded to the business server, which realizes the separation of uploaded pictures and non-picture comment data, solves the problem of increasing the pressure on the interface caused by the transfer of image data on the interface for transferring comment data, and is used to store comments
  • the problem of increased difficulty in the management of the data server reducing the data size of the result data of picture comments, thereby reducing the pressure of interface data transmission, and the general server only stores pictures, and the business server only stores non-picture data, centrally distinguishing and managing different types of comments Data, reduce the management difficulty of comment data, and at the same time, improve the management efficiency of comment data of the business server.
  • the storage location information includes: a uniform resource identifier; the access location information includes: a uniform resource locator.
  • the embodiment of the present disclosure provides an electronic device.
  • FIG. 7 shows a schematic structural diagram of an electronic device (such as a terminal device or a server) 700 suitable for implementing the embodiment of the present disclosure.
  • the electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia players (Portable Multimedia Player, PMP), mobile terminals such as in-vehicle terminals (for example, in-vehicle navigation terminals) and fixed terminals such as digital televisions (TV), desktop computers, etc.
  • PDA Personal Digital Assistant
  • PAD Portable Android Device
  • PMP portable multimedia players
  • mobile terminals such as in-vehicle terminals (for example, in-vehicle navigation terminals) and fixed terminals such as digital televisions (TV), desktop computers, etc.
  • the electronic device shown in FIG. 7 is only an example, and should not bring any limitation to
  • the electronic device 700 may include a processing device (such as a central processing unit, a graphics processor, etc.) 701.
  • the processing device may be based on a program stored in a read-only memory (Read-Only Memory, ROM) 702 or from a storage device.
  • the device 708 loads a program in a random access memory (Random Access Memory, RAM) 703 to perform various appropriate actions and processes.
  • the RAM 703 also stores various programs and data required for the operation of the electronic device 700.
  • the processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704.
  • An input/output (I/O) interface 705 is also connected to the bus 704.
  • the following devices can be connected to the I/O interface 705: including input devices 706 such as touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD) Output devices 707 such as speakers, vibrators, etc.; storage devices 708 such as magnetic tapes, hard disks, etc.; and communication devices 709.
  • the communication device 709 may allow the electronic device 700 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 7 shows an electronic device 700 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product.
  • the computer program product includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702.
  • the computer program is executed by the processing device 701, it executes the above-mentioned functions defined in the network storage method for image-type comment data in the embodiment of the present disclosure.
  • the embodiments of the present disclosure also provide a computer-readable storage medium.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory, EPROM) or flash memory, optical fiber, compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • CD-ROM compact Disc Read-Only Memory
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device When the above-mentioned one or more programs are executed by the electronic device, the electronic device: the client terminal divides the picture-type comment data to be stored into at least one picture and other Comment data; the client uploads the at least one picture to a general server for storage, and receives the storage location information corresponding to the at least one picture fed back by the general server; the client will communicate with at least one The storage location information corresponding to the picture is spliced with the other comment data to obtain picture comment result data, and the picture comment result data is uploaded to at least one service server; wherein the storage location information corresponding to the at least one picture , For instructing the service server to obtain the access location information corresponding to the at least one picture from the general server and replace the storage location information with the access location information to store the access location information.
  • the electronic device when one or more of the above programs are executed by the electronic device, the electronic device: the service server receives the picture-type comment result data sent by the client; wherein, the picture-type comment result data is universally used by the client The storage location information corresponding to at least one picture in the picture comment data provided by the server is spliced with other comment data in the picture comment data; the service server combines the picture comment result data The storage location information corresponding to the at least one picture is sent to the general server, and the access location information corresponding to the at least one picture fed back by the general server is received; the service server uses the The access location information corresponding to a picture replaces the storage location information corresponding to the at least one picture in the picture comment result data.
  • the electronic device when one or more of the above-mentioned programs are executed by the electronic device, the electronic device: the general server receives at least one picture in the picture-type comment data uploaded by the client for storage; the general server according to the at least one picture The storage address of a picture, and the storage location information corresponding to the at least one picture is fed back to the client; wherein the storage location information is used to instruct the client to store the storage corresponding to the at least one picture The positioning information is spliced with other comment data in the picture comment data to obtain picture comment result data, and the picture comment result data is uploaded to at least one service server; the general server receives the data from the service server and The storage location information corresponding to the at least one picture; the general server generates access location information corresponding to the at least one picture according to the domain name information of the service server and feeds it back to the service server.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN)-or it can be connected to an external computer (for example, use an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments described in the present disclosure can be implemented in software or hardware.
  • the name of the module does not constitute a limitation on the module itself under certain circumstances.
  • the image comment data division module can also be described as "dividing the image comment data to be stored into at least one image and other Module to comment on data".

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种图片类评论数据的网络存储方法、装置、电子设备及介质。该方法包括:客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据(S110);所述客户端将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息(S120);所述客户端将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据上传给至少一个业务服务器(S130);其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息并使用访问定位信息替换存储定位信息以存储访问定位信息。

Description

图片类评论数据的网络存储方法、装置、电子设备及介质
本申请要求在2019年05月20日提交中国专利局、申请号为201910419869.2的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及数据处理技术领域,例如涉及一种图片类评论数据的网络存储方法、装置、电子设备及介质。
背景技术
随着互联网的发展,越来越多的用户通过互联网进行传输数据,同时人们对数据的质量要求越来越高。例如在视频、朋友圈、文学网站、论坛或其他社交平台等领域中,用户发布数据的数据形式不再局限于文本数据,还可以包括图片数据。
在社交领域中,用户可以针对发布的内容进行评论,当用户评论完成且输入发布指令后,客户端将评论数据统一通过预设接口上传到服务器,当评论数据包括图片数据时,会导致该接口压力大幅增大,同时服务器接收的数据分散存储,无法统一管理。
发明内容
本公开实施例提供一种图片类评论数据的网络存储方法、装置、电子设备及介质,可以减轻接口数据传输的压力,以及降低评论数据的管理难度。
本公开实施例提供了一种图片类评论数据的网络存储方法,该方法包括:
客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据;
所述客户端将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息;
所述客户端将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;
其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息,使用访 问定位信息替换存储定位信息以存储所述访问定位信息。
本公开实施例提供了一种图片类评论数据的网络存储方法,该方法包括:
业务服务器接收客户端发送的图片类评论结果数据;
其中,所述图片类评论结果数据为所述客户端将通用服务器提供的与图片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的;
所述业务服务器将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息;
所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
本公开实施例提供了一种图片类评论数据的网络存储方法,该方法包括:
通用服务器接收客户端上传的图片类评论数据中的至少一张图片并存储所述至少一张图片;
所述通用服务器根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;
其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;
所述通用服务器接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息;
所述通用服务器根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息并将访问定位信息反馈给所述业务服务器。
本公开实施例还提供了一种图片类评论数据的网络存储装置,设置于客户端中,该装置包括:
图片类评论数据划分模块,用于将待存储的图片类评论数据划分为至少一张图片以及其他评论数据;
存储定位信息获取模块,设置为将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息;
图片类评论结果数据上传模块,设置为将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评 论结果数据上传给至少一个业务服务器;其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息并使用访问定位信息替换存储定位信息以存储访问定位信息。
本公开实施例还提供了一种图片类评论数据的网络存储装置,设置于业务服务器中,该装置包括:
图片类评论结果数据获取模块,设置为接收客户端发送的图片类评论结果数据;其中,所述图片类评论结果数据为所述客户端将通用服务器提供的与图片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的;
访问定位信息传输模块,设置为将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息;
存储定位信息替换模块,设置为使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
本公开实施例还提供了一种图片类评论数据的网络存储装置,设置于通用服务器中,该装置包括:
图片存储模块,设置为接收客户端上传的图片类评论数据中的至少一张图片进行存储;
存储定位信息反馈模块,设置为根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;
存储定位信息接收模块,设置为接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息;
访问定位信息反馈模块,设置为根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息并将访问定位信息反馈给所述业务服务器。
本公开实施例还提供了一种电子设备,该电子设备包括:
一个或多个处理器;
存储器,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开实施例所述的图片类评论数据的网络存储方法。
本公开实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现如本公开实施例所述的图片类评论数据的网络存储方法。
附图说明
图1a是本公开实施例中的一种图片类评论数据的网络存储系统的结构图;
图1b是本公开实施例中的一种图片类评论数据的网络存储方法的流程图;
图1c是本公开实施例中的一种图片类评论数据的显示界面的示意图;
图2是本公开实施例中的一种图片类评论数据的网络存储方法的流程图;
图3a是本公开实施例中的一种图片类评论数据的网络存储方法的流程图;
图3b是本公开实施例中的一种图片类评论数据的网络存储方法的流程图;
图4是本公开实施例中的一种图片类评论数据的网络存储装置的结构示意图;
图5是本公开实施例中的一种图片类评论数据的网络存储装置的结构示意图;
图6是本公开实施例中的一种图片类评论数据的网络存储装置的结构示意图;
图7是本公开实施例中的一种电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本公开进行说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
为了便于理解,首先将本申请涉及的多个设备,以及设备间的信息交互方法进行简单介绍。
本实施例中,在图1a中示出了本公开实施例所适用的一种图片类评论数据的网络存储系统的结构图。如图1a所示,所述系统包括:一个或者多个用户设备100(用于配置客户端软件)、通用服务器200以及一个或者多个业务服务器 300。
所述业务服务器,是指提供某一项业务(短视频或者直播等)服务的服务器,所述业务服务器一般与安装于用户设备中的客户端配置使用。用户通过该客户端,可以针对业务服务提供的发布内容,输入并上传评论数据,该评论数据可以包括图片类评论数据,该图片类评论数据中包括一张或者多张图片。所述通用服务器,是指用于存储图片的服务器。
在本申请实施例中,当用户使用客户端针对某一业务服务提供的发布内容,输入并上传图片类评论数据时,该图片类评论数据并不是由客户端直接上传至业务服务器由业务服务器对图片类评论数据存储,而是由客户端首先将图片类评论数据中的图片分离出来上传至通用服务器,该通用服务器对接收到图片进行存储,并向客户端反馈存储定位信息。客户端将存储定位信息和其他评论数据进行拼接,形成图片类评论结果数据,再由客户端将该图片类评论结果数据上传至业务服务器。业务服务器获取图片类评论结果数据中的存储定位信息并将存储定位信息发送至通用服务器,该通用服务器根据存储定位信息确定通用服务器存储的图片,并向业务服务器反馈与该图片对应的访问定位信息。业务服务器将存储的存储定位信息替换为访问定位信息。从而,业务服务器可以根据用户设备的客户端发送的该图片类评论数据关联的评论查看请求,获取匹配的访问定位信息以及匹配的其他评论数据,并将访问定位信息发送至通用服务器。通用服务器根据访问定位信息获取匹配的图片并将获取的图片反馈至业务服务器,该业务服务器将图片以及其他评论数据反馈至客户端。客户端将图片以及其他评论数据进行拼接展示。
图1b为本公开实施例中的一种图片类评论数据的网络存储方法的流程图,本实施例可适用于客户端上传包括图片的评论数据的情况,该方法可以由图片类评论数据的网络存储装置来执行,该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备的客户端中,例如终端设备的客户端中,终端设备典型的是手机、平板电脑或车载设备等。如图1a所示,该方法包括如下步骤:
S110,客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据。
待存储的图片类评论数据用于存储在服务器中,可以是指由用户通过客户端提供并需要上传到网络中进行存储的评论数据,图片类评论数据可以包括至少一个图片。其他评论数据用于与图片区分,不包括图片,可以包括文本数据,示例性的,其他评论数据的数据类型为富文本格式。将图片类评论数据中的数据划分为图片以及其他评论数据,用于将图片数据从图片类评论数据中分割出 来。
S120,所述客户端将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息。
本实施例中,通用服务器用于存储图片类评论数据中的图片。存储定位信息用于标识通用服务器中对应的图片的存储位置(地址),以使通用服务器可以根据存储定位信息在本地查询到存储的图片。在一实施例中,存储定位信息可以包括图片的宽高和格式信息,此外还可以包括图片的其他属性信息,对此,本公开实施例不做限制。
S130,所述客户端将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息并使用访问定位信息替换存储定位信息以存储访问定位信息。
本实施例中,图片类评论结果数据用于发送给业务服务器,以使业务服务器进行评论数据管理以及为客户端提供包含图片的评论数据。实际上,图片类评论结果数据是指图片类评论数据经去除图片得到的评论数据。访问定位信息用于客户端和/或业务服务器访问图片。存储定位信息还用于业务服务器获取指向对应图片的访问定位信息。本实施例中,使用访问定位信息替换存储定位信息可以实现业务服务器直接查询存储定位信息标识的图片。
在本实施例中,其他评论数据为富文本格式,对应图片可以配置富文本图片对象,并将存储定位信息作为富文本图片的成员属性存储。由此,存储定位信息与其他评论数据拼接得到的图片类评论结果数据仅包括富文本格式的数据。
从而,将图片上传到通用服务器;并在接收到通用服务器反馈存储定位信息之后,将其他评论数和存储定位信息拼接上传到业务服务器,实现分时上传不同类型的评论数据,从而实现分离上传图片类评论数据。
示例性的,存储定位信息为统一资源标志符(Uniform Resource Identifier,URI),访问定位信息为统一资源定位符(Uniform Resource Locator,URL)。其中,统一资源标志符可以是指用于标识某一互联网资源名称的字符串,该种标识允许用户对网络中(一般指万维网)的资源通过指定的协议进行交互操作。统一资源定位符可以是指用来表示从因特网上得到的资源位置和访问这些资源的方法,针对资源的位置提供一种抽象的识别方法,并用这种方法给资源定位。只要能够对资源定位,访问端就可以对资源进行多种操作,如存取、更新、替换 和查找属性。
示例性的,存储定位信息为http://www.tongyong.com.cn/html/html40/;访问定位信息为http://www.yewu.com.cn/html/html40/welcome.jpg。
通过统一资源标志符和统一资源定位符可以快速准确确定图片的访问地址,从而实现快速获取待访问的图片。
在本实施例中,将图片存在除业务服务器以外的通用服务器中,并获取可以定位图片的存储定位信息以及访问定位信息,实现业务服务器中仅存储非图片的数据,便于管理,同时,客户端可以直接从业务服务器中获取非图片的其他评论数据,并根据业务服务器中存储的访问定位信息访问图片,实现完整获取图片类评论数据。
在一实施例中,在客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据之前,还包括:所述客户端获取与评论发布请求匹配的待发布评论数据;所述客户端在确定所述待发布评论数据中包括有评论图片的情况下,将所述待发布评论数据确定为所述待存储的图片类评论数据。
本实施例中,待发布评论数据用于发送至业务服务器,以使其他客户端可以通过业务服务器获取。评论发布请求用于指示客户端向业务服务器发送评论数据。评论图片用于以图像数据形式展示用户对于事物(发布内容)的看法。在一实施例中,评论图片可以包括表情,例如静态表情和动态表情。通过判断待评论数据是否包括图片,在待发布评论数据包括评论图片时,确定待发布评论数据为待存储的图片类评论数据,准确区分图片类评论数据与非图片类评论数据,并将图片存储到通用服务器中,非图片数据存储到业务服务器中,实现对评论数据进行区分存储和管理,提升评论数据的管理效率。
本公开实施例通过将图片类评论数据划分为图片和非图片评论数据,并将图片上传至通用服务器以存储,并获取通用服务器反馈的用于指向图片的存储定位信息,将存储定位信息和非图片评论数据合并,生成图片类评论结果数据上传至业务服务器,实现分离上传图片和非图片评论数据,解决了用于传输评论数据的接口传输图片数据导致接口的压力增大,同时用于存储评论数据的服务器的管理难度增加的问题,降低图片类评论结果数据的数据大小,从而减轻接口数据传输的压力,且通用服务器仅存储图片,业务服务器仅存储非图片数据,集中区分管理不同类型的评论数据,降低评论数据的管理难度,同时,提高业务服务器的评论数据的管理效率。
在一实施例中,客户端还可以向业务服务发送针对某个发布内容的图片类评论结果数据的评论查看请求,用于获取图片类评论结果数据,并根据图片类 评论结果数据中的访问定位信息通过业务服务器从通用服务器下载匹配的至少一个图片,并将至少一张图片与图片类评论结果数据中的其他评论数据拼接后展示拼接后的至少一张图片与其他评论数据。在一个实施例中,如图1c所示,当一个用户通过选择评论显示控件触发展示了针对一个发布内容的评论显示界面,评论的显示区域中分条目显示一条或者多条评论数据,且所述评论数据中可以包括图片类评论数据。在显示每条图片类评论数据时,将每条图片类评论数据的文字数据和图片数据区分,文字数据在前显示,而图片数据在后显示,同时,图片数据中的多个评论图片以九宫格形式展示。
图2为本公开实施例中的一种图片类评论数据的网络存储方法的流程图,本实施例可适用于业务服务器针对客户端发送的图片类评论结果数据进行管理的情况,该方法可以由图片类评论数据的网络存储装置来执行,该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备中,例如提供评论数据管理功能的业务服务器等。
相应的,本实施例的方法可以包括:
S210,业务服务器接收客户端发送的图片类评论结果数据;其中,所述图片类评论结果数据为所述客户端将通用服务器提供的与图片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的。
本实施例中,业务服务器、客户端、通用服务器、图片类评论数据、存储定位信息、其他评论数据、访问定位信息和图片类评论结果数据均可以参考前述描述。
S220,所述业务服务器将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息。
S230,所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
在本实施例中,客户端上传图片至通用服务器,直接获取存储定位信息。业务服务器仅需与通用服务器交互一次,获取匹配的访问定位信息。可以避免由业务服务器获取图片类评论数据并进行图片分离上传至通用服务器,获取访问定位信息和存储定位信息,而且,还需将存储定位信息下发到客户端中的情况。从而,实现客户端分离上传图片类评论数据,减少业务服务器和通用服务器的交互次数,提高业务服务器针对图片类评论数据的处理效率。
在一实施例中,在所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息之后,还包括:所述业务服务器在检测到目标客户端发送的针对所述图片类评论结果数据的评论查看请求的情况下,将所述图片类评论结果数据提供给所述目标客户端;其中,所述图片类评论结果数据中的与所述至少一张图片对应的访问定位信息,用于指示所述目标客户端通过所述业务服务器从所述通用服务器下载所述至少一张图片后,将所述至少一张图片与所述图片类评论结果数据中的其他评论数据拼接后展示拼接后的至少一张图片和其他评论数据。
本实施例中,评论查看请求用于获取图片类评论结果数据显示给用户。通过在接收到目标客户端发送的评论查看请求,将匹配的图片类评论结果数据提供该目标客户端,以使目标客户端通过访问定位信息获取图片,并对图片进行展示,可以准确获取图片类评论结果数据匹配的图片进行展示,提高查询展示图片的准确率。
本公开实施例通过接收客户端发送的不包含图片的图片类评论结果数据,实现业务服务器存储的评论数据均为非图片数据,提高业务服务器针对评论数据的管理效率,同时,仅与通用服务器交互一次,将图片类评论结果数据中存储定位信息替换为匹配的访问定位信息,以实现访问对应的图片,降低业务服务器在存储评论数据时与通用服务器以及客户端的交互次数,提高评论数据的存储效率。
图3a为本公开实施例中的一种图片类评论数据的网络存储方法的流程图,本实施例可适用于通用服务器针对客户端发送的图片进行存储的情况,该方法可以由图片类评论数据的网络存储装置来执行,该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备中,例如提供评论图片数据存储功能的通用服务器等。
S310,通用服务器接收客户端上传的图片类评论数据中的至少一张图片进行存储。
本实施例中,业务服务器、客户端、通用服务器、图片类评论数据、存储定位信息、其他评论数据、访问定位信息和图片类评论结果数据均可以参考前述描述。
S320,所述通用服务器根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论 数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器。
S330,所述通用服务器接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息。
S340,所述通用服务器根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息并将访问定位信息反馈给所述业务服务器。
本实施例中,域名信息用于确定访问定位信息,域名信息是由一串用点分隔的名字组成的互联网上某一台计算机或计算机组的名称,用于在数据传输时标识计算机的电子方位(如互联网协议(Internet Protocol,IP)地址),有时也指地理位置。
本公开实施例通过配置通用服务器,接收并存储客户端上传的图片,同时反馈该图片的存储定位信息给客户端,用于客户端根据存储定位信息获取图片,以及接收业务服务器发送的存储定位信息,同时反馈匹配的访问定位信息,用于业务服务器通过访问定位信息获取存储定位信息标识的图片,实现通用服务器和客户端以及业务服务器进行交互,避免通用服务器仅和业务服务器进行交互,间接向客户端发送存储定位信息导致业务服务器的工作量增加,从而,提高业务服务器的业务处理效率,同时通用服务器集中存储图片,方便管理。
图3b为本公开实施例提供的一种图片类评论数据的网络存储方法的流程图,本实施例提供的方法包括图片类评论数据的网络存储系统中的客户端、业务服务器和通用服务器之间的交互。如图3b所示,本实施例提供的方法包括下述步骤:
S3510,客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据。
S3520,所述客户端向通用服务器发送所述至少一张图片。
S3530,所述通用服务器接收所述至少一张图片进行存储,根据所述至少一张图片的存储地址,确定存储定位信息。
S3540,所述通用服务器向所述客户端反馈所述至少一张图片对应的存储定位信息。
S3550,所述客户端将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据。
S3560,所述客户端向业务服务器发送所述图片类评论结果数据。
S3570,所述业务服务器获取所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
S3580,所述业务服务器向所述通用服务器发送所述存储定位信息。
S3590,所述通用服务器根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息。
S3600,所述通用服务器向所述业务服务器反馈所述至少一张图片对应的存储定位信息。
S3610,所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
本公开实施例通过客户端将图片类评论数据划分为图片和非图片评论数据,并将图片上传至通用服务器以存储,同时获取通用服务器反馈的用于指向图片的存储定位信息,将存储定位信息和非图片评论数据合并,生成图片类评论结果数据上传至业务服务器,实现分离上传图片和非图片评论数据,同时分时上传图片类评论数据,从而减轻接口数据传输的压力,且通用服务器仅存储图片,业务服务器仅存储非图片数据,集中区分管理不同类型的评论数据,降低评论数据的管理难度,同时提高评论数据的管理效率。
图4为本公开实施例提供的一种图片类评论数据的网络存储装置的结构示意图,本实施例可适用于客户端上传包括图片的评论数据的情况。该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备的客户端中,例如终端设备的客户端中。如图4所示,该装置可以包括图片类评论数据划分模块410、存储定位信息获取模块420和图片类评论结果数据上传模块430。
图片类评论数据划分模块410,设置为将待存储的图片类评论数据划分为至少一张图片以及其他评论数据;存储定位信息获取模块420,设置为将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息;图片类评论结果数据上传模块430,设置为将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息并使用访问定位信息替换存储定位信息以存储访问定位信息。
本公开实施例通过将图片类评论数据划分为图片和非图片评论数据,并将图片上传至通用服务器以存储,同时获取通用服务器反馈的用于指向图片的存 储定位信息,将存储定位信息和非图片评论数据合并,生成图片类评论结果数据上传至业务服务器,实现分离上传图片和非图片评论数据,解决了用于传输评论数据的接口传输图片数据导致接口的压力增大,同时用于存储评论数据的服务器的管理难度增加的问题,降低图片类评论结果数据的数据大小,从而减轻接口数据传输的压力,且通用服务器仅存储图片,业务服务器仅存储非图片数据,集中区分管理不同类型的评论数据,降低评论数据的管理难度,同时,提高业务服务器的评论数据的管理效率。
在一实施例中,所述图片类评论数据的网络存储装置,包括:图片类评论数据确定单元,设置为在客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据之前,所述客户端获取与评论发布请求匹配的待发布评论数据;所述客户端在确定所述待发布评论数据中包括有评论图片的情况下,则将所述待发布评论数据确定为所述待存储的图片类评论数据。
在一实施例中,所述存储定位信息包括:统一资源标志符;所述访问定位信息包括:统一资源定位符。
图5为本公开实施例提供的一种图片类评论数据的网络存储装置的结构示意图,本实施例可适用于业务服务器针对客户端发送的图片类评论结果数据进行管理的情况。该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备中,例如提供评论数据管理功能的业务服务器中。如图5所示,该装置可以包括图片类评论结果数据获取模块510、访问定位信息传输模块520和存储定位信息替换模块530。
图片类评论结果数据获取模块510,设置为接收客户端发送的图片类评论结果数据;其中,所述图片类评论结果数据为所述客户端将通用服务器提供的与图片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的;访问定位信息传输模块520,设置为将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息;存储定位信息替换模块530,设置为使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
本公开实施例通过接收客户端发送的不包含图片的图片类评论结果数据,实现业务服务器存储的评论数据均为非图片数据,提高业务服务器针对评论数据的管理效率,同时,仅与通用服务器交互一次,将图片类评论结果数据中存储定位信息替换为匹配的访问定位信息,以实现访问对应的图片,降低业务服 务器在存储评论数据时与通用服务器以及客户端的交互次数,提高评论数据的存储效率。
在一实施例中,所述图片类评论数据的网络存储装置,包括:评论查看请求处理单元,设置为在所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息之后,所述业务服务器在检测到目标客户端发送的针对所述图片类评论结果数据的评论查看请求的情况下,将所述图片类评论结果数据提供给所述目标客户端;其中,所述图片类评论结果数据中的与所述至少一张图片对应的访问定位信息,用于指示所述目标客户端通过所述业务服务器向所述通用服务器下载所述至少一张图片后,将至少一张图片与所述图片类评论结果数据中的其他评论数据拼接后展示拼接后的至少一张图片和其他评论数据。
在一实施例中,所述存储定位信息包括:统一资源标志符;所述访问定位信息包括:统一资源定位符。
图6为本公开实施例提供的一种图片类评论数据的网络存储装置的结构示意图,本实施例可适用于通用服务器针对客户端发送的图片进行存储的情况。该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备中,例如提供评论图片数据存储功能的通用服务器中。如图6所示,该装置可以包括图片存储模块610、存储定位信息反馈模块620、存储定位信息接收模块630和访问定位信息反馈模块640。
图片存储模块610,设置为接收客户端上传的图片类评论数据中的至少一张图片进行存储;存储定位信息反馈模块620,设置为根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;存储定位信息接收模块630,设置为接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息;访问定位信息反馈模块640,设置为根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息反馈给所述业务服务器。
本公开实施例通过将图片类评论数据划分为图片和非图片评论数据,并将图片上传至通用服务器以存储,同时获取通用服务器反馈的用于指向图片的存储定位信息,将存储定位信息和非图片评论数据合并,生成图片类评论结果数据上传至业务服务器,实现分离上传图片和非图片评论数据,解决了用于传输评论数据的接口传输图片数据导致接口的压力增大,同时用于存储评论数据的 服务器的管理难度增加的问题,降低图片类评论结果数据的数据大小,从而减轻接口数据传输的压力,且通用服务器仅存储图片,业务服务器仅存储非图片数据,集中区分管理不同类型的评论数据,降低评论数据的管理难度,同时,提高业务服务器的评论数据的管理效率。
在一实施例中,所述存储定位信息包括:统一资源标志符;所述访问定位信息包括:统一资源定位符。
本公开实施例提供了一种电子设备,下面参考图7,其示出了适于用来实现本公开实施例的电子设备(例如终端设备或服务器)700的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(便携式多媒体播放器,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(television,TV)、台式计算机等等的固定终端。图7示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图7所示,电子设备700可以包括处理装置(例如中央处理器、图形处理器等)701,处理装置可以根据存储在只读存储器(Read-Only Memory,ROM)702中的程序或者从存储装置708加载到随机访问存储器(Random Access Memory,RAM)703中的程序而执行多种适当的动作和处理。在RAM 703中,还存储有电子设备700操作所需的多种程序和数据。处理装置701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。
通常,以下装置可以连接至I/O接口705:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置706;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置707;包括例如磁带、硬盘等的存储装置708;以及通信装置709。通信装置709可以允许电子设备700与其他设备进行无线或有线通信以交换数据。虽然图7示出了具有多种装置的电子设备700,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,计算机程序产品包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置709从网络上被下载和安装,或者从存储装置708被安装,或者从ROM 702被 安装。在该计算机程序被处理装置701执行时,执行本公开实施例的图片类评论数据的网络存储方法中限定的上述功能。
本公开实施例还提供了一种计算机可读存储介质,计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据;所述客户端将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息;所述客户端将与至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息并使用访问定位信息替换存储定位信息以存储访问定位信息。
或者,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:业务服务器接收客户端发送的图片类评论结果数据;其中,所述图片类评论结 果数据为所述客户端将通用服务器提供的与图片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的;所述业务服务器将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息;所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
或者,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:通用服务器接收客户端上传的图片类评论数据中的至少一张图片进行存储;所述通用服务器根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将图片类评论结果数据上传给至少一个业务服务器;所述通用服务器接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息;所述通用服务器根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息反馈给所述业务服务器。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,图片类评论数据划分模块还可以被描述为“将待存储的图片类评论数据划分为至少一张图片以及其他评论数据的模块”。

Claims (11)

  1. 一种图片类评论数据的网络存储方法,包括:
    客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据;
    所述客户端将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与所述至少一张图片对应的存储定位信息;
    所述客户端将与所述至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将所述图片类评论结果数据上传给至少一个业务服务器;
    其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息并使用所述访问定位信息替换所述存储定位信息以存储所述访问定位信息。
  2. 根据权利要求1所述的方法,在客户端将待存储的图片类评论数据划分为至少一张图片以及其他评论数据之前,还包括:
    所述客户端获取与评论发布请求匹配的待发布评论数据;
    所述客户端在确定所述待发布评论数据中包括有评论图片的情况下,将所述待发布评论数据确定为所述待存储的图片类评论数据。
  3. 一种图片类评论数据的网络存储方法,包括:
    业务服务器接收客户端发送的图片类评论结果数据;
    其中,所述图片类评论结果数据为所述客户端将通用服务器提供的与图片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的;
    所述业务服务器将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息;
    所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
  4. 根据权利要求3所述的方法,在所述业务服务器使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息之后,还包括:
    所述业务服务器在检测到目标客户端发送的针对所述图片类评论结果数据的评论查看请求的情况下,将所述图片类评论结果数据提供给所述目标客户端;
    其中,所述图片类评论结果数据中的与所述至少一张图片对应的访问定位信息,用于指示所述目标客户端通过所述业务服务器从所述通用服务器下载所述至少一张图片后,将所述至少一张图片与所述图片类评论结果数据中的其他评论数据拼接后展示拼接后的所述至少一张图片与所述其他评论数据。
  5. 一种图片类评论数据的网络存储方法,包括:
    通用服务器接收客户端上传的图片类评论数据中的至少一张图片进行存储;
    所述通用服务器根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;
    其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将所述图片类评论结果数据上传给至少一个业务服务器;
    所述通用服务器接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息;
    所述通用服务器根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息反馈给所述业务服务器。
  6. 根据权利要求1-5任一项所述的方法,其中,所述存储定位信息包括:统一资源标志符;所述访问定位信息包括:统一资源定位符。
  7. 一种图片类评论数据的网络存储装置,设置于客户端中,包括:
    图片类评论数据划分模块,设置为将待存储的图片类评论数据划分为至少一张图片以及其他评论数据;
    存储定位信息获取模块,设置为将所述至少一张图片上传至通用服务器进行存储,并接收所述通用服务器反馈的,与至少一张图片对应的存储定位信息;
    图片类评论结果数据上传模块,设置为将与所述至少一张图片对应的存储定位信息与所述其他评论数据进行拼接,得到图片类评论结果数据,并将所述图片类评论结果数据上传给至少一个业务服务器;其中,与所述至少一张图片对应的存储定位信息,用于指示所述业务服务器从所述通用服务器中获取与所述至少一张图片对应的访问定位信息,并使用所述访问定位信息替换所述存储定位信息以存储所述访问定位信息。
  8. 一种图片类评论数据的网络存储装置,设置于业务服务器中,包括:
    图片类评论结果数据获取模块,设置为接收客户端发送的图片类评论结果数据;其中,所述图片类评论结果数据为所述客户端将通用服务器提供的与图 片类评论数据中的至少一张图片对应的存储定位信息,与所述图片类评论数据中的其他评论数据进行拼接得到的;
    访问定位信息传输模块,设置为将所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息发送至所述通用服务器,并接收所述通用服务器反馈的与所述至少一张图片对应的访问定位信息;
    存储定位信息替换模块,设置为使用与所述至少一张图片对应的访问定位信息替换所述图片类评论结果数据中的与所述至少一张图片对应的存储定位信息。
  9. 一种图片类评论数据的网络存储装置,设置于通用服务器中,包括:
    图片存储模块,设置为接收客户端上传的图片类评论数据中的至少一张图片进行存储;
    存储定位信息反馈模块,设置为根据所述至少一张图片的存储地址,向所述客户端反馈与所述至少一张图片对应的存储定位信息;其中,所述存储定位信息用于指示所述客户端将与所述至少一张图片对应的存储定位信息与所述图片类评论数据中的其他评论数据进行拼接,得到图片类评论结果数据,并将所述图片类评论结果数据上传给至少一个业务服务器;
    存储定位信息接收模块,设置为接收所述业务服务器发送的与所述至少一张图片对应的存储定位信息;
    访问定位信息反馈模块,设置为根据所述业务服务器的域名信息,生成与所述至少一张图片对应的访问定位信息并将所述访问定位信息反馈给所述业务服务器。
  10. 一种电子设备,包括:
    至少一个处理器;
    存储器,设置为存储一个或多个程序;
    当所述至少一个程序被所述一个或多个处理器执行,使得所述至少一个处理器实现如权利要求1-6任一所述的图片类评论数据的网络存储方法。
  11. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-6任一所述的图片类评论数据的网络存储方法。
PCT/CN2020/073799 2019-05-20 2020-01-22 图片类评论数据的网络存储方法、装置、电子设备及介质 WO2020233168A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910419869.2A CN110134805A (zh) 2019-05-20 2019-05-20 图片类评论数据的网络存储方法、装置、电子设备及介质
CN201910419869.2 2019-05-20

Publications (1)

Publication Number Publication Date
WO2020233168A1 true WO2020233168A1 (zh) 2020-11-26

Family

ID=67571503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073799 WO2020233168A1 (zh) 2019-05-20 2020-01-22 图片类评论数据的网络存储方法、装置、电子设备及介质

Country Status (2)

Country Link
CN (1) CN110134805A (zh)
WO (1) WO2020233168A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114820040A (zh) * 2022-03-31 2022-07-29 江苏未来智慧信息科技有限公司 电力智能咨询控制系统及其控制方式

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134805A (zh) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 图片类评论数据的网络存储方法、装置、电子设备及介质
CN110647827A (zh) * 2019-09-09 2020-01-03 北京达佳互联信息技术有限公司 评论信息处理方法、装置以及电子设备、存储介质
CN115905600B (zh) * 2022-12-25 2023-12-12 广东朝阳企讯通科技有限公司 基于大数据平台的网络安全分析系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140337696A1 (en) * 2012-02-01 2014-11-13 Tenent Technolgoy (Shenzhen) Company Limited Method and apparatus for obtaining web data
CN104348848A (zh) * 2013-07-25 2015-02-11 北京三星通信技术研究有限公司 管理图片的方法、终端设备和服务器
CN104994082A (zh) * 2015-06-16 2015-10-21 努比亚技术有限公司 一种图片信息处理方法、服务器及系统
CN106341307A (zh) * 2016-08-31 2017-01-18 乐视控股(北京)有限公司 一种信息的处理方法、服务器、客户端及系统
CN110134805A (zh) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 图片类评论数据的网络存储方法、装置、电子设备及介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136268A (zh) * 2011-12-01 2013-06-05 深圳市腾讯计算机系统有限公司 对发表内容中的图片进行特效处理和展示的方法及装置
CN103617165B (zh) * 2013-10-22 2017-02-15 小米科技有限责任公司 一种加载图片的方法、装置及终端
CN104571833A (zh) * 2013-10-29 2015-04-29 镇江睿泰信息科技有限公司 移动阅读器
CN104967749A (zh) * 2015-07-29 2015-10-07 努比亚技术有限公司 一种处理图文信息的装置和方法
CN106294799B (zh) * 2016-08-15 2019-10-22 广州神马移动信息科技有限公司 打点方法、装置及服务器
CN106982247A (zh) * 2017-02-23 2017-07-25 成都谷辘信息技术有限公司 一种基于web的图片分布式存储系统
CN108449255B (zh) * 2018-02-06 2021-10-08 阿里巴巴(中国)有限公司 评论交互方法、设备、客户端装置及电子设备
CN108763432B (zh) * 2018-05-24 2021-05-25 思派(北京)网络科技有限公司 一种应用于互联网医疗的跨平台数据整合方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140337696A1 (en) * 2012-02-01 2014-11-13 Tenent Technolgoy (Shenzhen) Company Limited Method and apparatus for obtaining web data
CN104348848A (zh) * 2013-07-25 2015-02-11 北京三星通信技术研究有限公司 管理图片的方法、终端设备和服务器
CN104994082A (zh) * 2015-06-16 2015-10-21 努比亚技术有限公司 一种图片信息处理方法、服务器及系统
CN106341307A (zh) * 2016-08-31 2017-01-18 乐视控股(北京)有限公司 一种信息的处理方法、服务器、客户端及系统
CN110134805A (zh) * 2019-05-20 2019-08-16 北京字节跳动网络技术有限公司 图片类评论数据的网络存储方法、装置、电子设备及介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114820040A (zh) * 2022-03-31 2022-07-29 江苏未来智慧信息科技有限公司 电力智能咨询控制系统及其控制方式

Also Published As

Publication number Publication date
CN110134805A (zh) 2019-08-16

Similar Documents

Publication Publication Date Title
WO2020233168A1 (zh) 图片类评论数据的网络存储方法、装置、电子设备及介质
WO2020233142A1 (zh) 多媒体文件播放方法、装置、电子设备和存储介质
JP6430656B2 (ja) コンテンツアイテムを表示するシステム、方法、及び装置
WO2022095840A1 (zh) 直播间创建方法、装置、电子设备及存储介质
WO2020151599A1 (zh) 视频同步发布方法、装置、电子设备及可读存储介质
KR20200092249A (ko) 라이브 스트림 슬라이싱 방법, 장치 및 시스템
WO2020207085A1 (zh) 信息分享方法、装置、电子设备及存储介质
CN104539977A (zh) 直播预览方法及装置
WO2023000888A1 (zh) 云应用的实现方法、装置、电子设备和存储介质
CN111246228B (zh) 直播间礼物资源更新方法、装置、介质及电子设备
WO2022199376A1 (zh) 内容的打印方法、装置、设备及存储介质
US20180249280A1 (en) Method and apparatus for publishing cloud resource
WO2015180446A1 (zh) 一种多设备联动服务中的连接通道维护系统及方法
JP2023515105A (ja) マルチメディア会議データ処理方法、装置、及び電子機器
WO2020220782A1 (zh) 信息分享方法、装置、设备和介质
CN114205664A (zh) 投屏方法、投屏装置、投屏显示装置、投屏系统及介质
CN110618768B (zh) 信息呈现方法和装置
CN114489891A (zh) 云应用程序的控制方法、系统、装置、可读介质和设备
US20220215482A1 (en) User information processing method, apparatus, electronic device, and computer storage medium
CN110619101B (zh) 用于处理信息的方法和装置
WO2022116864A1 (zh) 信息交互方法、装置及设备
WO2022048490A1 (zh) 数据处理方法、装置和电子设备
CN111212296B (zh) 直播间礼物列表配置方法、装置、介质及电子设备
WO2022228405A1 (zh) 信息交互方法、装置和电子设备
CN113157365B (zh) 程序运行方法、装置、电子设备和计算机可读介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20810035

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20810035

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 180322)

122 Ep: pct application non-entry in european phase

Ref document number: 20810035

Country of ref document: EP

Kind code of ref document: A1