Data transmission method and device and computer readable medium

By combining Http and FTP protocols in data transmission, the storage address of unstructured data is parsed and the data is obtained from third parties through the FTP protocol, the timeliness and reliability of data transmission in the existing technology is solved, and the data is realized. Efficient transmission of structured and unstructured data.

CN119402481AActive Publication Date: 2025-02-07NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411521180.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-07
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

The prior art is prone to data loss and low transmission efficiency when transmitting unstructured data. When structured data is transmitted through the FTP protocol, the data receiving end has too heavy load processing, resulting in low timeliness.

Method used

Receive structured data through the Http interface, obtain the storage address of the unstructured data after parsing and processing, obtain the unstructured data from a third party through the FTP interface, and adopt the retransmission mechanism and result notification method during the data transmission process to ensure the data Reliable transmission.

Benefits of technology

It improves the reliability and efficiency of unstructured data transmission, solves the timeliness and reliability problems of structured data and unstructured data transmission, and realizes efficient data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402481A_ABST
    Figure CN119402481A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device and a computer readable medium, and belongs to the technical field of communication. The method comprises a first application and a second application. The method is applied to the first application. One specific implementation mode comprises the following steps of: firstly, receiving structured data sent by a second application through an Http (Hyper Text Transport Protocol) interface; secondly, analyzing the structured data to obtain an analyzed file; then, obtaining a storage address of the unstructured data from the analysis file; and finally, acquiring the unstructured data from a third party corresponding to the storage address through the FTP interface. According to the embodiment of the invention, the structured data can be quickly acquired based on the real-time performance of Http transmission, and the unstructured data is completely acquired from the third party corresponding to the unstructured data storage address through FTP transmission after the structured data is analyzed, so that the reliability of unstructured data transmission is improved; therefore, the structured data and the unstructured data can be efficiently transmitted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and more particularly to a data transmission method, device and computer-readable medium. Background Art

[0002] Data transmission is the communication process of transferring data from one place to another. Data types include structured data and unstructured data. Structured data is used to indicate data managed in the form of relational databases, which is usually small-capacity data; unstructured data is used to indicate data with irregular or incomplete data structure, no predefined data model, and data that is not convenient to be represented by a two-dimensional database logical table. It is usually large-capacity data, such as videos, PDF files, or various forms of pictures. However, in actual applications, the data transmitted is not necessarily a single type of data, and many types of data are often transmitted together.

[0003] In the prior art, there are protocols for data transmission such as Http protocol and FTP protocol. Using Http protocol for data transmission has the following advantages: first, Http protocol is an application layer protocol based on TCP protocol, so it can achieve reliable transmission; second, Http protocol is a request-response protocol, the client sends a request and the server returns a response, thus improving the timeliness of data transmission.

[0004] The working principle of the FTP protocol is that the FTP client connects to the FTP server and provides a username and password for authentication. After the authentication is passed, the client can browse files on the server and perform some interactive operations; thereby improving the security of data transmission.

[0005] In the process of implementing the technical solution in the embodiment of the present application, the inventor of the present application found that the above technology has at least the following technical problems: 1. For unstructured data, if the Http protocol is used for transmission, data transmission loss may occur. This is mainly due to the large capacity of unstructured data, which causes a large amount of online resources to be occupied during the data transmission process, resulting in data transmission jams, and then causing part of the transmitted data to be lost; in addition, data transmission jams will also cause the problem of low data transmission efficiency. 2. For structured data, if the FTP protocol is used for transmission, there may be problems of low transmission efficiency and high data load processing at the data receiving end; this is mainly because the FTP protocol does not make any records of the transmitted data, and when the receiving end receives the structured data, it needs to analyze and process the status of the structured data, which complicates the data processing process at the data receiving end, thereby reducing the timeliness of data transmission. Summary of the invention

[0006] In view of the above problems existing in the prior art, an embodiment of the present invention provides a data transmission method, device and computer-readable medium; the method can efficiently and reliably transmit structured data and unstructured data in the data transmission process.

