A method and system for automatically uploading images without IE browser
By using Java programs and encryption technology in the background of the Baosi system, combined with ActiveX controls, automatic upload of images that skip IE browser is achieved, solving the problems of low efficiency and poor security in the existing technology, and improving the degree of automation and data security.
Patent Information
- Application Number
- CN202510130942.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-02-06
AI Technical Summary
Image upload in the existing security system relies on the old IE browser, which has problems such as insufficient performance, security risks and low automation.
By using Java programs to receive order information in the background of the Baosi system server, generate JS files, and encrypt image data using dynamic encryption tables to generate digital signatures. Finally, by executing the JS file, automatically triggering the ActiveX control-driven image upload program, skipping the IE browser.
It improves the degree of automation of image upload, reduces manual operations, enhances the security and accuracy of data transmission, and avoids the performance limitations and security risks of IE browser.
Smart Images

Figure CN119603483B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image transmission, and in particular to an automatic image uploading method and system that skips IE browser. Background Art
[0002] With the development of informatization in the insurance industry, the insurance company system's policy issuance process requires the upload of image data to ensure the integrity and authenticity of the policy data. Especially in the process of issuing auto insurance policies, the number of orders is huge, and a large amount of image data needs to be processed every day. The process of issuing auto insurance policies usually includes two main links: mobile phone information entry and insurance company system image upload. That is, after the user enters the information on the mobile phone, the image data still needs to be uploaded to the insurance company system.
[0003] The traditional method mainly relies on manual uploading, which is inefficient and has a high error rate. In order to solve the efficiency problem, the method of online data entry and offline image uploading is adopted, which improves the uploading efficiency but easily leads to mismatch between data and image materials.
[0004] Therefore, the image upload of the current insurance system relies on the IE (Internet Explorer) browser. The process of using the IE browser → driving a third-party exe (executable) program → completing the image upload greatly improves efficiency and reduces the error rate compared to manual operation. However, the IE browser is an earlier browser, and many modern functions and technologies are not supported. The backward technology limits the performance of the controls, and when the controls are running in the IE browser, there are usually major security risks and they are easily attacked by malicious code. In addition, the automatic upload of images requires a background program to control the process, and the IE browser, as a front-end tool, requires manual triggering or configuration of many operations, and human intervention will affect the automation and accuracy of the images. Summary of the invention
[0005] In order to overcome the above-mentioned shortcomings of the prior art, the present invention proposes a method for automatically uploading images by skipping the IE browser, comprising:
[0006] Utilize the background Java program of the insurance company system server to receive the order information of the client, and generate the JS file of the image data in the order information based on the business requirements of the order information;
[0007] Encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data;
[0008] The background Java program is utilized to execute the JS file to automatically trigger the image upload program driven by the ActiveX control, and upload the encrypted image data and the digital signature to the target storage location.
[0009] Optionally, encrypting the image data based on a dynamic encryption code table to obtain encrypted image data includes:
[0010] Using the background Java program to convert the image data into binary image data;
[0011] Grouping and filling the binary image data to obtain preprocessed binary image data, and converting the binary image data into decimal image data;
[0012] Based on a preset dynamic encryption code table, obtaining an encrypted character value of the decimal image data;
[0013] The encrypted image data is constructed based on the encrypted character value of the decimal image data.
[0014] Optionally, after generating the JS file of the image data in the order information based on the business requirements of the order information, the method further includes:
[0015] Process the JS file using a hash algorithm to generate a hash value corresponding to the JS file;
[0016] The hash value and the JS file are obfuscated by an XOR operation to obtain the obfuscated JS file;
[0017] The obfuscated JS file is encrypted using a strong encryption algorithm to generate an encrypted JS file.
[0018] Optionally, before encrypting the image data based on the dynamic encryption code table to obtain encrypted image data, the method further includes:
[0019] After starting the background Java server to receive the image data, an initial dynamic encryption code table is generated using a random algorithm;
[0020] Dividing the values in the initial dynamic encryption code table into two groups;
[0021] The values in the two groups are exchanged correspondingly to obtain the final dynamic encryption code table.
[0022] Optionally, the JS file includes logic for locating image data, logic for setting task parameters, task parameters, and the name of the image upload program driven by the ActiveX control.
[0023] Optionally, the step of utilizing the background Java program to execute the JS file to automatically trigger an image upload program driven by an ActiveX control to upload the encrypted image data and the digital signature to a target storage location includes:
[0024] Using the background Java program to call the command line script host program to execute the JS file;
[0025] By executing the JS file, the image upload program driven by the ActiveX control is automatically triggered;
[0026] Using the JS file to call the API interface provided by the image upload program, the task parameters in the JS file are passed to the image upload program;
[0027] Using the image upload program to upload the encrypted image data and the digital signature to a target storage location according to the task parameters, the digital signature is used to verify whether the encrypted image data has been tampered with during the uploading process;
[0028] The task parameters include target storage location, image upload path and authentication information.
[0029] Optionally, the background Java program is constructed in the following manner:
[0030] Develop an initial background Java program based on an open source framework to receive uploaded data;
[0031] Based on the processing requirements of the image data, the image processing logic, storage logic and automatic scheduling logic are configured in the initial background Java program to obtain the final background Java program.
[0032] Based on the same inventive concept, the present invention proposes an automatic image uploading system that skips the IE browser, comprising:
[0033] The data receiving module receives the order information from the client by using the background Java program of the insurance system server, and generates a JS file of the image data in the order information based on the business requirements of the order information;
[0034] A data processing module, encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data;
[0035] The data upload module utilizes the background Java program to execute the JS file to automatically trigger the image upload program driven by the ActiveX control, and uploads the encrypted image data and the digital signature to the target storage location.
[0036] Optionally, the data processing module is specifically used to:
[0037] Using the background Java program to convert the image data into binary image data;
[0038] Grouping and filling the binary image data to obtain preprocessed binary image data, and converting the binary image data into decimal image data;
[0039] Based on a preset dynamic encryption code table, obtaining an encrypted character value of the decimal image data;
[0040] The encrypted image data is constructed based on the encrypted character value of the decimal image data.
[0041] Optionally, the system further includes a JS file encryption module, which is used to:
[0042] Process the JS file using a hash algorithm to generate a hash value corresponding to the JS file;
[0043] The hash value and the JS file are obfuscated by an XOR operation to obtain the obfuscated JS file;
[0044] The obfuscated JS file is encrypted using a strong encryption algorithm to generate an encrypted JS file.
[0045] Optionally, the system further includes an encryption code table generation module, which is used to:
[0046] After starting the background Java server to receive the image data, an initial dynamic encryption code table is generated using a random algorithm;
[0047] Dividing the values in the initial dynamic encryption code table into two groups;
[0048] The values in the two groups are exchanged correspondingly to obtain the final dynamic encryption code table.
[0049] Optionally, the JS file includes logic for locating image data, logic for setting task parameters, task parameters, and the name of the image upload program driven by the ActiveX control.
[0050] Optionally, the data uploading module is specifically used to:
[0051] Using the background Java program to call the command line script host program to execute the JS file;
[0052] By executing the JS file, the image upload program driven by the ActiveX control is automatically triggered;
[0053] Using the JS file to call the API interface provided by the image upload program, the task parameters in the JS file are passed to the image upload program;
[0054] Using the image upload program to upload the encrypted image data and the digital signature to a target storage location according to the task parameters, the digital signature is used to verify whether the encrypted image data has been tampered with during the uploading process;
[0055] The task parameters include target storage location, image upload path and authentication information.
[0056] Optionally, the system further comprises a program construction module, for:
[0057] Develop an initial background Java program based on an open source framework to receive uploaded data;
[0058] Based on the processing requirements of the image data, the image processing logic, storage logic and automatic scheduling logic are configured in the initial background Java program to obtain the final background Java program.
[0059] In another aspect, the present application further provides an electronic device, comprising: at least one processor and a memory; the memory and the processor are connected via a bus;
[0060] The memory is used to store one or more programs;
[0061] When the one or more programs are executed by the at least one processor, the above-mentioned method for automatically uploading images by skipping the IE browser is implemented.
[0062] On the other hand, the present application further provides a computer-readable storage medium having an execution program stored thereon, and when the execution program is executed, the above-mentioned method for automatically uploading images by skipping the IE browser is implemented.
[0063] Compared with the closest prior art, the present invention has the following beneficial effects:
[0064] The present invention provides a method and system for automatically uploading images by skipping the IE browser, comprising: using a background Java program of a security system server to receive order information from a client, generating a JS file of image data in the order information based on the business requirements of the order information; encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data; using the background Java program to automatically trigger an image upload program driven by an ActiveX control by executing the JS file, and uploading the encrypted image data and the digital signature to a target storage location. The present invention executes the JS file of the image data by the background Java program, directly calls a third-party ActiveX control for image transmission, skips the IE browser where the ActiveX control is located, and uses an upload tool to automatically find the image file for upload, thereby improving the automation of image uploading and reducing manual operations; by dynamically encrypting the image data and then transmitting it, and using the digital signature to verify the transmission result, the security and accuracy of data transmission are ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A schematic diagram of a flow chart of an automatic image uploading method skipping IE browser provided by the present invention;
[0066] Figure 2 A structural schematic diagram of an automatic image uploading system that skips IE browser provided by the present invention;
[0067] Figure 3 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION
[0068] The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.
[0069] Example 1
[0070] The present invention provides a method for automatically uploading images without using IE browser. Figure 1 As shown, including:
[0071] S1. Using the background Java program of the insurance company system server to receive the order information of the client, and generating a JS file of the image data in the order information based on the business requirements of the order information;
[0072] S2. Encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data;
[0073] S3. Utilizing the background Java program to execute the JS file, the image upload program driven by the ActiveX control is automatically triggered to upload the encrypted image data and the digital signature to a target storage location.
[0074] Before using the background Java program to receive the client's order information in step S1, the background Java program needs to be pre-built in the following manner:
[0075] Develop an initial background Java program for receiving uploaded data based on an open source framework (such as Spring Boot, an open source framework for the development and configuration of Java applications based on the Spring framework). Specifically, use Spring Boot to build a RESTful (Representational State Transfer-ful, a software architecture style) service to process image data upload requests; create a RESTful API (RESTful application programming interface) interface based on the selected framework to receive HTTP (HyperText Transfer Protocol) requests from the client, where the API (Application Programming Interface) should be able to process POST (a request to send data) requests and support multi-part form data to facilitate the upload of image data.
[0076] Based on the processing requirements of the image data, the image processing logic, storage logic and automatic scheduling logic are configured in the initial background Java program to obtain the final background Java program.
[0077] Among them, the user's order information has been submitted to the insurance company system from the mobile phone. The above-mentioned image upload refers to uploading the image data related to the order (such as photos of the accident scene, photos of the vehicle damage, etc.) to a specific storage location or processing platform of the insurance company system. The background Java program constructed in the present invention is used to automatically trigger the subsequent image data upload task immediately after uploading the user information to the insurance company system using the mobile phone. This means that the user does not need to perform additional operations to start the upload process; everything is done automatically in the background.
[0078] In step S1, S1-1, using the background Java program of the insurance system server, receive the order information of the client, the order information includes: business order number, image data, image upload path, file name, image attributes, etc.
[0079] The image data may be in a common image format such as JPG, PNG, or BMP.
[0080] S1-2. In order to automate and customize the image upload process, the Java background program generates a JS file (JavaScript file, a programming language for network applications) of the image data in the order information based on the business requirements of the order information, which is used for image data upload control.
[0081] Among them, the JS file includes the logic of locating image data, the logic of setting task parameters, task parameters and the name of the image upload program driven by the ActiveX control, as well as the insurance company's server address, image upload path, insurance company's business order number, etc., to ensure that the image data can be safely and accurately uploaded to the designated target storage location or target processing location.
[0082] The generated JS file contains the necessary information for uploading image data and supports automated calls.
[0083] S1-3, in order to ensure the security of the file, after generating the JS file of the image data in the order information based on the business requirements of the order information, the JS file is also encrypted. Specifically:
[0084] Process the JS file using a hash algorithm to generate a hash value corresponding to the JS file;
[0085] The hash value and the JS file are obfuscated by an XOR operation to obtain the obfuscated JS file;
[0086] The obfuscated JS file is encrypted using a strong encryption algorithm to generate an encrypted JS file.
[0087] The generated JS file is stored in the secure database of the background Java server to avoid leakage of the upload logic of the image data.
[0088] Among them, the strong encryption algorithm of this embodiment uses the AES-256 algorithm (Advanced Encryption Standard, one of the advanced encryption standards, using a 256-bit key length for data encryption), in which the encryption key is generated by the key derivation function KDF (KeyDerivation Function). As long as the master key and KDF parameters are obtained, the correct decryption key can be generated to decrypt the strong encryption algorithm AES-256. Although the hash itself is irreversible, in hash obfuscation, the hash value is used as one of the inputs of the XOR operation. Due to the characteristics of the XOR operation, as long as the hash value is known, the original JS file content can be restored.
[0089] In step S2, since the image data involves user security, to ensure the security during the transmission of the image data, the image data must be transmitted in an encrypted manner. That is, encrypt the image data based on a dynamic encryption code table to obtain encrypted image data, including:
[0090] S2-1. Use the background Java program to convert the image data into binary image data.
[0091] S2-2. Group and pad the binary image data to obtain preprocessed binary image data, and convert the binary image data into decimal image data. Specifically:
[0092] Take every three bytes of the binary image data as a group, each byte occupies 8 bits, and a total of 24-bit binary data is formed.
[0093] Perform grouping processing on the 24-bit binary data, with each group being 6 bits, and a total of 4 groups are formed.
[0094] Fill two 0s in front of each group of data to make each group of 6 bits become 8 bits, and a total of 32-bit (4-byte) data is formed. Example: Suppose the original data is: 101011 001100 111000 010101 (each group is 6 bits); after filling 0s: 0010101100001100 00111000 00010101.
[0095] Convert each group of the above 8-bit binary data filled with 0s into a decimal value number.
[0096] S2-3. Based on a preset dynamic encryption code table, obtain the encrypted character value of the decimal image data; form the encrypted image data based on the encrypted character value of the decimal image data. Specifically:
[0097] Use a dynamically generated 64-bit encryption code table to find the corresponding encrypted character value according to the converted decimal number to obtain the encrypted character value of the decimal image data; form the encrypted image data based on the encrypted character value of the decimal image data.
[0098] The above processes of encrypting and decrypting the image data rely on the dynamic encryption code table. To enhance data security, the dynamic encryption code table is updated each time the service is started. That is, before encrypting the image data based on the dynamic encryption code table, it includes:
[0099] After starting the background Java server to receive the image data, use a random algorithm to generate an initial dynamic encryption code table. Specifically: The total length of the code table is 64 bits. Therefore, use a random algorithm to generate a 64-bit code table, that is, randomly generate n (1 < n ≤ 64, n must be an even number) random numbers within 64.
[0100] Divide the values in the initial dynamic encryption code table into two groups (n / 2);
[0101] The values in the two groups are exchanged correspondingly to obtain the final 64-bit dynamic encryption code table.
[0102] If the values are not exchanged, the elements in the code table may maintain a certain pattern or regularity (for example, the order relationship within the first group and the second group). The exchange operation can effectively prevent this pattern and make the code table more random and unpredictable. The essence of the exchange is to change the position relationship of the elements, which increases the randomness and complexity of the dynamic encryption code table.
[0103] The definition of the dynamic encryption code table belongs to the metadata of the encrypted data and needs to be stored in the security database of the background Java program. To ensure security, the dynamic encryption code table data is encrypted using the des algorithm (Data Encryption Standard, a symmetric key algorithm). The key of the des encryption algorithm is not open to the public. In this way, the image data is encrypted and stored, and when it is transmitted, only the background Java program can decrypt it.
[0104] When encrypting image data, the key is called to encrypt the generated dynamic encryption code table and store it in a secure database; when the background Java program decrypts, the key is used to perform decryption operations and restore the dynamic encryption code table for encryption and decryption of image data. The dynamic code table encryption and decryption method is adopted, and the code table is dynamically updated each time the service is started, which increases the security and anti-cracking capabilities of data encryption and ensures the long-term security and reliability of the system.
[0105] S2-4. The encrypted image data is stored as a text file for image data retrieval and classification management.
[0106] The background Java program stores the encrypted image data as a text file (which stores the code table data after binary conversion). The naming rules of the text file include date information.
[0107] Optionally, the file naming rule is: date + business order number + unique identifier;
[0108] During the storage process, the text files of the image data are allocated and stored in designated folders by date, which facilitates the retrieval and classification management of the image data.
[0109] In step S3, the background Java program is used to execute the JS file to automatically trigger the image upload program driven by the ActiveX control, and upload the encrypted image data and the digital signature to the target storage location. Specifically:
[0110] S3-1, using the background Java program to call the command line script host program to execute the JS file, including:
[0111] Decrypt the encrypted JS file in a secure environment to obtain the original JS file;
[0112] Call the command line script host program cscript.exe to execute the original JS file.
[0113] S3-2. By executing the JS file, the image upload program driven by the ActiveX control is automatically triggered.
[0114] By executing the JS file, based on the name of the image upload program driven by the ActiveX control in the JS file, the exe program (ie, the image upload program, such as SunAPP) driven by the ActiveX control is automatically triggered.
[0115] ActiveX controls can provide access permissions. Due to browser security restrictions, background Java programs cannot bypass the browser to directly perform certain operations. ActiveX controls can bypass restrictions and directly drive the image upload program to upload images if security conditions are met.
[0116] S3-3, using the JS file to call the API interface provided by the image upload program, and passing the task parameters in the JS file to the image upload program. The task parameters include the target storage location, the image upload path and the authentication information.
[0117] S3-4. Use the image upload program to upload the encrypted image data and the digital signature to the target storage location according to the task parameters. The digital signature is used to verify whether the encrypted image data has been tampered with during the upload process, and use the image upload program to return the upload result to the background Java program.
[0118] The background Java program records the upload log and updates the order status; if the upload fails, the failure log is recorded and a retry mechanism is implemented.
[0119] As a part of IE browser (Internet Explorer), ActiveX control is an important tool for image uploading. However, due to the backward technology of IE browser, the performance and stability of ActiveX control are greatly limited, resulting in slow upload speed and easy errors. In addition, when ActiveX control is running in IE browser environment, it is vulnerable to malicious code attacks, affecting the security of image transmission. In the present invention, the background Java program bypasses the IE browser and directly calls the third-party ActiveX control, omitting the unstable factors introduced by the browser as the middle layer, improving the efficiency and stability of image uploading, reducing the risk of malicious code attacks, and ensuring the security of the system and transmitted data. In addition, the background program can realize the automation and batching of image uploading through the logical control process, reducing human intervention and improving work efficiency.
[0120] The present invention discloses a method for automatically uploading images by skipping the IE browser and using an ActiveX control, aiming to solve the problems of manual intervention and data security risks in image uploading in the existing system. The method receives orders and image data through a background Java program, skips the IE browser, and directly calls the ActiveX control to realize automatic image uploading. The image data is first converted into binary and encrypted and transmitted using a specific encryption algorithm to ensure data security during transmission. The confidentiality of data is enhanced by a dynamically generated encryption code table, image files are stored by date classification, and an encrypted JS (JavaScript) file is generated to control the upload process. The image upload program automatically finds the specified image file and completes the upload according to the task requirements; the automation degree of image uploading is improved, manual operation is reduced, and the problems of frequent manual operation, image mismatch, upload error, etc. in the prior art are solved, and the security of data transmission is ensured by encryption technology and digital signature verification.
[0121] Example 2
[0122] Based on the same inventive concept, the present invention also provides an automatic image uploading system that skips IE browser, such as Figure 2 As shown, including:
[0123] The data receiving module receives the order information from the client by using the background Java program of the insurance system server, and generates a JS file of the image data in the order information based on the business requirements of the order information;
[0124] A data processing module, encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data;
[0125] The data upload module utilizes the background Java program to execute the JS file to automatically trigger the image upload program driven by the ActiveX control, and uploads the encrypted image data and the digital signature to the target storage location.
[0126] In a possible implementation, the data processing module is specifically used to:
[0127] Using the background Java program to convert the image data into binary image data;
[0128] Grouping and filling the binary image data to obtain preprocessed binary image data, and converting the binary image data into decimal image data;
[0129] Based on a preset dynamic encryption code table, obtaining an encrypted character value of the decimal image data;
[0130] The encrypted image data is constructed based on the encrypted character value of the decimal image data.
[0131] In a possible implementation, the system further includes a JS file encryption module, which is used to:
[0132] Process the JS file using a hash algorithm to generate a hash value corresponding to the JS file;
[0133] The hash value and the JS file are obfuscated by an XOR operation to obtain the obfuscated JS file;
[0134] The obfuscated JS file is encrypted using a strong encryption algorithm to generate an encrypted JS file.
[0135] In a possible implementation, the system further includes an encryption code table generation module, which is used to:
[0136] After starting the background Java server to receive the image data, an initial dynamic encryption code table is generated using a random algorithm;
[0137] Dividing the values in the initial dynamic encryption code table into two groups;
[0138] The values in the two groups are exchanged correspondingly to obtain the final dynamic encryption code table.
[0139] In a possible implementation, the JS file includes logic for locating image data, logic for setting task parameters, task parameters, and the name of the image upload program driven by the ActiveX control.
[0140] In a possible implementation, the data uploading module is specifically used to:
[0141] Using the background Java program to call the command line script host program to execute the JS file;
[0142] By executing the JS file, the image upload program driven by the ActiveX control is automatically triggered;
[0143] Using the JS file to call the API interface provided by the image upload program, the task parameters in the JS file are passed to the image upload program;
[0144] Using the image upload program to upload the encrypted image data and the digital signature to a target storage location according to the task parameters, the digital signature is used to verify whether the encrypted image data has been tampered with during the uploading process;
[0145] The task parameters include target storage location, image upload path and authentication information.
[0146] In a possible implementation, the system further includes a program construction module, which is used to:
[0147] Develop an initial background Java program based on an open source framework to receive uploaded data;
[0148] Based on the processing requirements of the image data, the image processing logic, storage logic and automatic scheduling logic are configured in the initial background Java program to obtain the final background Java program.
[0149] Example 3
[0150] like Figure 3 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.
[0151] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a method for automatically uploading images by skipping the IE browser in the above-mentioned embodiment.
[0152] Example 4
[0153] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in the electronic device for storing programs and data. It can be understood that the storage medium here can include both the built-in storage medium in the electronic device and the extended storage medium supported by the electronic device. The storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more execution programs (including program codes). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a method for automatically uploading images by skipping the IE browser in the above embodiment.
[0154] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0155] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0156] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0157] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit its protection scope. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that after reading the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the protection scope of the claims to be approved.
Claims
1. A method for automatically uploading images without using IE browser, characterized in that: include: Utilize the background Java program of the insurance company system server to receive the order information of the client, and generate the JS file of the image data in the order information based on the business requirements of the order information; Encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data; The background Java program is utilized to execute the JS file to automatically trigger the image upload program driven by the ActiveX control, and upload the encrypted image data and the digital signature to the target storage location.
2. The method according to claim 1, characterized in that The step of encrypting the image data based on a dynamic encryption code table to obtain encrypted image data includes: Using the background Java program to convert the image data into binary image data; Grouping and filling the binary image data to obtain preprocessed binary image data, and converting the binary image data into decimal image data; Based on a preset dynamic encryption code table, obtaining an encrypted character value of the decimal image data; The encrypted image data is constructed based on the encrypted character value of the decimal image data.
3. The method according to claim 1, characterized in that After generating the JS file of the image data in the order information based on the business requirements of the order information, the method further includes: Process the JS file using a hash algorithm to generate a hash value corresponding to the JS file; The hash value and the JS file are obfuscated by an XOR operation to obtain the obfuscated JS file; The obfuscated JS file is encrypted using a strong encryption algorithm to generate an encrypted JS file.
4. The method according to claim 1, characterized in that Before encrypting the image data based on the dynamic encryption code table to obtain encrypted image data, the method further includes: After starting the background Java server to receive the image data, an initial dynamic encryption code table is generated using a random algorithm; Dividing the values in the initial dynamic encryption code table into two groups; The values in the two groups are exchanged correspondingly to obtain the final dynamic encryption code table.
5. The method according to claim 1, characterized in that The JS file includes the logic of locating image data, the logic of setting task parameters, task parameters and the name of the image upload program driven by the ActiveX control.
6. The method according to claim 5, characterized in that The method of utilizing the background Java program to execute the JS file to automatically trigger the image upload program driven by the ActiveX control to upload the encrypted image data and the digital signature to the target storage location includes: Using the background Java program to call the command line script host program to execute the JS file; By executing the JS file, the image upload program driven by the ActiveX control is automatically triggered; Using the JS file to call the API interface provided by the image upload program, the task parameters in the JS file are passed to the image upload program; Using the image upload program to upload the encrypted image data and the digital signature to a target storage location according to the task parameters, the digital signature is used to verify whether the encrypted image data has been tampered with during the uploading process; The task parameters include target storage location, image upload path and authentication information.
7. The method according to claim 1, characterized in that The background Java program is constructed as follows: Develop an initial background Java program based on an open source framework to receive uploaded data; Based on the processing requirements of the image data, the image processing logic, storage logic and automatic scheduling logic are configured in the initial background Java program to obtain the final background Java program.
8. An automatic image uploading system that skips IE browser, characterized in that: include: The data receiving module receives the order information from the client by using the background Java program of the insurance system server, and generates a JS file of the image data in the order information based on the business requirements of the order information; A data processing module, encrypting the image data based on a dynamic encryption code table to obtain encrypted image data, and generating a digital signature for the encrypted image data; The data upload module utilizes the background Java program to execute the JS file to automatically trigger the image upload program driven by the ActiveX control, and uploads the encrypted image data and the digital signature to the target storage location.
9. The system according to claim 8, characterized in that The data processing module is specifically used for: Using the background Java program to convert the image data into binary image data; Grouping and filling the binary image data to obtain preprocessed binary image data, and converting the binary image data into decimal image data; Based on a preset dynamic encryption code table, obtaining an encrypted character value of the decimal image data; The encrypted image data is constructed based on the encrypted character value of the decimal image data.
10. The system according to claim 9, characterized in that The system also includes a JS file encryption module, which is used to: Process the JS file using a hash algorithm to generate a hash value corresponding to the JS file; The hash value and the JS file are obfuscated by an XOR operation to obtain the obfuscated JS file; The obfuscated JS file is encrypted using a strong encryption algorithm to generate an encrypted JS file.
Citation Information
Patent Citations
File uploading method and device
CN106878366A
Picture uploading method and terminal
CN107479783A