Image uploading method and device and electronic equipment

By receiving image upload instructions, reading image files from the server based on region identifiers and establishing associations, and generating upload request messages, the problem of low image upload efficiency is solved, achieving automated image file upload, reducing costs and improving efficiency.

CN120980264APending Publication Date: 2025-11-18PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511013260.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

Current technologies have low image uploading efficiency, requiring manual uploading of image materials related to business data one by one.

Method used

By receiving image upload instructions, the system reads image files from the server based on the region identifier, determines the association between the image files and business data, generates an upload request message, and sends it to the image platform for download and storage.

Benefits of technology

It enables automatic uploading of image files, reduces costs, improves uploading efficiency and reliability, and avoids resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980264A_ABST
    Figure CN120980264A_ABST
Patent Text Reader

Abstract

The invention provides an image uploading method and device and electronic equipment, and relates to the technical field of computer software. The method comprises the following steps: receiving an image uploading instruction, reading each image file in a server associated with a region identifier based on the region identifier in the instruction, determining service data associated with the image file based on each image file, establishing a corresponding association relationship, generating an uploading request message of each image file based on each association relationship, and sending the uploading request message to the server. And finally, each uploading request message is sent to an image platform associated with the region identifier, so that the image platform downloads each image file from the server, and image uploading is completed. Therefore, manual searching and uploading of the image file related to the business data are avoided, the image uploading cost is effectively reduced, and the image uploading efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer software technology, and in particular to an image uploading method, apparatus, and electronic device. Background Technology

[0002] Currently, in business systems, for business data that requires the uploading of image materials, it is usually necessary to manually upload the image materials related to the business data one by one. However, this method has low image uploading efficiency. Summary of the Invention

[0003] This disclosure provides an image uploading method, apparatus, and electronic device.

[0004] According to one aspect of this disclosure, an image uploading method is provided, comprising:

[0005] Upon receiving an image upload instruction, based on the region identifier in the instruction, each image file in the server associated with the region identifier is read;

[0006] Based on each image file, determine the business data associated with that image file and establish the corresponding association relationship;

[0007] Based on each of the aforementioned relationships, an upload request message is generated for each of the aforementioned image files;

[0008] Each upload request message is sent to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload.

[0009] According to another aspect of this disclosure, an image uploading method is provided, comprising:

[0010] Receive an upload request message sent by a business system, wherein the upload request message is generated based on the method described in one aspect of this disclosure;

[0011] Based on the upload request message, determine the storage path of the image file to be uploaded and the associated service identifier;

[0012] Based on the storage path, the corresponding image file is downloaded and stored in the folder corresponding to the service identifier to complete the upload of the image file.

[0013] According to another aspect of this disclosure, an image uploading device is provided, comprising:

[0014] The reading module is used to receive an image upload instruction and, based on the region identifier in the instruction, read each image file from the server associated with the region identifier;

[0015] The first processing module is used to determine the business data associated with each image file and establish the corresponding association relationship.

[0016] The generation module is used to generate an upload request message for each of the image files based on each of the aforementioned associations;

[0017] The sending module is used to send each of the upload request messages to the image platform associated with the region identifier, so that the image platform can download each of the image files from the server and complete the image upload.

[0018] According to another aspect of this disclosure, an image uploading device is provided, comprising:

[0019] A receiving module is used to receive an upload request message sent by a business system, wherein the upload request message is generated based on the method described in one aspect of this disclosure;

[0020] The determination module is used to determine the storage path of the image file to be uploaded and the associated service identifier based on the upload request message;

[0021] The second processing module is used to download the corresponding image file based on the storage path and store it in the folder corresponding to the service identifier, so as to complete the upload of the image file.

[0022] According to another aspect of this disclosure, an electronic device is provided, comprising:

[0023] At least one processor;

[0024] And, a memory that is communicatively connected to at least one processor;

[0025] The memory stores instructions that can be executed by at least one processor, which enables the at least one processor to perform the methods of the above embodiments.

[0026] This disclosure provides an image uploading method, apparatus, and electronic device. The business system first receives an image upload instruction, then reads each image file from the server associated with the region identifier based on the region identifier in the instruction. Next, based on each image file, it determines the associated business data and establishes a corresponding association. Then, based on each association, it generates an upload request message for each image file. Finally, it sends each upload request message to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload. This effectively avoids manually searching for and uploading image files related to business data, reducing the cost of image uploading and improving its efficiency. Attached Figure Description