[0007] According to a first aspect of an embodiment of the present invention, a data transmission method is provided, the method comprising: a first application and a second application; the method is applied to the first application; structured data sent by the second application is received through an Http interface; the structured data is parsed to obtain a parsed file; a storage address of unstructured data is obtained from the parsed file; and unstructured data is obtained from a third party corresponding to the storage address through an FTP interface.

[0008] Optionally, the method further includes: monitoring the acquisition status of the unstructured data; if the monitoring result indicates that the acquisition status is acquired, storing the acquired unstructured data in a local database; if the monitoring result indicates that the acquisition status is not acquired, re-executing the acquisition operation at a preset time; and counting the number of acquisition operations, until the number reaches a preset threshold and the acquisition operation is not performed, generating acquisition failure information, and sending the acquisition failure information to an administrator.

[0009] Optionally, the method also includes: performing a local storage operation on the parsed file; if the result of the local storage operation indicates that the parsed file is stored in the local database, storing the structured data in a backup directory; if the result of the local storage operation indicates that the parsed file is not stored in the local database, re-performing a local storage operation on the parsed file; and counting the number of local storage operations; and if the local storage operation is not performed until the number reaches a preset threshold, sending storage failure information to an administrator.

[0010] Optionally, the method also includes: performing a feedback operation to the second application; the feedback operation includes feedback on successful receipt of unstructured data and / or feedback on successful receipt of structured data; if the feedback operation result indicates no feedback, re-performing the feedback operation at a preset time; and counting the number of feedback operations; if the feedback operation is not performed until the number reaches a preset threshold, sending information on feedback failure to the administrator.

[0011] Optionally, before obtaining the unstructured data from the third party corresponding to the storage address through the FTP interface, it also includes: sending user identity information to the third party corresponding to the storage address so that the third party can verify the user identity information of the first application; if the verification is successful, sending an unstructured data request to the third party through the FTP interface.

[0012] Optionally, the structured data is transmitted in XML format.

[0013] According to the second aspect of an embodiment of the present invention, a system for data transmission is also provided, the system comprising: a first application and a second application; the second application sends structured data to the first application via an Http interface; the first application parses the structured data and obtains the storage address of unstructured data from the obtained parsed file; the first application obtains unstructured data from a third party corresponding to the storage address via an FTP interface; the first application feeds back a feedback result of successfully receiving the unstructured data to the second application.

[0014] According to the third aspect of an embodiment of the present invention, a data transmission device is also provided, which includes: a first application and a second application; the device is applied to the first application; a receiving module, which is used to receive structured data sent by a second node through an Http interface; a parsing module, which is used to parse the structured data to obtain a parsed file; a first acquisition module, which is used to obtain a storage address of unstructured data from the parsed file; and a second acquisition module, which is used to obtain unstructured data from a third party corresponding to the storage address through an FTP interface.

[0015] According to a fourth aspect of an embodiment of the present invention, an electronic device is also provided, which includes: a processor; a memory for storing instructions executable by the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in the first aspect.

[0016] According to a fifth aspect of an embodiment of the present invention, there is also provided a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.

[0017] The present invention provides a data transmission method, device and computer-readable medium, the method comprising a first application and a second application; the method is applied to the first application; first, structured data sent by the second application is received through an Http interface; second, the structured data is parsed to obtain a parsed file; then, the storage address of unstructured data is obtained from the parsed file; finally, the unstructured data is obtained from a third party corresponding to the storage address through an FTP interface. This embodiment can quickly obtain structured data based on the real-time nature of Http transmission, and completely obtain the unstructured data from the third party corresponding to the unstructured data storage address through FTP transmission after parsing the structured data, thereby improving the reliability of unstructured data transmission; thereby, structured data and unstructured data can be efficiently transmitted. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Hereinafter, some specific embodiments of the present invention will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:

