CN113849839A - Picture display method and device, server, electronic equipment and storage medium - Google Patents

Picture display method and device, server, electronic equipment and storage medium Download PDF

Info

Publication number
CN113849839A
CN113849839A CN202111188756.XA CN202111188756A CN113849839A CN 113849839 A CN113849839 A CN 113849839A CN 202111188756 A CN202111188756 A CN 202111188756A CN 113849839 A CN113849839 A CN 113849839A
Authority
CN
China
Prior art keywords
picture
access
client
path
target picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111188756.XA
Other languages
Chinese (zh)
Inventor
陈兆秦
董必立
周鑫鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhuiyi Technology Co Ltd
Original Assignee
Shenzhen Zhuiyi Technology Co Ltd
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 Shenzhen Zhuiyi Technology Co Ltd filed Critical Shenzhen Zhuiyi Technology Co Ltd
Priority to CN202111188756.XA priority Critical patent/CN113849839A/en
Publication of CN113849839A publication Critical patent/CN113849839A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • 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/53Querying
    • 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/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The application discloses a picture display method, a picture display device, a server, electronic equipment and a storage medium, wherein the method comprises the steps of receiving a picture access request sent by a client; responding to the picture access request, and acquiring an access path corresponding to a target picture to be accessed; and returning the access path to the client, wherein the access path is used for the client to acquire and display the target picture. The method can reduce the time spent on obtaining the picture from the server when the picture is displayed by the client.

Description