[0027] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0028] Figure 1 A flowchart illustrating an image uploading method provided in this embodiment of the disclosure;

[0029] Figure 2 A flowchart illustrating an image uploading method provided in this embodiment of the disclosure;

[0030] Figure 3 A flowchart illustrating an image uploading method provided in this embodiment of the disclosure;

[0031] Figure 4 A flowchart illustrating an image uploading method provided in this embodiment of the disclosure;

[0032] Figure 5 An interactive schematic diagram of the image uploading method provided in this embodiment of the disclosure;

[0033] Figure 6 This is a schematic diagram of the structure of an image uploading device provided in an embodiment of the present disclosure;

[0034] Figure 7 This is a schematic diagram of the structure of an image uploading device provided in an embodiment of the present disclosure;

[0035] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.

[0036] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0037] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0038] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0039] It should be noted that the acquisition, transmission, storage, use, and processing of data in this disclosed technical solution all comply with the relevant provisions of national laws and regulations.

[0040] The image uploading method of this disclosure will now be described in detail with reference to the accompanying drawings.

[0041] Figure 1 This is a flowchart illustrating an image uploading method provided in an embodiment of this disclosure.

[0042] like Figure 1 As shown, the method includes:

[0043] Step 101: Upon receiving the image upload instruction, read each image file from the server associated with the region identifier based on the region identifier in the instruction.

[0044] The region identifier is used to indicate the region to which the image file to be uploaded belongs, and it can be any pre-set format. For example, the region identifier can be a region code, abbreviation, or encoding, etc., and this disclosure does not limit it.

[0045] The server can be a third-party server used to store the image files that users are uploading. Each region has a corresponding server. The image files can be stored on the server's file disk.

[0046] The specific type of image file can be determined according to specific needs. For example, image files can be pictures, videos, audio, medical images, satellite remote sensing data, etc. In other words, image files can include at least one of the following types: pictures, videos, audio, images, etc., and this disclosure does not limit this.

[0047] In this disclosure, after receiving an image upload instruction, the business system reads each image file from the server associated with the region identifier based on the region identifier in the instruction, thus providing a foundation for automatic image upload.

[0048] The business system can be determined based on the type of business. For example, a business system can be a claims system, but this disclosure does not limit it.

[0049] Optionally, the server may send an image upload command to the business system after the number of image files to be uploaded in its database is greater than or equal to a threshold. The threshold is the number of image files that trigger the image upload command, and it can be set as needed; this disclosure does not limit its setting.

[0050] Optionally, if the server contains image files to be uploaded, it can also periodically send image upload instructions to the business system. The specific timing settings can be determined as needed, and this disclosure does not impose any limitations on them.

[0051] It should be noted that the image upload command received by the business system can be sent from at least one server. When multiple servers send image upload commands to the business system, the business system reads the image file from each server respectively.

[0052] It should be noted that the business system can correspond to one for each region, or it can correspond to one for multiple regions; this disclosure does not limit this.

[0053] Optionally, the business system can also periodically send information to servers in its associated regions to determine whether there are image files to be uploaded on the servers. The duration of this period can be set as needed, and this disclosure does not limit it.

[0054] Step 102: Based on each image file, determine the business data associated with that image file and establish the corresponding association relationship.

[0055] In this disclosure, after reading each image file from the server and before uploading the image file, the business system can determine the business data associated with the image file and establish the association between each image file and the business data, thereby avoiding the need to manually search for the business data associated with the image file and providing conditions for improving the efficiency of image uploading.

[0056] It should be noted that the established association between image files and business data can be marked according to regional identifiers, and this disclosure does not limit this.

[0057] Optionally, after receiving an image upload instruction, the business system can use a scheduled task to determine the associated business data for each image file during off-peak hours, thereby effectively avoiding performance issues for the image business system and improving resource utilization. The scheduled task can be configured as needed, and this disclosure does not impose any limitations on it.

[0058] Step 103: Based on each association, generate an upload request message for each image file.

[0059] The upload request message can be used to request the upload of image files.