[0019] Figure 1 A schematic diagram of a data transmission method according to an embodiment of the present invention;

[0020] Figure 2 An interactive schematic diagram of a data transmission method provided by an embodiment of the present invention;

[0021] Figure 3 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0023] Structured data can be transmitted through the HTTP protocol because of its small data capacity, fast transmission speed and good time limit; unstructured data can be transmitted through the FTP protocol

[0024] During data transmission, multiple types of data are usually transmitted together; in order to enable efficient data transmission; the inventor of the present application proposed to embed unstructured data in structured data by means of storage addresses, and then transmit the structured data from the second application to the first application based on the Http transmission method; thereafter, the first application parses the structured data and obtains the storage address corresponding to the unstructured data from the parsed result, and finally the first application obtains the structured data from the third party corresponding to the storage address; thereby, not only the real-time transmission of structured data is realized, but also the reliability of unstructured data transmission is improved, and the problem of poor timeliness or reliability caused by the simultaneous transmission of structured data and unstructured data using the same transmission protocol in the prior art is solved, thereby improving the efficiency of structured data and unstructured data transmission.

[0025] like Figure 1 FIG. 1 is a flow chart of a data transmission method provided by an embodiment of the present invention.

[0026] A data transmission method includes a first application and a second application; the method is applied to the first application and includes at least the following steps:

[0027] S101, receiving structured data sent by a second application through an Http interface;

[0028] S102, parsing the structured data to obtain a parsed file;

[0029] S103, obtaining the storage address of the unstructured data from the parsed file;

[0030] S104, obtaining unstructured data from a third party corresponding to the storage address through an FTP interface.

[0031] Here, the first application and the second application may correspond to different servers, or may be different applications integrated in the same server. The first application is communicated with the second application and the third party respectively.

[0032] In S101, the storage address of the unstructured data is embedded in the structured data. In other words, the structured data is formed by the first structured data representing a specific meaning and the second structured data corresponding to the storage address representing the unstructured data.

[0033] In order to effectively embed unstructured data into structured data, the structured data is transmitted in XML format, so that the storage address of unstructured data can be defined in the XML file, which is beneficial to the later parsing of structured data and improves the efficiency of data processing by the first application.

[0034] The second application sends structured data in XML format to the first application through the Http interface; the first application receives the structured data sent by the second application through the Http interface.

[0035] In S102 , before parsing the structured data, the storage address of the unstructured data is invisible to the first application or the second application.

[0036] The first application parses the structured data based on preset rules or a trained model and outputs a parsed file.

[0037] In S103, semantic recognition is performed on the parsed file to obtain the storage address of the unstructured data; or the parsed file is segmented based on preset fields to output the storage address of the unstructured data.

[0038] In S104, the first application sends an unstructured data request to a third party corresponding to the storage address, and the third party sends unstructured data corresponding to the unstructured data request to the first application. The third party may be a cloud platform or a file storage server.

[0039] This embodiment can quickly acquire structured data based on the real-time nature of Http transmission, and after parsing the structured data, completely acquire unstructured data from a third party corresponding to the unstructured data storage address through FTP transmission, thereby improving the reliability of unstructured data transmission; thereby, structured data and unstructured data can be efficiently transmitted.

[0040] In order to avoid uncontrollable factors in the data transmission process, this embodiment adopts a retransmission mechanism combined with a result notification method to improve the reliability of unstructured data transmission. In a preferred implementation of this embodiment, the method also includes: monitoring the acquisition status of the unstructured data; if the monitoring result indicates that the acquisition status is acquired, storing the acquired unstructured data in a local database; if the monitoring result indicates that the acquisition status is not acquired, re-executing the acquisition operation according to a preset time; and counting the number of acquisition operations until the number reaches a preset threshold and the acquisition operation is not performed, generating acquisition failure information, and sending the acquisition failure information to the administrator.