Picture display method and device, server, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a picture, a server, an electronic device, and a storage medium.
Background
With the development of internet technology and the improvement of the configuration level of electronic devices, users are more and more accustomed to storing a large number of pictures on the electronic devices, and the users generally upload the pictures to a server for storage and browse the pictures through the server when needed in order to avoid losing the pictures.
In a related picture display mode based on a web system, when a user loads a picture of a server through a client, a back-end server reads a picture byte stream and transmits the picture byte stream to a front-end mode to display the picture. However, this method of displaying pictures usually requires a back-end server to develop a byte stream loading interface so that the client obtains the pictures for displaying, but this method may make the time taken by the client to load and display the pictures longer.
Disclosure of Invention
In view of the foregoing problems, the present application provides a picture displaying method, an apparatus, a computer device, and a storage medium.
In a first aspect, an embodiment of the present application provides a picture display method, which is applied to a server, and the method includes: receiving a picture access request sent by a client; responding to the picture access request, and acquiring an access path corresponding to a target picture to be accessed; and returning the access path to the client, wherein the access path is used for the client to acquire and display the target picture.
In a second aspect, an embodiment of the present application provides a picture displaying method, which is applied to a client, and the method includes: responding to an access operation of the target picture, and sending a picture access request for accessing the target picture to a server; receiving an access path corresponding to the target picture returned by the server according to the picture access request; and acquiring the target picture according to the access path, and displaying the target picture.
In a third aspect, an embodiment of the present application provides a picture displaying apparatus, which is applied to a server, and the apparatus includes: the system comprises a request receiving module, a path acquiring module and a path sending module, wherein the request receiving module is used for receiving a picture access request sent by a client; the path acquisition module is used for responding to the picture access request and acquiring an access path corresponding to a target picture to be accessed; the path sending module is used for returning the access path to the client, and the access path is used for the client to acquire and display the target picture.
In a fourth aspect, an embodiment of the present application provides an image display apparatus, which is applied to a client, where the apparatus includes: the system comprises a request sending module, a path receiving module and a picture acquiring module, wherein the request sending module is used for responding to the access operation of the target picture and sending a picture access request for accessing the target picture to a server; the path receiving module is used for receiving an access path corresponding to the target picture returned by the server according to the picture access request; the picture acquisition module is used for acquiring the target picture according to the access path and displaying the target picture.
In a fifth aspect, an embodiment of the present application provides a server, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the picture presentation method provided in the first aspect above.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the picture presentation method provided by the second aspect above.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the picture displaying method provided in the first aspect or the second aspect.
According to the scheme, when the client accesses the picture, the access path corresponding to the picture accessed by the client is obtained, and the access path is returned to the client, so that the client can access the picture in a path access mode, the picture loading time can be reduced, and the picture display efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a diagram illustrating an application scenario of a picture presentation method according to an embodiment of the present application.
Fig. 2 shows a flowchart of a picture displaying method provided in an embodiment of the present application.
Fig. 3 shows a flow chart of a picture presentation method according to another embodiment of the present application.
Fig. 4 shows a flow chart of a picture presentation method according to yet another embodiment of the present application.
Fig. 5 shows a flowchart of a picture presentation method according to yet another embodiment of the present application.
Fig. 6 shows a flowchart of a picture presentation method according to yet another embodiment of the present application.
Fig. 7 shows another flowchart of the picture displaying method according to the embodiment of the present application.
Fig. 8 shows a flowchart of a picture presentation method according to yet another embodiment of the present application.
Fig. 9 shows a schematic diagram of a picture display device provided in an embodiment of the present application.
Fig. 10 shows a schematic view of a picture presentation device according to another embodiment of the present application.
FIG. 11 is a block diagram of a server for executing a picture presentation method according to an embodiment of the present application
Fig. 12 is a block diagram of an electronic device for executing a picture presentation method according to an embodiment of the present application.
Fig. 13 is a storage unit for storing or carrying program codes for implementing the picture displaying method according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
At present, with the continuous upgrading of the photographing technology of electronic equipment, almost all users have a large number of photos, and in the updating and updating of the electronic equipment, the photos are often uploaded to a server for storage, and the users can browse the photos through the server as needed, so that the user management is facilitated.
In the related art, when a picture is displayed based on a web system, when a user loads a server picture through a client, the client is generally required to initiate a request for accessing the picture to the server, a connection is established between the client and the server, then the server reads a picture byte stream, and the picture is displayed in a mode of transmitting the picture byte stream to the client through an interface.
In view of the above problems, the inventor proposes a picture display method, an apparatus, a computer device and a storage medium provided in the embodiments of the present application, which can realize fast picture display and have lower development cost. The specific picture display method is described in detail in the following embodiments.
For the convenience of describing the scheme of the present application in detail, an application environment in the embodiment of the present application is described below with reference to the accompanying drawings.
In some embodiments, referring to fig. 1, an application environment of the image displaying method according to the embodiment of the present application is shown in fig. 1, and as shown in fig. 1, the application environment may be understood as an image displaying system 10 according to the embodiment of the present application, and the image displaying system may be a web system. Wherein, this picture display system 10 includes: a server 11, and a client 12.
The server 11 may be a server (network access server), a server cluster (cloud server) composed of a plurality of servers, or a cloud computing center (database server). The client 12 may be any device with communication and storage functions, including but not limited to a PC (Personal Computer), a PDA (tablet), a smart tv, a smart phone, a smart wearable device, or other smart communication device with network connection functions. The server 11 and the client 12 may communicate via a network.
Wherein the client 12 may be understood as a client used by the user. Optionally, the client 12 in the image presentation system 10 may be an application client (e.g. a customer service application in a mobile phone APP), or may be a web page client (e.g. a customer service platform), which is not limited herein.
Alternatively, the server 11 may be a server cluster, which may include a backend server, a database server, and a file server (e.g., a minio server, etc.). The back-end server is used for interacting with the client 12, the database server is used for storing access paths of the pictures, and the file server is used for storing the pictures. When the client 12 needs to display the picture, a request can be sent to the back-end server, and accordingly, the back-end server can obtain an access path of the picture from the database server and return the access path to the client 12; then, the client 12 obtains the picture from the file server directly through the access path and displays the picture.
The following describes a picture display method provided in an embodiment of the present application in detail with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic flow chart of a picture displaying method according to an embodiment of the present application, in a specific embodiment, the picture displaying method is applied to a server, and the following will explain in detail with respect to the flow chart shown in fig. 2, where the picture displaying method specifically includes the following steps:
step S110: and receiving a picture access request sent by a client.
In the embodiment of the application, when a user of a client needs to display a corresponding picture, a picture access request of the picture can be initiated to a server through the client. The server can be any server equipment which is used for receiving the pictures uploaded by the client, storing the pictures and processing the pictures as necessary, and is used for interacting with the client to complete the picture display required by the client; the client may be an application client installed on the electronic device, a web page client (e.g., a web browser, etc.). The picture access request is used for representing that the client needs to access the corresponding picture, and the picture access request indicates information of the picture which the client needs to show. The picture access request may include partial information of a picture to be displayed, including information such as a picture format, a picture size, and a picture identifier (identifier information representing an identity of the picture), so that the server can find a picture position according to the stored information correspondence. After receiving the picture access request, the server analyzes the content contained in the request and triggers the next action according to the picture access request.
Step S120: and responding to the picture access request, and acquiring an access path corresponding to a target picture to be accessed.
In the embodiment of the application, after receiving the picture access request sent by the client, the server analyzes the picture access request to obtain effective information contained in the picture access request, so as to determine the picture information which the client wants to access through the information. The server can take the picture that the client wants to access as the target picture to be accessed. The server responds to the picture access request of the client, and obtains an access path corresponding to the target picture to be accessed through the relevant information of the target picture carried in the picture access request, so that the client can obtain the target picture through the access path and display the target picture. The access path is generated corresponding to the storage path of the picture after the server acquires the picture uploaded by the client, the access path and the uploaded picture are in one-to-one correspondence, the access path refers to a physical address stored in a target picture in the server, and any device can access and acquire the corresponding picture through the physical address, namely the access path. Therefore, after the client acquires the access path corresponding to the target picture returned by the server, the client can acquire the content of the target picture according to the access path and display the content.
In some embodiments, the access path corresponding to the target picture may be stored locally in the server, and when the server acquires the access path, the server only needs to search for the corresponding relationship between the target picture and the access path locally to acquire the access path.
In other embodiments, the access path corresponding to the target picture may also be stored in other devices, for example, in a database server, and when the server acquires the access path, it needs to establish communication with the server storing the access path first, and then acquire the access path corresponding to the target picture from the database server.
S130: and returning the access path to the client, wherein the access path is used for the client to acquire and display the target picture.
In the embodiment of the application, after the server acquires the access path corresponding to the target picture to be accessed, the server returns the access path to the client, so that the client acquires the target picture through the access path and displays the target picture. The mode of returning the access path to the client by the server may be transmission through an interface, that is, the access path data stream is transmitted through an interface between the server and the client, or the access path data stream may be wirelessly transmitted through a gateway. Therefore, after the client receives the access path, the target picture can be directly loaded and displayed by using the access path, and compared with a mode of transmitting picture data through a server interface, the client acquires the target picture through a path access mode.
The path in the access path refers to an absolute path of the target picture, and is illustrative information indicating a body position of the target picture, that is, any device can be directly located to a storage position of the target picture through the path after acquiring the path of the target picture. The path access refers to a process that the client accesses the storage position of the target picture through the path of the target picture so as to acquire and display the picture.
According to the picture display method provided by the embodiment of the application, the acquisition mode of the target picture is changed from the mode of directly acquiring the picture data to the mode of acquiring the display picture through the path access, so that the picture can be protected from being randomly changed and damaged by the operation of the client side, the effect of displaying the picture is achieved, meanwhile, the picture information is acquired through the path access mode more quickly, and the required development cost is lower.
Referring to fig. 3, fig. 3 is a schematic flow chart of a picture displaying method according to another embodiment of the present application, in a specific embodiment, the picture displaying method is applied to a server, and the following details are described with reference to the flow chart shown in fig. 3, where the picture displaying method specifically includes the following steps:
step S210: and receiving a picture access request sent by a client.
In the embodiment of the present application, step S210 may refer to the contents of other embodiments, which are not described herein again.
Step S220: and responding to the picture access request, and acquiring the picture identification carried in the picture access request.
In the embodiment of the application, after receiving the picture access request sent by the client, the server may process the picture access request to obtain the picture identifier carried in the picture access request. The picture identifier should include unique identification information of the target picture that the client needs to display, where the unique identification information may be information such as a number of the picture, a name of the picture, and the like, so that the server may determine the target picture that the client needs to display through the unique identification information. Wherein the unique identification information of each picture should be different.
In some embodiments, the picture identifier may also include other information of the picture, such as picture name, picture format, picture size, and the like. Therefore, under some conditions, when the unique identification information is incomplete, if the server finds multiple pictures, the server can also assist in finding the pictures based on the information, so that the client can display correct target pictures subsequently.
In some implementations, the picture identification can also include content characteristics of the target picture (e.g., the picture contains a character avatar, floral elements, etc.). The server can divide the target pictures into different groups according to all existing content characteristics, for example, the pictures containing the character head portrait in the target pictures are divided into one group, the pictures containing the flower and grass elements in the target pictures are divided into another group, and the picture identification carries the content characteristics of the target pictures, so that the server can be helped to find the group corresponding to the target pictures, and then obtain the target pictures from the group, and the server can more quickly find the access paths corresponding to the target pictures.
In some embodiments, the picture identifier carried in the picture access request may be generated by the client according to a preset rule, and the server should also be capable of obtaining the picture identifier carried in the picture access request according to the same preset rule, where the preset rule may be different in different devices, but the preset rule should be the same in the client and the server corresponding to the client, that is, the client and the server corresponding to the client should generate and crack the picture identifier in the picture access request according to the same preset rule.
Step S230: and searching an access path corresponding to the picture identification from a database.
In the embodiment of the application, after the server acquires the picture identifier carried in the picture access request, the server can determine the target picture to be displayed by the client through the picture identifier, and the server can search the picture access path corresponding to the picture identifier in the database. The database stores access paths of all pictures and corresponding relations between the access paths of the pictures and picture identifiers, and the corresponding relations can be one-to-one corresponding relations. The server can obtain the access path corresponding to the picture identifier in the picture access request by searching the corresponding relation. The database storing the correspondence may be a part of a server inside the server, or may be a server capable of performing data interaction with the server, such as a database server.
Step S240: and if an access path corresponding to the picture identification exists, returning the access path to the client.
In the embodiment of the application, the server acquires the access path corresponding to the picture identifier in the database, and if the corresponding relationship between the access path and the picture identifier exists in the database, the server can acquire the access path of the corresponding target picture through the picture identifier in the picture access request, and return the access path corresponding to the picture to the client.
Step S250: and if the access path corresponding to the picture identifier does not exist, sending first indication information to the client, wherein the first indication information is used for indicating the client to acquire the target picture through a specified interface.
In the embodiment of the application, the server obtains the access path corresponding to the picture identifier in the database, and the result may also be that the access path corresponding to the picture identifier does not exist in the database, and the reason for the result may be that the access path corresponding to the target picture identifier is not stored in the database, or that the access path is stored in the database but the picture identifier is wrong and cannot successfully correspond to the access path. For example, the picture identification error is caused by an error in the process of generating the picture identification by the client, and for example, the picture identification error is caused by an error in the process of breaking the picture access request information by the server; for another example, a picture access request is erroneous during transmission to cause a picture identification error. If the access path corresponding to the picture identifier does not exist, the client cannot acquire the target picture in a path access mode, so that the server can change the mode of acquiring the target picture by the client under the condition that the access path corresponding to the picture identifier cannot be found, namely, the client is instructed to acquire the target picture in the path access mode. Specifically, the server sends first indication information to the client, where the first indication information is used to instruct the client to acquire the target picture through a specified interface. The first indication information is feedback of the server on the search failure, and indicates the client to perform the next operation in time to acquire the data of the target picture, that is, the target picture is acquired through the specified interface. The designated interface may be an interface between the client and the server for transmitting picture data.
In some embodiments, while sending the first indication information to the client, the server may further determine whether the access right of the target picture is a path access right; if the access authority of the target picture is the path access authority, the access authority of the target picture can be adjusted to be the interface access authority; if the access authority of the target picture is the interface access authority, the authority can not be adjusted. The path access authority is used for obtaining the target picture through the access path, and the interface access authority is used for obtaining the target picture through the interface. Therefore, when the client acquires the target picture through the interface, the client can successfully acquire the target picture.
According to the picture display method provided by the embodiment of the application, the target picture can be acquired and displayed in different modes, the client sends the picture access request carrying the picture identification to the server, after the server receives the picture access request, the access path of the target picture can be acquired in the database through the acquired picture identification, and meanwhile, under the condition that the access path of the target picture does not exist, the first indication information is fed back to the client, so that the client can timely respond to the error of the picture access request, and the target picture is successfully displayed. The embodiment of the application can realize that the client side obtains the target picture in an interface access mode under the condition that the access path of the picture does not exist, perfects an actual picture display scheme and effectively ensures that a user can normally view the picture.
Referring to fig. 4, fig. 4 is a schematic flow chart illustrating a picture displaying method according to another embodiment of the present application, in a specific embodiment, the picture displaying method is applied to a server, and as will be described in detail with reference to the flow chart illustrated in fig. 4, the picture displaying method may specifically include the following steps:
step S310: and receiving a picture access request sent by a client.
Step S320: and responding to the picture access request, and acquiring an access path corresponding to a target picture to be accessed.
Step S330: and returning the access path to the client, wherein the access path is used for the client to acquire and display the target picture.
In the embodiment of the present application, steps S310 to S330 may refer to contents of other embodiments, which are not described herein again.
Step S340: and if second indication information sent by the client is received, adjusting the access authority of the target picture to interface access authority, wherein the interface access authority is used for acquiring the target picture through a specified interface, and the second indication information is used for indicating that the target picture is not acquired successfully.
In the embodiment of the application, after the server returns the access path of the target picture to the client, the client acquires and displays the target picture based on the access path. If the client fails to acquire the target picture through the access path, second indication information can be sent to the server, and the second indication information is used for indicating that the client does not successfully acquire the target picture to the server. Correspondingly, the server may receive the second indication information, and after receiving the second indication information, the server may respond to the second indication information to adjust the access right of the target picture, so that the original path access right is changed to the interface access right, and the client can acquire the target picture again through the interface access mode.
The second indication information may include a picture identifier corresponding to the target picture, so that the server may determine the corresponding target picture through the picture identifier. The server adjusts the access mode of the target picture to the interface access permission, that is, the client can directly access and acquire the target picture through the interface with the server and display the target picture, so that the client can display the picture through the interface access mode under the condition that the picture cannot be displayed through the path access mode.
In some embodiments, when receiving the second indication information sent by the client, the server further needs to determine whether the access right of the target picture needs to be changed through some steps, as shown in fig. 5, step S340 may include:
step S341: and if second indication information sent by the client is received, judging whether the access authority of the target picture is a path access authority, wherein the path access authority is used for acquiring the target picture through an access path.
In the embodiment of the application, when the server receives the second indication information sent by the client, that is, when the client obtains the target picture by way of path access, the server determines whether the access right of the target picture is the path access right. The server can determine the picture identifier of the target picture through the second indication information, find the storage position corresponding to the target picture through the picture identifier corresponding to the target picture, and judge whether the access right of the target picture is the path access right. In one case, if the access right of the target picture is not the path access right, the access right of the target picture may be adjusted to the path access right, that is, the reason why the client obtains the target picture by the path access is that the access right of the target picture in the server is not the path access right. At this moment, the access authority of the target picture is preferentially adjusted to be the path access authority, and the client can still obtain and display the target picture in a path access mode; in another case, if the access right of the target picture is a path access right, it indicates that the current client has an error through a path access mode.
Step S342: and if the access authority is the path access authority, adjusting the access authority of the target picture to be the interface access authority.
In another case, the server checks that the access right of the target picture is found to be path access, which indicates that the reason why the client obtains the target picture by the path access is not that the access right of the target picture is wrong, and at this time, the step that the client makes a mistake may be that the access path corresponding to the obtained target picture is wrong, that the access path is wrong in the transmission process, or that the client obtains the target picture by the access path, and here, the specific reason for the mistake cannot be determined. However, in order to avoid the same error occurring when the client acquires the target picture again through the path access, the server may adjust the access right corresponding to the target picture to the interface access right, and the client may acquire the target picture through the interface access, thereby reducing the probability of the repeated error occurring when the client accesses the target picture to a certain extent, that is, avoiding the same error occurring through the path access.
Step S350: and after the client finishes accessing the server, sending prompt information to a management end, wherein the prompt information is used for prompting that an access path of the target picture is abnormal.
In the embodiment of the application, an error occurs when the client accesses the target picture, and may be an error occurs in an access path stored in the database. In this case, the server cannot repair the error data autonomously, and therefore, after the client acquires and displays the target picture to the server in an interface access manner, the server may send, to the management end, prompt information for prompting that an access path corresponding to the target picture of the management end is abnormal, where the prompt information should include identification information of the target picture in which the abnormality exists. The management end can be a client corresponding to a manager.
Therefore, after receiving the prompt message, the management terminal can output the prompt message so that the administrator can know that the access path of the target picture is abnormal. Therefore, after knowing that the access path of the target picture is abnormal, the administrator can modify the access path of the target picture through the management terminal and send the modified new access path to the server, so that the server can replace the access path of the target picture with the abnormality.
Step S360: and replacing the access path of the target picture with a new path sent by the management terminal, and adjusting the access authority of the target picture to be a path access authority.
And after receiving the new access path corresponding to the target picture sent by the management terminal, the server replaces the abnormal access path corresponding to the target picture in the database with the new access path sent by the management terminal, and simultaneously adjusts the access authority of the target picture to be the path access authority. The access path changed by the management terminal reduces the error probability of the client terminal accessing the target picture to a certain extent, and at the moment, the access authority of the target picture is adjusted to be in a path access mode, so that the error probability of the client terminal accessing the target picture again can be reduced, and meanwhile, the loading time of the target picture can be reduced through the path access mode.
According to the picture display method provided by the embodiment of the application, the execution scheme when the access target picture has the error is further perfected by determining the corresponding scheme when the access path has the error, wherein the corresponding scheme comprises actions of the client, the server and the management terminal when the access target picture has the error. Therefore, the client can deal with various conditions when displaying the target picture, the picture display scheme has wider adaptability, the picture display efficiency of the client can be ensured, the probability of picture display errors is reduced, and a user can successfully view the picture.
Referring to fig. 6, fig. 6 is a schematic flow chart illustrating a picture displaying method according to another embodiment of the present application, in a specific embodiment, the picture displaying method is applied to a server, and as will be described in detail with reference to the flow chart shown in fig. 6, the picture displaying method may specifically include the following steps:
step S410: and receiving a target picture uploaded by a target user side, wherein the target user side is any client side.
In this embodiment of the application, the target picture in the server may be a picture carried by the server, may also be a picture acquired from other electronic devices, and may also be a target picture acquired from other servers. In general, pictures to be displayed by a client are often pictures uploaded to a server by a target user, where the target user may be a client displaying the pictures or other clients capable of uploading the pictures, and the present invention is not limited thereto, that is, the client may display the pictures uploaded by the client itself, may display the pictures uploaded by other clients, and may also display the pictures of other sources stored in the server.
Step S420: and storing the target picture.
In the embodiment of the application, after receiving the target picture uploaded by the target user side, the server can store the target picture. The storage location of the target picture may not be limited, and may be a memory inside the server, an external memory, or another server, such as a file server.
Step S430: generating an access path corresponding to the target picture based on the storage path of the target picture, and configuring the access right of the target picture as a path access right, wherein the path access right is used for acquiring the target picture through the access path.
In the embodiment of the application, when the server stores the target picture, the storage path of the target picture is acquired, at this time, the server needs to generate an access path corresponding to the target picture according to the storage path of the target picture, and configures the access right of the target picture as a path access right, so that the client can conveniently acquire and display the target picture through the access path, and the server can conveniently perform a series of modification operations on the target picture, such as adjusting the access right of the target picture, modifying the storage position of the target picture, and the like. The server may further store the corresponding relationship between the access path and the target picture in a database, so that the server can acquire the access path corresponding to the target picture at any time and transmit the access path to the client, where the database may be used to store the access path and the corresponding relationship between the access path and the target picture, and the database may be an internal database of the server or an external database, such as an external database server.
Step S440: and receiving a picture access request sent by a client.
Step S450: and responding to the picture access request, and acquiring an access path corresponding to a target picture to be accessed.
Step S460: and returning the access path to the client, wherein the access path is used for the client to acquire and display the target picture.
In the embodiment of the present application, reference may be made to contents of steps S440 to S460 in other embodiments, which are not described herein again.
Referring to fig. 7, in the embodiment of the present application, the server interacting with the client may be a backend server, and the backend server may communicate with a database server and a file server (e.g., a minio server, etc.). The database server is used for storing an access path corresponding to the storage position of the target picture; and the file server is used for storing the target picture uploaded from the client. The client can upload the picture selected by the user to the back-end server for storage, the back-end server stores the picture in the file server and generates an access path according to the storage position of the picture, and meanwhile, the access path of the picture is stored in the database server. The client sends a picture access request to the back-end server in response to user operation, the back-end server obtains an access path corresponding to the target picture in the database server after receiving the picture access request and returns the access path to the client, and the client obtains the target picture in the file server through the gateway according to the access path after receiving the access path and displays the target picture.
Compared with other embodiments, the picture display method provided by the embodiment of the application increases the acquisition ways and modes of the target picture, enlarges the coverage range of the target picture, and the target picture acquired by the server can be the target picture uploaded by different clients or the target picture connected and shared with other servers.
Referring to fig. 8, fig. 8 is a schematic flow chart illustrating a picture displaying method according to another embodiment of the present application, in a specific embodiment, the picture displaying method is applied to a client, and as will be described in detail with reference to the flow chart illustrated in fig. 8, the picture displaying method may specifically include the following steps:
step S510: and responding to the access operation of the target picture, and sending a picture access request for accessing the target picture to a server.
In the embodiment of the application, after responding to the access operation of the target picture, the client side can send a picture access request to the server. The access operation of the target picture may be an operation for acquiring the target picture detected by the client after displaying the corresponding interface. The picture access request is used for transmitting information that the client needs to access the target picture to the server, optionally, the picture access request may include a picture identifier of the target picture, where the picture identifier is used for instructing the server to obtain an access path corresponding to the target picture.
Step S520: and receiving an access path corresponding to the target picture returned by the server according to the picture access request.
In the embodiment of the application, after the client sends the picture access request to the server, the server can acquire the access path of the target picture through the picture identifier carried in the picture access request and transmit the access path to the client, and the client performs the next action after receiving the access path corresponding to the target picture, that is, acquires the target picture according to the access path and displays the target picture.
Step S530: and acquiring the target picture according to the access path, and displaying the target picture.
In the embodiment of the application, after the client acquires the access path corresponding to the target picture, the client can acquire the target picture according to the access path and display the target picture. The access path is used for indicating an actual storage position of the target picture, and the target picture can be stored in the server or other servers connected and shared with the server.
In some scenes, the scene applied by the embodiment of the application is a customer service scene, and some pictures can be displayed when a user performs customer service communication through a web client. For example, the customer service robot presents thumbnails of multiple pictures to the web client, and when the web client detects a selection operation on a target picture, a picture access request can be sent to the server based on the target picture selected by the selection operation; and then, the web client can receive the access path of the returned target picture, so that the web client can acquire the target picture according to the access path and display the target picture on a display interface, and the efficient display of the picture is realized.
According to the picture display method provided by the embodiment of the application, the client sends the picture access request to the server, the server responds to the picture access request to obtain the access path corresponding to the target picture and returns the access path to the client, the client accesses the target picture according to the access path, the overall scheme obtains the target picture in a path access mode, and compared with a mode of accessing the target picture through an interface, the access time is shortened, and the development cost is reduced.
Referring to fig. 9, a block diagram of a picture displaying apparatus 600 according to an embodiment of the present disclosure is shown. The picture display device 600 is applied to a server, and the picture display device 600 includes: a request receiving module 610, a path obtaining module 620 and a path sending module 630. The request receiving module 610 is configured to receive a picture access request sent by a client; the path obtaining module 620 is configured to, in response to the picture access request, obtain an access path corresponding to a target picture to be accessed; the path sending module 630 is configured to return an access path to the client, where the access path is used for the client to acquire and display the target picture.
In some embodiments, the path obtaining module 620 may be specifically configured to: responding to the picture access request, and acquiring a picture identifier carried in the picture access request; and searching an access path corresponding to the picture identification from the database. The path sending module may be specifically configured to: and if the access path corresponding to the picture identifier exists, returning the access path to the client.
In some embodiments, the picture displaying apparatus 600 may further include an indication information sending module. The indication information sending module may be configured to: and if the access path corresponding to the picture identifier does not exist, sending first indication information to the client, wherein the first indication information is used for indicating the client to acquire the target picture through a specified interface.
In some embodiments, the picture displaying apparatus 600 further comprises an authority adjustment module. The authority adjustment module is used for adjusting the access authority of the target picture into an interface access authority if second indication information sent by the client is received, wherein the interface access authority is used for obtaining the target picture through a specified interface, and the second indication information is used for indicating that the target picture is not successfully obtained.
In some embodiments, the permission adjustment module 600 may be further configured to: if second indication information sent by the client is received, judging whether the access authority of the target picture is a path access authority, wherein the path access authority is used for obtaining the target picture through an access path; and if the access authority is the path access authority, adjusting the access authority of the target picture to be the interface access authority.
In some embodiments, the picture displaying apparatus 600 may further include an exception prompting module and an exception changing module. The abnormity prompting module is used for sending prompting information to the management terminal after the client ends the access to the server, and the prompting information is used for prompting that the access path of the target picture is abnormal; and the abnormal change module is used for replacing the access path of the target picture with a new path sent by the management terminal and adjusting the access authority of the target picture into the path access authority.
In some embodiments, the picture displaying apparatus 600 may further include a picture receiving module, a storage module, and a path generating module. The image receiving module is used for receiving a target image uploaded by a target user side, wherein the target user side is any client side; the storage module is used for storing the target picture; the path generation module is used for generating an access path corresponding to the target picture based on the storage path of the target picture and configuring the access authority of the target picture as a path access authority, wherein the path access authority is used for acquiring the target picture through the access path.
Referring to fig. 10, a block diagram of another picture displaying apparatus 700 according to an embodiment of the present disclosure is shown. The picture displaying apparatus 700 is applied to a client, and the picture displaying apparatus 700 includes: a request sending module 710, a path receiving module 720 and a picture acquiring module 730. The request sending module 710 is configured to send, in response to an access operation on a target picture, a picture access request for accessing the target picture to a server; the path obtaining module 720 is configured to receive an access path corresponding to a target picture returned by the server according to the picture access; the picture acquiring module 730 is configured to acquire a target picture according to the access path and display the target picture.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
To sum up, in the scheme provided by the application, the server generates an access path corresponding to the target picture storage path, sends the access path to the client when the client initiates an access request, and simultaneously obtains and displays the target picture by the client in a path access manner. Compared with the traditional mode of accessing the target picture through the interface, the scheme reduces the loading time of the target picture and reduces the development cost.
Referring to fig. 11, a block diagram of a server according to an embodiment of the present disclosure is shown. The server 100 may be a physical server, a cloud server, a PC computer, a notebook computer, or other computer devices capable of running an application program. The server 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Referring to fig. 12, a block diagram of an electronic device according to an embodiment of the present disclosure is shown. The electronic device 200 may be a physical server, a cloud server, a PC computer, a notebook computer, or other computer device capable of running an application program. The electronic device 200 in the present application may include one or more of the following components: a processor 210, a memory 220, and one or more applications, wherein the one or more applications may be stored in the memory 220 and configured to be executed by the one or more processors 210, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 210 may include one or more processing cores. The processor 210 connects various parts within the overall computer device using various interfaces and lines, performs various functions of the computer device and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 220, and calling data stored in the memory 220. Alternatively, the processor 210 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 210 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 210, but may be implemented by a communication chip.
The Memory 220 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 220 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created by the computer device during use (e.g., phone book, audio-video data, chat log data), etc.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (13)