[0060] In this disclosure, after determining the association between each image file and business data, the business system can generate an upload request message for each image file based on each association, so as to realize the automatic upload of image files associated with business data and improve upload efficiency.

[0061] Step 104: Send each upload request message to the image platform associated with the region identifier so that the image platform can download each image file from the server and complete the image upload.

[0062] The image platform is the destination platform for uploading image files, that is, the platform used to store the uploaded image files. It can be pre-set, and this disclosure does not limit it.

[0063] In this disclosure, when sending each upload request message to the image platform associated with the region identifier, the interface address of the image platform in the corresponding region can be called according to the region identifier, and then each upload request message can be sent to the corresponding image platform.

[0064] In this disclosure, after the image upload is completed, the user can view the image data associated with the business data through the business system.

[0065] In this embodiment, the business system first receives an image upload instruction. Based on the region identifier in the instruction, it reads each image file from the server associated with the region identifier. Then, based on each image file, it determines the associated business data and establishes a corresponding association. Next, based on each association, it generates an upload request message for each image file. Finally, it sends each upload request message to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload. Therefore, upon receiving the image upload instruction, the business system automatically determines the association between the image file and the business data to generate upload request messages and send them to the image platform, enabling the image platform to download the image files and complete the upload. This effectively avoids manually searching for and uploading image files related to the business data, reducing the cost and improving the efficiency of image uploads.

[0066] Figure 2 This is a flowchart illustrating an image uploading method provided in an embodiment of this disclosure.

[0067] like Figure 2 As shown, the method for generating the configuration information in the first column includes:

[0068] Step 201: Upon receiving the image upload instruction, read each image file from the server associated with the region identifier based on the region identifier in the instruction.

[0069] The specific implementation of step 201 can be found in the detailed descriptions of other embodiments in this disclosure, and will not be repeated here.

[0070] Step 202: Obtain the file identifier for each image file, wherein the file identifier is generated based on key information of business data and preset identifier specifications.

[0071] The file identifier can be the filename used to represent the image file, and its specific structure and format can be determined according to the preset identifier specifications.

[0072] The identification standard can be used to standardize the file identification of image files. For example, it can standardize the structure, content, and format of the file identification, which is not limited in this disclosure.

[0073] Key information in business data can be any information that can characterize the business data to which it belongs. For example, key information in business data may include at least one of the following: user identifier, policy identifier, and accident date, etc., but this disclosure does not limit this.

[0074] Step 203: Based on each file identifier, match it with the data in the preset business database to determine the business identifier of the business data associated with the image file and establish the corresponding association relationship.

[0075] Among them, the business database can be the database used to store business data in the business system.

[0076] The business identifier can be an identifier used to represent business data, and it can be any pre-set form. For example, the business identifier can be a user identifier or a business type, etc., and this disclosure does not limit it.

[0077] Optionally, when matching each file identifier with data in a preset business database, the file identifier can first be parsed using regular expressions based on the identifier specification, and then the data in the business database can be queried based on the parsed data to determine the business identifier of the business data associated with the image file. This disclosure does not limit this.

[0078] Optionally, when establishing the association, an association table corresponding to the region identifier can be constructed, which stores each image file to be uploaded in the corresponding region and its associated business identifier. Alternatively, multiple association tables corresponding to different regions can be constructed, which not only store each image file and its associated business identifier, but also store the region identifier of the server where the image file is located. This disclosure does not limit this.

[0079] Step 204: Determine the storage path of each image file on the server.

[0080] In this disclosure, in order to achieve automatic uploading of image files, after establishing the association between image files and business data, the storage path of image files can be determined based on the storage location of image files on the server.

[0081] Step 205: Generate an upload request message for each image file based on the business identifier associated with each image file and the storage path.

[0082] In this disclosure, an upload request message for each image file is generated based on the business identifier associated with the image file in each association and the storage path of the image file, thereby providing a basis for realizing automatic image upload.

[0083] It should be noted that when generating the upload request message for each image file based on the business identifier associated with each image file and the storage path, the upload request message can be assembled and generated according to the interface specification of the image platform associated with the region identifier.

[0084] Step 206: Send each upload request message to the image platform associated with the region identifier so that the image platform can download each image file from the server and complete the image upload.

[0085] The specific implementation of step 206 can be found in the detailed descriptions of other embodiments in this disclosure, and will not be repeated here.

[0086] In this embodiment, the business system first receives an image upload instruction. Based on the region identifier in the instruction, it reads each image file from the server associated with the region identifier, then obtains the file identifier of each image file, and matches it with data in a preset business database to determine the business identifier of the business data associated with the image file, establishing a corresponding association relationship. It also determines the storage path of each image file on the server. Finally, based on the business identifier associated with each image file and the storage path, it generates an upload request message for each image file and sends each upload request message to the image platform associated with the region identifier. This allows the image platform to download each image file from the server and complete the image upload. Thus, the business system establishes an association relationship between image files and business data based on the file identifier generated according to the identifier specification, and generates upload request messages based on the business identifier associated with the image file and the storage path of the image file on the server, sending them to the image platform to complete the image upload, thereby improving the efficiency of image uploads.

[0087] Figure 3 This is a flowchart illustrating an image uploading method provided in an embodiment of this disclosure.

[0088] like Figure 3As shown, the method includes:

[0089] Step 301: Upon receiving the image upload instruction, based on the region identifier in the instruction, read each image file from the server associated with the region identifier.

[0090] Step 302: Based on each image file, determine the business data associated with that image file and establish the corresponding association relationship.

[0091] Step 303: Based on each association, generate an upload request message for each image file.

[0092] Step 304: Send each upload request message to the image platform associated with the region identifier so that the image platform can download each image file from the server and complete the image upload.

[0093] The specific implementation of steps 301 to 304 can be found in the detailed descriptions of other embodiments in this disclosure, and will not be repeated here.

[0094] Step 305: Receive the upload result returned by the image platform.

[0095] The upload result can be used to indicate whether the image file was uploaded successfully.

[0096] It should be noted that, in the event of an upload failure, the upload result may include the reason for the upload failure in addition to indicating that the image file upload failed. This disclosure does not limit this.

[0097] In this disclosure, after sending the upload request message to the image platform associated with the region identifier, the upload result returned by the image platform is received to determine whether the image file has been successfully uploaded, thereby improving the reliability of image upload.

[0098] Step 306: If the upload result is successful, mark the corresponding image file as uploaded.

[0099] In this disclosure, when the upload result is successful, the business system can mark the corresponding image file as uploaded to avoid duplicate uploads of image files, which would result in resource waste and data redundancy.

[0100] Optionally, if the upload result is successful, the business system can mark the corresponding image file as uploaded in the association table. This disclosure does not limit this.

[0101] Step 307: Send a notification to the server so that the server can delete the corresponding image file. The notification includes the file identifier of the uploaded image file.

[0102] In this disclosure, after an image file has been uploaded, the business system can send a notification to the server so that the server can delete the corresponding image file, thereby improving resource utilization.

[0103] Optionally, the business system can periodically traverse the association table and send the file identifiers of the uploaded image files in the association table to the corresponding server via notification so that the server can delete the uploaded image files. This disclosure does not limit this.

[0104] Optionally, if the upload fails, the business system can first determine the reason for the failure, then resolve the problem that caused the upload failure based on the reason, and return to execute the operation of sending an upload request message to re-upload the corresponding image file, thereby improving the reliability and stability of image upload.

[0105] It should be noted that if the upload result includes a failure reason, the business system can directly obtain the failure reason. If the upload result does not include a failure reason, the business system can check at least one of the following to determine the failure reason: network, file format and size, image platform server status, etc., which are not limited in this disclosure.

[0106] In this embodiment, the business system first receives an image upload instruction. Based on the region identifier in the instruction, it reads each image file from the server associated with the region identifier, and determines the associated business data for each image file, establishing a corresponding association. Then, based on each association, it generates an upload request message for each image file and sends each upload request message to the image platform associated with the region identifier. This allows the image platform to download each image file from the server and complete the image upload. Afterward, the system receives the upload result returned by the image platform. If the upload result is successful, the system marks the corresponding image file as uploaded. Finally, it sends a notification to the server so that the server can delete the corresponding image file. Thus, by establishing the association between image files and business data, sending upload request messages to the image platform, receiving the upload result returned by the image platform, marking the corresponding image file as uploaded if the upload result is successful, and sending a notification to its server so that the server can delete the corresponding image file, the business system effectively avoids resource waste and improves the reliability and stability of image uploads.

