Mirror image uploading and issuing method and system
Through image file preparation, segmentation, encryption, P2P deployment, upload management, and error detection and recording, it solves the problems of slow speed, security and integrity in the image file upload process, and realizes efficient, secure image management and user-friendly upload experience.
Patent Information
- Application Number
- CN202510511957.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-09-05
AI Technical Summary
In the existing technology, the image file upload process is time-consuming, slow, has limited network bandwidth, and insufficient error management and progress feedback. As a result, the upload fails and needs to be started from the beginning. There is also a lack of data security and integrity verification, which affects the user experience.
Through image file preparation, segmentation, encryption, P2P deployment, upload management, error detection and recording, hash value verification is used to achieve breakpoint resumption and real-time progress feedback, provide rich upload configuration options, and perform semantic version management and data verification during the delivery process.
It improves the efficiency and security of image file uploading, ensures data integrity, enhances user experience and convenience of image management, optimizes resource allocation and server load, and provides flexible storage and download control.
Smart Images

Figure CN120602500A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a method and system for uploading and sending images. Background Art
[0002] In the existing technology, users usually need to upload image files to a designated storage or processing module, such as the Glance control module, through a cloud management platform. However, users often encounter some difficulties and problems in this process. First, image files are usually large in size, which causes the upload process to take a long time. Second, the management network bandwidth used by the cloud management platform is limited and may often be busy, which further exacerbates the problem of slow upload speeds. In addition, if an error or failure occurs during the upload process, the user usually needs to re-upload from the beginning, which not only wastes time but also reduces the user experience.
[0003] More specifically, existing technologies lack detailed error management and progress feedback mechanisms for image file uploads. When users upload image files, network fluctuations, storage failures, or other issues may interrupt or fail the upload process. However, due to the lack of effective error management and progress feedback mechanisms, users often lack timely information about upload progress and errors, preventing them from taking appropriate action to resolve the issue. This further increases the difficulty and time-consuming process of uploading image files. Summary of the Invention
[0004] In order to overcome the problems raised in the above background technology, the present invention proposes a method and system for uploading and sending images.
[0005] The technical solution of the present invention is: a method for uploading and sending images, comprising the following steps: S11: image file preparation, preparing the image file to be uploaded, wherein the prepared image file is a container image file containing an operating system, application program, and configuration file; S12: Log in to the mirror platform. The user logs in to the mirror platform using the provided account and password. S13: Upload the image file. On the image platform, the user performs operations and specifies the file to be uploaded. S14: Upload management: the image platform starts uploading the image file to the server and manages the upload progress during the upload process; S15: Store and manage the image. After uploading, the image file is stored in the cloud storage. S16: P2P deployment, the image file is uploaded to the user end for operation, and the client for P2P deployment is selected to perform P2P deployment; S17: Mirror file distribution. After the P2P deployment is completed, a download link is generated according to the downloading user's selection and a download tool is provided to distribute the mirror file.
[0006] Preferably, when preparing the image file, the container image file is packaged into an unencrypted binary file, and an encryption tool is added to the packaged binary file.
[0007] As a preferred embodiment, in the mirroring platform, when the user performs an operation and specifies the file to be uploaded, it specifically includes: S21: Select files, read files on the user side in the mirroring platform, and select the files to be uploaded; S22: File check: Check the file to see if the file format is correct and perform a test run to ensure that the selected file is the correct image file. S23: File segmentation, segmenting the checked image file into multiple files, where the multiple files include an operating system, an application, and a configuration file; S24: File encryption, using the encryption tool in the file to encrypt the multiple files after splitting; S25: Select the upload option. In the image platform, the user selects the option to upload the image file.
[0008] Preferably, in the image platform, when the user selects the option to upload an image file, the options selected include: A11: instruction target warehouse; A12: Name the uploaded space; A13: Set the permissions and password for image file downloads; A14: Choose whether to compress the image file.
[0009] As a preferred embodiment, when the image platform starts uploading the image file to the server and manages the upload progress during the upload process, it specifically includes: S31: Upload task establishment, multiple data upload tasks are established according to the file segmentation results; S32: Data upload: upload data according to the established data upload task; S33: Upload management, perform upload management, including error feedback, progress feedback and upload error management.
[0010] As a preference, when performing upload error management, the upload error management measures adopted are: S41: Record progress. During the upload process, the number of bytes uploaded is continuously recorded as the current transmission progress. S42: Detect errors. During the upload process, detect upload errors and record error information when errors are detected. S43: Saving the progress: saving the transmission progress, wherein two copies of the transmission progress are saved, wherein the two copies of the transmission progress are saved on the user terminal and the mirroring platform respectively; S44: Re-upload. When it is detected that the environment is suitable for re-uploading, the previously saved transfer progress is read and the two transfer progresses are compared. After verification, the upload is continued; S45: Continue to detect. If the number of errors reaches the set upper limit, re-upload and notify the user.
[0011] Preferably, after the image file is stored in the cloud storage, semantic version naming is used for the image file, that is, the name of the image file is V+1+2+3, where V is the name of the image file, 1 is the version number of the image file, 2 is the minor version number of the image file, and 3 is the revision number of the image file.
[0012] Preferably, when the image file is sent down, the same error management measures as those used in the uploading process are adopted for sending down management.
[0013] Preferably, when the image file is distributed, a hash value verification method is used to verify and check the data during the distribution process, and the detected erroneous parts are re-distributed.
[0014] An image uploading and downloading system includes: The image file preparation module is responsible for preparing the image file to be uploaded; Mirror platform login module, used to provide user login function and user operation interface; The upload operation module is used to check, split and encrypt image files before uploading; Upload management module, used to manage the upload process of image files; The storage management module is responsible for storing the uploaded image files in the cloud storage and managing the image files; P2P deployment module, used to perform P2P deployment according to user selection; The image file distribution module is responsible for distributing the image file after the P2P deployment is completed.
[0015] Beneficial effects of the present invention: 1. Compared with the shortcomings of the existing technology in uploading image files, which lack detailed error management and progress feedback, resulting in the need to start from the beginning after upload failure, this solution establishes multiple data upload tasks and manages upload progress in real time during the image file upload process. When an upload error occurs, it takes measures such as recording progress, detecting errors, saving duplicate progress, and re-uploading after comparison and verification. At the same time, it sets an upper limit on the number of errors and notifies the user. The detailed upload management and error handling strategy adopted by this solution not only provides real-time progress feedback and detailed error information records, but also realizes breakpoint resumption by saving duplicate transmission progress, greatly improving upload efficiency and user experience. At the same time, the set upper limit on the number of errors effectively avoids the problem of infinite upload loops. 2. Compared with the existing technology that directly uploads container image files in an unencrypted form, which has the risk of data leakage and the shortcomings of lacking verification during the upload process, this solution first packages the container image file into an unencrypted binary file and has a built-in encryption tool when preparing the image file. Then, on the image platform, through steps such as file selection, file inspection, file splitting, and file encryption, it ensures that the uploaded file format is correct and the content is secure. Finally, the upload option is selected. The file encryption and split upload strategy adopted by this solution not only enhances the security of data transmission, but also improves the accuracy of uploaded files through the file inspection step, thereby effectively avoiding the risk of data leakage and improving the reliability and security of the upload process. 3. Compared with the existing technology that lacks data integrity verification during the image file distribution process, resulting in the possibility that erroneous data may not be discovered and corrected in a timely manner, this solution uses a hash value verification method to strictly verify and check the data when distributing the image file. Once a data error is found, the erroneous part will be re-distributed. The hash value verification strategy adopted by this solution not only significantly improves the accuracy of data distribution and ensures that the image file received by the user is intact, but also effectively shortens the user waiting time and improves the user experience by immediately retransmitting the erroneous part. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a flowchart of the image uploading and downloading method of the present invention; Figure 2 Shown is a schematic diagram of the structure of the image uploading and downloading system of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be further described below with reference to the accompanying drawings and examples.
[0018] See also Figure 1 The present invention provides an embodiment: a method for uploading and sending an image, comprising the following steps: S11: image file preparation, preparing the image file to be uploaded, wherein the prepared image file is a container image file containing an operating system, application program, and configuration file; S12: Log in to the mirror platform. The user logs in to the mirror platform using the provided account and password. S13: Upload the image file. On the image platform, the user performs operations and specifies the file to be uploaded. S14: Upload management: the image platform starts uploading the image file to the server and manages the upload progress during the upload process; S15: Store and manage the image. After uploading, the image file is stored in the cloud storage. S16: P2P deployment, the image file is uploaded to the user end for operation, and the client for P2P deployment is selected to perform P2P deployment; S17: Mirror file distribution. After the P2P deployment is completed, a download link is generated according to the downloading user's selection and a download tool is provided to distribute the mirror file.
[0019] As described above, the present invention prepares a container image file containing an operating system, application program, and configuration file, and uses an image platform to realize full-process automation processing such as login, upload, management, storage, P2P deployment, and distribution. This not only improves the transmission efficiency and security of the image file, but also optimizes resource allocation and reduces server load through P2P deployment. At the same time, it generates download links and provides download tools, which greatly facilitates users to obtain the required image files and improves the convenience and practicality of image management as a whole.
[0020] Preferably, when preparing the image file, the container image file is packaged into an unencrypted binary file, and an encryption tool is added to the packaged binary file.
[0021] As a preferred embodiment, in the mirroring platform, when the user performs an operation and specifies the file to be uploaded, it specifically includes: S21: Select files, read files on the user side in the mirroring platform, and select the files to be uploaded; S22: File check: Check the file to see if the file format is correct and perform a test run to ensure that the selected file is the correct image file. S23: File segmentation, segmenting the checked image file into multiple files, where the multiple files include an operating system, an application, and a configuration file; S24: File encryption, using the encryption tool in the file to encrypt the multiple files after splitting; S25: Select the upload option. In the image platform, the user selects the option to upload the image file.
[0022] As described above, compared to existing technologies that directly upload container image files in an unencrypted form, which poses a risk of data leakage and lacks verification during the upload process, this solution first packages the container image file into an unencrypted binary file with a built-in encryption tool when preparing the image file. Then, on the image platform, the system ensures that the uploaded file format is correct and the content is secure through steps such as file selection, file inspection, file splitting, and file encryption. Finally, the upload option is selected. The file encryption and split upload strategy adopted by this solution not only enhances the security of data transmission, but also improves the accuracy of uploaded files through the file inspection step, thereby effectively avoiding the risk of data leakage and improving the reliability and security of the upload process.
[0023] Preferably, in the image platform, when the user selects the option to upload an image file, the options selected include: A11: instruction target warehouse; A12: Name the uploaded space; A13: Set the permissions and password for image file downloads; A14: Choose whether to compress the image file.
[0024] As described above, when users upload an image file on the image platform, they can specify the target repository, name the upload space, set download permissions and passwords, and choose whether to compress the image file. This technical solution offers a rich set of upload configuration options, allowing users to flexibly set the image file's storage location, access permissions, and file size based on their needs. This enhances the flexibility and security of image management while also optimizing storage space and download efficiency.
[0025] As a preferred embodiment, when the image platform starts uploading the image file to the server and manages the upload progress during the upload process, it specifically includes: S31: Upload task establishment, multiple data upload tasks are established according to the file segmentation results; S32: Data upload: upload data according to the established data upload task; S33: Upload management, perform upload management, including error feedback, progress feedback and upload error management.
[0026] As a preference, when performing upload error management, the upload error management measures adopted are: S41: Record progress. During the upload process, the number of bytes uploaded is continuously recorded as the current transmission progress. S42: Detect errors. During the upload process, detect upload errors and record error information when errors are detected. S43: Saving the progress: saving the transmission progress, wherein two copies of the transmission progress are saved, wherein the two copies of the transmission progress are saved on the user terminal and the mirroring platform respectively; S44: Re-upload. When it is detected that the environment is suitable for re-uploading, the previously saved transfer progress is read and the two transfer progresses are compared. After verification, the upload is continued; S45: Continue to detect. If the number of errors reaches the set upper limit, re-upload and notify the user.
[0027] As described above, compared to the prior art's lack of detailed error management and progress feedback when uploading image files, which results in the need to restart from the beginning after an upload failure, this solution establishes multiple data upload tasks, manages upload progress in real time, and, when an upload error occurs, records progress, detects errors, saves duplicate copies of the progress, and re-uploads after verification. Furthermore, it sets an upper limit on the number of errors and notifies the user. This detailed upload management and error handling strategy not only provides real-time progress feedback and detailed error information, but also enables resumable uploads by saving duplicate copies of the transfer progress, significantly improving upload efficiency and user experience. Furthermore, the set upper limit on the number of errors effectively avoids the problem of infinite upload loops.
[0028] Preferably, after the image file is stored in the cloud storage, semantic version naming is used for the image file, that is, the name of the image file is V+1+2+3, where V is the name of the image file, 1 is the version number of the image file, 2 is the minor version number of the image file, and 3 is the revision number of the image file.
[0029] As mentioned above, after storing image files in a cloud storage system, this technical solution uses semantic versioning (V + version number + minor version number + revision number) to name the image files. Compared to traditional naming methods, this solution not only makes image file version management more intuitive and clear, but also greatly facilitates users to quickly locate the required image based on the version number, effectively improving the efficiency and accuracy of image retrieval, and also facilitates the orderly iteration and compatibility management of image versions.
[0030] Preferably, when the image file is sent down, the same error management measures as those used in the uploading process are adopted for sending down management.
[0031] As described above, when sending image files, the same error management measures as those used in the upload process are adopted. The beneficial effect of this technical solution is that it can ensure consistency in error handling between the sending and uploading processes, thereby not only improving the reliability and stability of the sending, but also using proven error management strategies to effectively deal with various problems that may arise during the sending process, thereby ensuring that the image files can be delivered to users accurately and efficiently.
[0032] Preferably, when the image file is distributed, a hash value verification method is used to verify and check the data during the distribution process, and the detected erroneous parts are re-distributed.
[0033] As described above, compared to existing technologies that lack data integrity verification during image file delivery, which can result in erroneous data not being discovered and corrected in a timely manner, this solution employs a hash value verification method to rigorously verify and check data during image file delivery. If a data error is detected, the erroneous portion is re-delivered. This hash value verification strategy not only significantly improves data delivery accuracy, ensuring that users receive intact image files, but also effectively reduces user wait time and improves the user experience by instantly retransmitting erroneous portions.
[0034] See also Figure 2 The present invention provides an embodiment: a mirror image uploading and downloading system, comprising: The image file preparation module is responsible for preparing the image file to be uploaded; Mirror platform login module, used to provide user login function and user operation interface; The upload operation module is used to check, split and encrypt image files before uploading; Upload management module, used to manage the upload process of image files; The storage management module is responsible for storing the uploaded image files in the cloud storage and managing the image files; P2P deployment module, used to perform P2P deployment according to user selection; The image file distribution module is responsible for distributing the image file after the P2P deployment is completed.
[0035] As described above, the present invention builds an image upload and distribution system that integrates multiple modules, including image file preparation, user login, upload operations, upload management, storage management, P2P deployment, and image file distribution. This system automates the entire image file process, from preparation to distribution. Compared to traditional methods, this system not only improves the efficiency and security of image management but also optimizes resource allocation and reduces server load through P2P deployment, providing users with more efficient and convenient image file upload and distribution services.
[0036] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the scope of knowledge of those skilled in the art without departing from the spirit of the present invention.
Claims
1. A method for uploading and sending images; characterized by: The following steps are included: S11: image file preparation, preparing the image file to be uploaded, wherein the prepared image file is a container image file containing an operating system, application program, and configuration file; S12: Log in to the mirror platform. The user logs in to the mirror platform using the provided account and password. S13: Upload the image file. On the image platform, the user performs operations and specifies the file to be uploaded. S14: Upload management: the image platform starts uploading the image file to the server and manages the upload progress during the upload process; S15: Store and manage the image. After uploading, the image file is stored in the cloud storage. S16: P2P deployment, the image file is uploaded to the user end for operation, and the client for P2P deployment is selected to perform P2P deployment; S17: Mirror file distribution. After the P2P deployment is completed, a download link is generated according to the downloading user's selection and a download tool is provided to distribute the mirror file.
2. The image uploading and sending method according to claim 1, characterized in that: When preparing the image file, package the container image file into an unencrypted binary file and add an encryption tool to the packaged binary file.
3. The image uploading and sending method according to claim 2, characterized in that: On the mirroring platform, when a user performs an operation and specifies the files to be uploaded, the following are included: S21: Select files, read files on the user side in the mirroring platform, and select the files to be uploaded; S22: File check: Check the file to see if the file format is correct and perform a test run to ensure that the selected file is the correct image file. S23: File segmentation, segmenting the checked image file into multiple files, where the multiple files include an operating system, an application, and a configuration file; S24: File encryption, using the encryption tool in the file to encrypt the multiple files after splitting; S25: Select the upload option. In the image platform, the user selects the option to upload the image file.
4. The image uploading and sending method according to claim 3, characterized in that: On the image platform, when users select the option to upload an image file, the options include: A11: instruction target warehouse; A12: Name the uploaded space; A13: Set the permissions and password for image file downloads; A14: Choose whether to compress the image file.
5. The image uploading and sending method according to claim 4, characterized in that: The image platform starts uploading the image file to the server and manages the upload progress during the upload process, specifically including: S31: Upload task establishment, multiple data upload tasks are established according to the file segmentation results; S32: Data upload: upload data according to the established data upload task; S33: Upload management, perform upload management, including error feedback, progress feedback and upload error management.
6. The image uploading and sending method according to claim 5, characterized in that: When performing upload error management, the upload error management measures adopted are: S41: Record progress. During the upload process, the number of bytes uploaded is continuously recorded as the current transmission progress. S42: Detecting errors: During the uploading process, detecting upload errors and recording error information when errors are detected; S43: Saving the progress: saving the transmission progress, wherein two copies of the transmission progress are saved, wherein the two copies of the transmission progress are saved on the user terminal and the mirroring platform respectively; S44: Re-upload. When it is detected that the environment is suitable for re-upload, the previously saved transfer progress is read and the two transfer progresses are compared. After verification, the upload is continued; S45: Continue to detect. If the number of errors reaches the set upper limit, re-upload and notify the user.
7. The image uploading and sending method according to claim 6, characterized in that: After the image file is stored in the cloud storage, the image file is named using semantic versioning, that is, the name of the image file is V+1+2+3, where V is the name of the image file, 1 is the version number of the image file, 2 is the minor version number of the image file, and 3 is the revision number of the image file.
8. The image uploading and sending method according to claim 7, characterized in that: When sending image files, the same error management measures as those used in the upload process are used for sending and managing.
9. The image uploading and sending method according to claim 8, characterized in that: When sending image files, the hash value verification method is used to verify and check the data during the sending process, and the detected erroneous parts are re-sent.
10. A mirror image uploading and downloading system, characterized by: Includes: The image file preparation module is responsible for preparing the image file to be uploaded; Mirror platform login module, used to provide user login function and user operation interface; The upload operation module is used to check, split and encrypt image files before uploading; Upload management module, used to manage the upload process of image files; The storage management module is responsible for storing the uploaded image files in the cloud storage and managing the image files; P2P deployment module, used to perform P2P deployment according to user selection; The image file distribution module is responsible for distributing the image file after the P2P deployment is completed.