1. A picture display method is applied to a server, and comprises the following steps:
receiving a picture access request sent by a client;
responding to the picture access request, and acquiring an access path corresponding to a target picture to be accessed;
and returning the access path to the client, wherein the access path is used for the client to acquire and display the target picture.
2. The method according to claim 1, wherein the obtaining an access path corresponding to a target picture to be accessed in response to the picture access request comprises:
responding to the picture access request, and acquiring a picture identifier carried in the picture access request;
searching an access path corresponding to the picture identifier from a database;
the returning the access path to the client includes:
and if an access path corresponding to the picture identification exists, returning the access path to the client.
3. The method according to claim 2, wherein after the searching for the access path corresponding to the picture identifier from the database, the method further comprises:
and if the access path corresponding to the picture identifier does not exist, sending first indication information to the client, wherein the first indication information is used for indicating the client to acquire the target picture through a specified interface.
4. The method of claim 1, wherein after said returning said access path to said client, said method further comprises:
and if second indication information sent by the client is received, adjusting the access authority of the target picture to interface access authority, wherein the interface access authority is used for acquiring the target picture through a specified interface, and the second indication information is used for indicating that the target picture is not acquired successfully.
5. The method according to claim 4, wherein the adjusting the access right of the target picture to an interface access right if receiving the second indication information sent by the client comprises:
if second indication information sent by the client is received, judging whether the access authority of the target picture is a path access authority, wherein the path access authority is used for acquiring the target picture through an access path;
and if the access authority is the path access authority, adjusting the access authority of the target picture to be the interface access authority.
6. The method according to claim 4, wherein after the adjusting the access right of the target picture to the interface access right if the second indication information sent by the client is received, the method further comprises:
after the client finishes accessing the server, sending prompt information to a management end, wherein the prompt information is used for prompting that an access path of the target picture is abnormal;
and replacing the access path of the target picture with a new path sent by the management terminal, and adjusting the access authority of the target picture to be a path access authority.
7. The method according to any one of claims 1-6, wherein before the receiving the picture access request sent by the client, the method further comprises:
receiving a target picture uploaded by a target user side, wherein the target user side is any client side;
storing the target picture;
generating an access path corresponding to the target picture based on the storage path of the target picture, and configuring the access right of the target picture as a path access right, wherein the path access right is used for acquiring the target picture through the access path.
8. A picture display method is applied to a client side, and comprises the following steps:
responding to an access operation of the target picture, and sending a picture access request for accessing the target picture to a server;
receiving an access path corresponding to the target picture returned by the server according to the picture access request;
and acquiring the target picture according to the access path, and displaying the target picture.
9. A picture display device is applied to a server, and the picture display device comprises: a request receiving module, a path obtaining module and a path sending module, wherein,
the request receiving module is used for receiving a picture access request sent by a client;
the path acquisition module is used for responding to the picture access request and acquiring an access path corresponding to a target picture to be accessed;
the path sending module is used for returning the access path to the client, and the access path is used for the client to acquire and display the target picture.
10. A picture display device is applied to a client, and comprises: a request sending module, a path receiving module and a picture acquiring module, wherein,
the request sending module is used for responding to the access operation of the target picture and sending a picture access request for accessing the target picture to a server;
the path receiving module is used for receiving an access path corresponding to the target picture returned by the server according to the picture access request;
the picture acquisition module is used for acquiring the target picture according to the access path and displaying the target picture.
11. A server, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
12. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of claim 8.
13. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN202111188756.XA 2021-10-12 2021-10-12 Picture display method and device, server, electronic equipment and storage medium Pending CN113849839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111188756.XA CN113849839A (en) 2021-10-12 2021-10-12 Picture display method and device, server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111188756.XA CN113849839A (en) 2021-10-12 2021-10-12 Picture display method and device, server, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113849839A true CN113849839A (en) 2021-12-28