[0107] Figure 4 This is a flowchart illustrating an image uploading method provided in an embodiment of this disclosure.

[0108] like Figure 4 As shown, the method includes:

[0109] Step 401: Receive the upload request message sent by the business system.

[0110] The upload request message is generated based on the method described in the above embodiments of this disclosure.

[0111] In this disclosure, the image platform receives upload request messages sent by the business system to complete the upload of image files, thus providing conditions for realizing automated image upload.

[0112] Step 402: Based on the upload request message, determine the storage path of the image file to be uploaded and the associated service identifier.

[0113] In this disclosure, the image platform determines the storage path of the image file to be uploaded and the associated business identifier based on the upload request message, thereby providing a data foundation for accurate and reliable automatic image uploading.

[0114] Step 403: Based on the storage path, download the corresponding image file and store it in the folder corresponding to the business identifier to complete the image file upload.

[0115] In this disclosure, the image platform automatically downloads image files from the corresponding server based on the storage path and stores them in the folder corresponding to the business identifier in the platform.

[0116] It should be noted that when the image files downloaded from the server by the image platform are in compressed format, the image files need to be decompressed before storage.

[0117] It should be noted that when the image platform downloads the corresponding image file based on the storage path and stores it in the folder corresponding to the business identifier, if the folder corresponding to the business identifier does not exist in the image platform, the corresponding folder can be created first, and then the image file can be stored.

[0118] Optionally, after the image platform downloads the corresponding image file based on the storage path and stores it in the folder corresponding to the business identifier to complete the image file upload, it can return the upload result to the business system. This allows the business system to promptly perform subsequent processing based on the image upload result, such as sending a notification to the server to delete the uploaded image file, or determining the reason for the upload failure and resending the upload request message to upload the image, thereby improving the timeliness and reliability of image upload.

[0119] In this embodiment, the image platform first receives an upload request message from the business system. Then, based on the upload request message, it determines the storage path of the image file to be uploaded and the associated business identifier. Finally, based on the storage path, it downloads the corresponding image file and stores it in the folder corresponding to the business identifier, thus completing the image file upload. Therefore, by downloading image files from the server based on the upload request message sent by the business system and storing them in the folder with the associated business identifier, the image platform automates image uploading and improves its efficiency.

[0120] The following is combined Figure 5 The interactive process of the image uploading method proposed in this disclosure is illustrated with an example. Figure 5 This is an interactive schematic diagram of the image uploading method provided in the embodiments of this disclosure.

[0121] like Figure 5 As shown in the diagram, this interaction diagram uses business system 520, server 530, and image platform 540 as an example. The interaction process includes:

[0122] Step 501: Server 530 stores the image files uploaded by the user.

[0123] Step 502: Server 530 sends an image upload instruction to business system 520, wherein the instruction contains a region identifier.

[0124] Step 503: The business system 520 reads each image file in the server 530 associated with the region identifier based on the region identifier in the image upload instruction.

[0125] Step 504: The business system 520 determines the business data associated with each image file and establishes the corresponding association relationship.

[0126] Step 505: The business system 520 generates an upload request message for each image file based on each association.

[0127] In step 506, the business system 520 sends each upload request message to the image platform 540 associated with the region identifier, so that the image platform 540 can download each image file from the server 530 and complete the image upload.

[0128] Step 507: Based on the upload request message, the image platform 540 determines the storage path of the image file to be uploaded and the associated business identifier.

[0129] In step 508, the image platform 540 downloads the corresponding image file based on the storage path and stores it in the folder corresponding to the business identifier in the platform to complete the upload of the image file.

[0130] Step 509: The image platform 540 returns the upload result to the business system 520.

[0131] Step 510: If the upload result is successful, the business system 520 marks the corresponding image file as uploaded.

[0132] Step 511: The business system 520 sends a notification to the server 530 so that the server 530 can delete the corresponding image file. The notification includes the file identifier of the uploaded image file.

[0133] Step 512, server 530 deletes the uploaded image file.

[0134] Optionally, if the upload result is an upload failure, steps 510 to 511 can also be as follows: Step 510, if the upload result is an upload failure, the business system 520 determines the reason for the failure. Step 511, based on the reason for the failure, the business system 520 resolves the problem causing the upload failure and returns to step 506 to execute the operation of sending an upload request message to re-upload the image file corresponding to the upload result (not shown in the figure).

[0135] In this embodiment of the disclosure, the business system automatically establishes the association between the image file to be uploaded in the server and the business data, sends an upload request message to the image platform, and the image platform downloads and stores the image file based on the request message, thereby realizing the automatic uploading of image files and improving the efficiency of image uploading.

[0136] To implement the above embodiments, this disclosure also proposes an image uploading device.

[0137] Figure 6 This is a schematic diagram of the structure of an image uploading device provided in an embodiment of the present disclosure.

[0138] like Figure 6 As shown, the image uploading device 600 may include:

[0139] The reading module 601 is used to receive an image upload instruction and, based on the region identifier in the instruction, read each image file from the server associated with the region identifier.

[0140] The first processing module 602 is used to determine the business data associated with each image file and establish the corresponding association relationship.

[0141] The generation module 603 is used to generate an upload request message for each image file based on each association relationship;

[0142] The sending module 604 is used to send each upload request message to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload.

[0143] Optionally, the first processing module 602 described above is specifically used for:

[0144] Obtain the file identifier for each image file, where the file identifier is generated based on key information of business data and preset identifier specifications;

[0145] Based on each file identifier, it is matched with data in the preset business database to determine the business identifier of the business data associated with the image file and establish the corresponding association relationship.

[0146] Optionally, the first processing module 602 described above is further configured to:

[0147] Determine the storage path for each image file on the server;

[0148] Based on the business identifier associated with each image file and its storage path, an upload request message is generated for each image file.

[0149] Optionally, the above-mentioned sending module 604 is further configured to:

[0150] Receive the upload results returned by the image platform;

[0151] If the upload result is successful, the corresponding image file will be marked as uploaded;

[0152] Send a notification to the server so that the server can delete the corresponding image file. The notification includes the file identifier of the uploaded image file.

[0153] Optionally, the above-mentioned sending module 604 is further configured to:

[0154] If the upload fails, determine the reason for the failure.

[0155] Based on the cause of the failure, resolve the issue that caused the upload failure, and return to the operation of sending an upload request message to re-upload the image file corresponding to the upload result.

[0156] The functions and specific implementation principles of the modules described in this embodiment can be found in the above method embodiments, and will not be repeated here.

[0157] In this disclosure, the business system first receives an image upload instruction. Based on the region identifier in the instruction, it reads each image file from the server associated with the region identifier. Then, based on each image file, it determines the associated business data and establishes a corresponding association. Next, based on each association, it generates an upload request message for each image file. Finally, it sends each upload request message to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload. Thus, upon receiving an image upload instruction, the business system automatically determines the association between image files and business data to generate upload request messages and sends them to the image platform, enabling the image platform to download the image files and complete the upload. This effectively avoids manually searching for and uploading image files related to business data, reducing the cost of image uploads and improving their efficiency.

[0158] Figure 7 This is a schematic diagram of the structure of an image uploading device provided in an embodiment of the present disclosure.

[0159] like Figure 7 As shown, the image uploading device 700 may include:

[0160] The receiving module 701 is used to receive an upload request message sent by the business system, wherein the upload request message is generated based on the method described in the above embodiments of this disclosure;

[0161] The determination module 702 is used to determine the storage path of the image file to be uploaded and the associated service identifier based on the upload request message;

[0162] The second processing module 703 is used to download the corresponding image file based on the storage path and store it in the folder corresponding to the business identifier to complete the upload of the image file.

[0163] Optionally, the second processing module 703 described above is further configured to:

[0164] Return the upload result to the business system.

[0165] The functions and specific implementation principles of the modules described in this embodiment can be found in the above method embodiments, and will not be repeated here.

[0166] In this disclosure, the image platform first receives an upload request message from the business system. Then, based on the upload request message, it determines the storage path of the image file to be uploaded and the associated business identifier. Finally, based on the storage path, it downloads the corresponding image file and stores it in the folder corresponding to the business identifier, thus completing the image file upload. Therefore, by downloading image files from the server based on the upload request message sent by the business system and storing them in the folder with the associated business identifier, the image platform automates image uploading and improves its efficiency.

[0167] Figure 8 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown.

[0168] Figure 8 The electronic device 12 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0169] like Figure 8 As shown, electronic device 12 is represented in the form of a general-purpose computing device. Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, memory 28, and a bus 18 connecting different system components (including memory 28 and processing unit 16). Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0170] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0171] Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 8 Not shown; usually referred to as a "hard drive".

[0172] although Figure 8 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a Compact Disc Read-Only Memory (CD-ROM), a Digital Video Disc Read-Only Memory (DVD-ROM), or other optical media). In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.

[0173] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this disclosure.

[0174] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable human interaction with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0175] The processing unit 16 executes various functional applications and parameter information determination by running the program stored in the memory 28, such as implementing the image uploading method mentioned in the foregoing embodiments.

[0176] To implement the above embodiments, this disclosure also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the image uploading method as proposed in the foregoing embodiments of this disclosure.

[0177] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0178] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0179] It should be noted that in the description of this disclosure, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0180] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this disclosure pertain.

[0181] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0182] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0183] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0184] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0185] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0186] Although embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present disclosure.

Claims

1. An image uploading method, characterized in that, include: Upon receiving an image upload instruction, based on the region identifier in the instruction, each image file in the server associated with the region identifier is read; Based on each image file, determine the business data associated with that image file and establish the corresponding association relationship; Based on each of the aforementioned relationships, an upload request message is generated for each of the aforementioned image files; Each upload request message is sent to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload.

2. The method as described in claim 1, characterized in that, The step of determining the associated business data for each image file and establishing a corresponding association relationship includes: Obtain the file identifier for each of the image files, wherein the file identifier is generated based on key information of business data and a preset identifier specification; Based on each file identifier, the data is matched with data in a preset business database to determine the business identifier of the business data associated with the image file and establish the corresponding association relationship.

3. The method as described in claim 2, characterized in that, The step of generating an upload request message for each image file based on each of the aforementioned associations includes: Determine the storage path of each of the image files on the server; Based on the service identifier associated with each image file and the storage path, an upload request message is generated for each image file.

4. The method according to any one of claims 1-3, characterized in that, After sending each upload request message to the image platform associated with the region identifier, so that the image platform can download each image file from the server and complete the image upload, the process further includes: Receive the upload result returned by the image platform; If the upload result is successful, the corresponding image file will be marked as uploaded; A notification is sent to the server so that the server can delete the corresponding image file, wherein the notification includes the file identifier of the uploaded image file.

5. The method as described in claim 4, characterized in that, After receiving the image upload result of the image file returned by the image platform, the method further includes: If the upload result is an upload failure, determine the reason for the failure; Based on the reasons for the failure, the problem causing the upload failure is resolved, and the operation of sending an upload request message is returned to re-upload the image file corresponding to the upload result.

6. An image uploading method, characterized in that, include: Receive an upload request message sent by a business system, wherein the upload request message is generated based on the method described in any one of claims 1-5; Based on the upload request message, determine the storage path of the image file to be uploaded and the associated service identifier; Based on the storage path, the corresponding image file is downloaded and stored in the folder corresponding to the service identifier to complete the upload of the image file.

7. The method as described in claim 6, characterized in that, After downloading the corresponding image file based on the storage path and storing it in the folder corresponding to the service identifier to complete the upload of the image file, the method further includes: Return the upload result to the business system.

8. An image uploading device, characterized in that, include: The reading module is used to receive an image upload instruction and, based on the region identifier in the instruction, read each image file from the server associated with the region identifier; The first processing module is used to determine the business data associated with each image file and establish the corresponding association relationship. The generation module is used to generate an upload request message for each of the image files based on each of the aforementioned associations; The sending module is used to send each of the upload request messages to the image platform associated with the region identifier, so that the image platform can download each of the image files from the server and complete the image upload.

9. An image uploading device, characterized in that, include: A receiving module is used to receive an upload request message sent by a business system, wherein the upload request message is generated based on the method described in any one of claims 1-5; The determination module is used to determine the storage path of the image file to be uploaded and the associated service identifier based on the upload request message; The second processing module is used to download the corresponding image file based on the storage path and store it in the folder corresponding to the service identifier, so as to complete the upload of the image file.

10. An electronic device, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions that may be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the image uploading method according to any one of claims 1-7.