[0041] Here, no matter whether the first application obtains the unstructured data through administrator intervention or based on the retransmission mechanism, the first application marks the acquisition status as acquired. When the first application detects the acquired status, the acquired unstructured data is stored in the local database.

[0042] In order to avoid the inability to save data due to database failure, this embodiment adopts a retransmission mechanism combined with a result notification method, which can ensure the effective storage of the parsed file, thereby improving the reliability of data transmission. In a preferred implementation of this embodiment, the method also includes: performing a local storage operation on the parsed file; if the result of the local storage operation indicates that the parsed file is stored in the local database, storing the structured data in a backup directory; if the result of the local storage operation indicates that the parsed file is not stored in the local database, re-performing a local storage operation on the parsed file; and counting the number of local storage operations; until the number reaches a preset threshold and the local storage operation is not performed, the storage failure information is sent to the administrator.

[0043] Here, no matter through administrator intervention or based on the retransmission mechanism, the first application performs a local storage operation on the parsed file; when the first application detects that the parsed file is stored in the local database, the structured data in XML format is stored in the backup directory.

[0044] In order to avoid uncontrollable factors that occur during data transmission, this embodiment adopts a retransmission mechanism combined with a result notification method to improve the reliability of unstructured data transmission. In a preferred implementation of this embodiment, the method also includes: performing a feedback operation on the second application; the feedback operation includes feedback on successful reception of unstructured data and / or feedback on successful reception of structured data; if the feedback operation result indicates that there is no feedback, re-performing the feedback operation at a preset time; and counting the number of feedback operations; if the feedback operation is not performed when the number reaches a preset threshold, the feedback failure information is sent to the administrator.

[0045] Here, no matter through administrator intervention or based on a retransmission mechanism, the first application receives the feedback result of the second application.

[0046] In order to improve the security of unstructured data transmission, in a preferred implementation manner of the present embodiment, before obtaining the unstructured data from the third party corresponding to the storage address through the FTP interface, it also includes: sending user identity information to the third party corresponding to the storage address so that the third party can verify the user identity information of the first application; if the verification is successful, sending an unstructured data request to the third party through the FTP interface.

[0047] For example: the first application sends user identity information to a third party corresponding to the storage address; the third party verifies the user identity information of the first application and sends the verification result to the first application; the first application sends an unstructured data request to the third party; the third party sends the unstructured data corresponding to the unstructured data request to the first application.

[0048] like Figure 2 FIG. 1 is an interactive schematic diagram of a data transmission method provided by an embodiment of the present invention.

[0049] A data transmission method, comprising: a first application and a second application;

[0050] S201, the second application sends structured data to the first application through the Http interface;

[0051] S202, the first application parses the structured data and obtains the storage address of the unstructured data from the obtained parsed file;

[0052] S203, the first application sends an unstructured data request to a third party corresponding to the storage address through an FTP interface;

[0053] S204, the first application receives unstructured data corresponding to the unstructured data request from a third party through an FTP interface;

[0054] S205: The first application feeds back a feedback result of successfully receiving the unstructured data to the second application through the Http interface.

[0055] The data transmission method provided in this embodiment will be described in detail below in conjunction with specific application scenarios.

[0056] The case information as structured data includes basic case information and the storage address of legal documents; the second application sends the case information in XML format to the first application; the first application parses the case information to obtain the basic case information and the storage address of the legal document; in order to obtain the legal document, the first application needs to obtain the PDF file corresponding to the legal document from the third party specified by the storage address; thereby, the transmission of structured data and unstructured data between the two applications is realized; so that the first application can obtain the basic case information and legal documents corresponding to the case information.

[0057] A data transmission method includes a first application and a second application; and includes at least the following steps:

[0058] S1, the second application sends structured data in XML format to the first application through the Http interface.

[0059] S2, the first application sends a feedback result of successfully receiving the structured data to the second application through the Http interface.

[0060] S3, the first application parses the structured data to obtain a parsed file.

[0061] S4, the first application performs a local storage operation on the parsed file; if the result of the local storage operation indicates that the parsed file is stored in the first area of ​​the local database, the structured data is stored in the local backup directory; if the result of the local storage operation indicates that the parsed file is not stored in the first area of ​​the local database, the local storage operation is re-executed on the parsed file; and the number of local storage operations is counted; if the local storage operation is not performed until the number reaches a preset threshold, the storage failure information is sent to the administrator so that the administrator can re-execute the local storage operation after repairing the fault.

[0062] S5, the first application obtains the storage address of the unstructured data from the parsed file; and sends the user identity information to the third party corresponding to the storage address so that the third party can verify the user identity information of the first application; if the verification is successful, the first application sends an unstructured data request to the third party corresponding to the storage address through the FTP interface.

[0063] S6, the first application obtains the unstructured data corresponding to the unstructured data request from the third party through the FTP interface; and monitors the acquisition status; if the monitoring result indicates that the acquisition status is acquired, the acquired unstructured data is stored in the second area of ​​the local database; if the monitoring result indicates that the acquisition status is not acquired, the acquisition operation is re-executed according to the preset time; and the number of acquisition operations is counted, until the number reaches a preset threshold and the acquisition operation is not performed, then an acquisition failure message is generated, and the acquisition failure message is sent to the administrator so that the administrator can re-execute the acquisition operation after repairing the fault.

[0064] S7, the first application feeds back a feedback result of successfully acquiring the unstructured data to the second application through the Http interface.

[0065] This embodiment combines the real-time nature of Http transmission and the reliability of FTP transmission to ensure the efficiency and security of data transmission to the greatest extent; and in view of the uncontrollable factors that may occur during the data transmission process and the storage process after file parsing, a retransmission mechanism is adopted to ensure the success rate of data transmission, thereby further improving the reliability of data transmission.

[0066] like Figure 3 FIG. 1 is a schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention.

[0067] A data transmission device, the device 300 includes: a first application and a second application; the device is applied to the first application; a receiving module 301, used to receive structured data sent by a second node through an Http interface; a parsing module 302, used to parse the structured data to obtain a parsed file; a first acquisition module 303, used to obtain a storage address of unstructured data from the parsed file; a second acquisition module 304, used to obtain unstructured data from a third party corresponding to the storage address through an FTP interface.

[0068] In a preferred implementation manner of this embodiment, the device also includes: a first monitoring module, used to monitor the acquisition status of the unstructured data; a first storage module, used to store the acquired unstructured data in a local database if the monitoring result indicates that the acquisition status is acquired; a first retransmission module, used to re-execute the acquisition operation at a preset time if the monitoring result indicates that the acquisition status is not acquired; and count the number of acquisition operations, and if the acquisition operation is not performed when the number reaches a preset threshold, generate acquisition failure information, and send the acquisition failure information to the administrator.

[0069] In a preferred implementation manner of this embodiment, the device also includes: a storage execution module, which is used to perform a local storage operation on the parsed file; a second storage module, which is used to store the structured data in a backup directory if the result of the local storage operation indicates that the parsed file is stored in the local database; a second retransmission module, which is used to re-execute a local storage operation on the parsed file if the result of the local storage operation indicates that the parsed file is not stored in the local database; and count the number of local storage operations; if the local storage operation is not performed until the number reaches a preset threshold, the storage failure information is sent to the administrator.

[0070] In a preferred implementation manner of this embodiment, the device also includes: a feedback execution module, which is used to perform a feedback operation on the second application; the feedback operation includes feedback on successful reception of unstructured data and / or feedback on successful reception of structured data; a third retransmission module, which is used to re-execute the feedback operation at a preset time if the feedback operation result indicates that no feedback has been given; and to count the number of feedback operations; if the feedback operation has not been performed until the number reaches a preset threshold, information about feedback failure is sent to the administrator.

[0071] In a preferred implementation manner of this embodiment, the device also includes: a first sending module, used to send user identity information to a third party corresponding to the storage address, so that the third party can verify the user identity information of the first application; a second sending module, used to send an unstructured data request to the third party through an FTP interface if the verification is successful.

[0072] In a preferred implementation of this embodiment, the structured data is transmitted in XML format.

[0073] The above device can execute a data transmission method provided by an embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing a data transmission method. For technical details not described in detail in this embodiment, please refer to a data transmission method provided by an embodiment of the present invention.

[0074] The present invention also provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement a data transmission method described in the present invention.

[0075] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0076] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0077] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to the following embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0078] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0079] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0080] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0081] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0082] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0083] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

[0084] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0085] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0086] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data transmission method, characterized in that: include: A first application and a second application; The method is applied to a first application; Receiving structured data sent by the second application through the Http interface; Parsing the structured data to obtain a parsed file; Obtaining a storage address of unstructured data from the parsed file; The unstructured data is obtained from a third party corresponding to the storage address through an FTP interface.

2. The method according to claim 1, characterized in that Also includes: Monitoring the acquisition status of the unstructured data; If the monitoring result indicates that the acquisition state is acquired, the acquired unstructured data is stored in a local database; If the monitoring result indicates that the acquisition status is not acquired, the acquisition operation is re-executed according to the preset time; and the number of acquisition operations is counted. If the acquisition operation is not performed when the number reaches the preset threshold, an acquisition failure message is generated and sent to the administrator.

3. The method according to claim 1, characterized in that Also includes: Performing a local storage operation on the parsed file; If the local storage operation result indicates that the parsed file is stored in the local database, storing the structured data in a backup directory; If the local storage operation result indicates that the parsed file is not stored in the local database, re-perform the local storage operation on the parsed file; and count the number of the local storage operations; If the local storage operation is not performed until the number of times reaches a preset threshold, a storage failure message is sent to the administrator.

4. The method according to claim 1, characterized in that: Also includes: Performing a feedback operation on the second application; the feedback operation includes feedback on successful receipt of unstructured data and / or feedback on successful receipt of structured data; If the feedback operation result indicates that no feedback has been given, re-performing the feedback operation at a preset time; and counting the number of the feedback operation; If the feedback operation is not performed until the number of times reaches a preset threshold, a feedback failure message is sent to the administrator.

5. The method according to claim 1, characterized in that Before obtaining the unstructured data from the third party corresponding to the storage address through the FTP interface, the method further includes: Sending the user identity information to a third party corresponding to the storage address so that the third party can verify the user identity information of the first application; If the verification is successful, an unstructured data request is sent to the third party via the FTP interface.

6. The method according to claim 1, characterized in that The structured data is transmitted in XML format.

7. A data transmission system, characterized in that: include: A first application and a second application; The second application sends structured data to the first application through an Http interface; The first application parses the structured data and obtains a storage address of the unstructured data from the obtained parsed file; The first application obtains unstructured data from a third party corresponding to the storage address through an FTP interface; The first application feeds back to the second application a feedback result of successfully receiving the unstructured data.

8. A data transmission device, characterized in that: include: A first application and a second application; The device is applied to a first application; A receiving module, used for receiving structured data sent by the second node through an Http interface; A parsing module, used to parse the structured data to obtain a parsed file; A first acquisition module, used to acquire the storage address of the unstructured data from the parsed file; The second acquisition module is used to acquire the unstructured data from a third party corresponding to the storage address through an FTP interface.

9. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1-6.

10. A computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data processing method, device and equipment and computer readable storage medium

    CN113986888A

  • Address information analysis method and device, equipment and medium

    CN114861658A

  • Synchronous storage method and system for unstructured data, terminal and storage medium

    CN117056562A

  • Data transmission method and host machine

    US20180352588A1

  • System And Method For Authenticating Digitally Signed Documents

    US20210281421A1