Family

ID=78978015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111188756.XA Pending CN113849839A (en) 2021-10-12 2021-10-12 Picture display method and device, server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113849839A (en)

Similar Documents

Publication Publication Date Title
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
US9146731B2 (en) Information processing apparatus, relay server, information relay method, non-transitory computer-readable medium storing information relay program, and communication system
CN113568884B (en) File management method and device, electronic equipment and storage medium
US10282185B2 (en) Method and apparatus for firmware virtualization
CN112637346A (en) Proxy method, device, proxy server and storage medium
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
CN104023021A (en) File transfer method and file transfer device
CN112165482B (en) Data processing method, data processing device, computer equipment and medium
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN112149035A (en) Website static resource processing method and device
CN111865676B (en) Method, device, server and storage medium for updating and checking configuration file
CN113849839A (en) Picture display method and device, server, electronic equipment and storage medium
US20150212926A1 (en) Apparatus, system, and method of activation control, and medium storing activation control program
JP6086183B2 (en) Information processing system, information processing method, server, control method thereof, and control program
CN115118587A (en) Method and device for creating connector
CN110941484B (en) Application program calling method and device
CN110677443A (en) Data transmitting and receiving method, transmitting end, receiving end, system and storage medium
CN111722994A (en) Task request response method and device
CN108733805B (en) File interaction method, system, computer equipment and storage medium
CN115225692A (en) Information processing method, device and storage medium
CN113422791A (en) Cloud service configuration method and device, electronic equipment and computer-readable storage medium
CN112052377A (en) Resource recommendation method, device, server and storage medium
CN114328272B (en) Application testing method, device and system and electronic equipment
JP2019120995A (en) Image processing system and information processing apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination