CN111835804A - Method, device and system for data transmission between internal network and external network - Google Patents

Method, device and system for data transmission between internal network and external network Download PDF

Info

Publication number
CN111835804A
CN111835804A CN201910316397.8A CN201910316397A CN111835804A CN 111835804 A CN111835804 A CN 111835804A CN 201910316397 A CN201910316397 A CN 201910316397A CN 111835804 A CN111835804 A CN 111835804A
Authority
CN
China
Prior art keywords
file
code
graphic
transmitted
graphic code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910316397.8A
Other languages
Chinese (zh)
Inventor
梁伟
张雅婷
周鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910316397.8A priority Critical patent/CN111835804A/en
Publication of CN111835804A publication Critical patent/CN111835804A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations

Abstract

The embodiment of the application discloses a method, a device and a system for data transmission between an internal network and an external network, wherein the system comprises the following steps: the system comprises a first client, a second client and a display screen, wherein the first client is used for operating in first terminal equipment in a first network environment, generating at least one graphic code according to a received file to be transmitted and displaying the graphic code in the associated display screen; the second client is used for operating in a second terminal device in a second network environment, receiving data in a code scanning mode of the graphic code through a code scanning device associated with the second terminal device, and performing file restoration on the received data according to file format information carried in the graphic code; the first terminal device and the second terminal device are located in the same physical space. Through the embodiment of the application, the data transmission between the internal network and the external network can be carried out more safely and conveniently.

Description

Method, device and system for data transmission between internal network and external network
Technical Field
The present application relates to the field of data transmission technologies between an intranet and an intranet, and in particular, to a method, an apparatus, and a system for data transmission between the intranet and the intranet.
Background
The commodity object information service system may include commodity objects related to a judicial auction performed by a department such as a court, in addition to commodity object information issued by a merchant, an individual seller, or a platform. For such merchandise objects, the source of the information is typically inside the court. For example, the court needs to provide information of a commodity object of a specific judicial auction to a commodity object information service system, and then the system can issue the information of the commodity object for a consumer user to browse, purchase and the like. In addition, when a consumer user in the system performs an operation such as purchasing a certain legal shot, the goods object information service system may also need to submit specific user information and the like to a court system, and the like.
However, because information in an intranet of a government department such as a court is often secret-related or internal information, in order to secure data in the intranet and the extranet of the court and prevent hackers from invading the intranet of the court, the intranet and the extranet of the court are completely isolated from physical data, a wireless network is not allowed to be used, and data transmission is not allowed to be performed by using any network equipment, so that the traditional internet technology cannot provide service for the court.
In the prior art, data communication between internal and external networks of government offices such as court needs to be carried out specially, and then data communication is carried out through a network gate. The network Gate (GAP) is called a safety isolation network gate, and is a network safety device which is connected by a link layer between networks and is cut off on a circuit by special hardware with various control functions and can exchange application data with proper safety between the networks. However, the single data communication realized by the gatekeeper method still needs physical network connection, and the process is complicated.
Therefore, how to transmit intranet and extranet data more safely and conveniently becomes a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application provides a method, a device and a system for data transmission between an internal network and an external network, which can transmit data of the internal network and the external network more safely and conveniently.
The application provides the following scheme:
a data transmission system between an internal network and an external network, comprising:
the system comprises a first client, a second client and a display screen, wherein the first client is used for operating in first terminal equipment in a first network environment, generating at least one graphic code according to a received file to be transmitted and displaying the graphic code in the associated display screen;
the second client is used for operating in a second terminal device in a second network environment, receiving data in a code scanning mode of the graphic code through a code scanning device associated with the second terminal device, and performing file restoration on the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
A method for data transmission between an internal network and an external network comprises the following steps:
determining a file to be transmitted in first terminal equipment in a first network environment;
generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
A method for data transmission between an internal network and an external network comprises the following steps:
scanning a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
A data transmission apparatus between an internal network and an external network, comprising:
a file to be transmitted determining unit, configured to determine a file to be transmitted in a first terminal device in a first network environment;
the graphic code generating unit is used for generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen, so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
A data transmission apparatus between an internal network and an external network, comprising:
the code scanning unit is used for scanning a code of a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to obtain information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
the decoding unit is used for decoding the graphic code to obtain corresponding file data and file format information;
the file restoration unit is used for restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
A method for data transmission between an internal network and an external network comprises the following steps:
determining a file to be transmitted in first terminal equipment in a first network environment;
and generating at least one graphic code according to the file to be transmitted, and displaying the graphic code in an associated display screen, wherein the graphic code carries at least part of file data and file format information of the file to be transmitted, so that second terminal equipment in a second network environment scans the graphic code to acquire the file data and the file format information and restore the file.
A method for data transmission between an internal network and an external network comprises the following steps:
scanning a graphic code displayed in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is at least one graphic code generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
and restoring the file data into the file to be transmitted according to the file format information.
According to the specific embodiments provided herein, the present application discloses the following technical effects:
through the embodiment of the application, if the file in the first terminal device in the first network environment needs to be transmitted to the second terminal device in the second network environment, the client program in the embodiment of the application only needs to be operated in the first terminal device and the second terminal device, correspondingly, the first client of the sender can convert the file to be transmitted into at least one graphic code, the second client of the receiver can obtain specific data in a mode of scanning and decoding the graphic code, and then the file can be restored according to information such as specific file formats. For example, if the file to be transmitted is a table file in xlsx format, the second client may restore the specific data to the table file in xlsx format, and so on. Therefore, by the mode, data transmission can be realized without physical connection between devices in different network environments or wired or wireless network connection, and the method is convenient and fast. In addition, as the transmission process does not involve hardware connection and wired or wireless network connection, the safety of the transmission process can be ensured.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a system provided by an embodiment of the present application;
FIG. 3 is a flow chart of a first method provided by an embodiment of the present application;
FIG. 4 is a flow chart of a second method provided by embodiments of the present application;
FIG. 5 is a schematic diagram of a first apparatus provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a second apparatus provided by an embodiment of the present application;
fig. 7 is a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived from the embodiments given herein by a person of ordinary skill in the art are intended to be within the scope of the present disclosure.
In the embodiment of the application, a corresponding solution is provided for the problem of data transmission between an internal network and an external network. In the embodiment of the present application, the intranet may specifically refer to a network environment isolated from the internet and unable to access the internet, for example, a local area network, which is usually implemented in a limited area range such as a government organization and isolated from the outside, and is therefore referred to as an "intranet"; "extranet" generally corresponds to "intranet" and broadly refers to various network environments that have access to the internet. In the scheme, a client program for data transmission can be provided, and the data transmission between different network environments is realized by taking the graphic code as a medium. The client program may specifically be a client installed on a PC side of a computer or the like, or may also exist in the form of a web, and the like. When data transmission is required, the client programs may be respectively run on devices of an intranet and an extranet, and for convenience of description, the client program running on a first terminal device of a sender is referred to as a first client, and the client running on a second terminal device of a receiver is referred to as a second client. Of course, the client functions are only divided from the perspective of different roles played in the same transmission process, and in practical applications, the same client program may have the functions of the first client and the second client at the same time, and may play different roles in different data transmission processes. That is, assuming that data transmission is required between a first terminal device in a first network environment (intranet or extranet) and a second terminal device in a second network environment (extranet or intranet), the client program may be run on the first terminal device and the second terminal device, respectively. Also, the second terminal device may be carried into the spatial environment of the first terminal device, e.g. in the same house, the two terminal devices may be placed face to face, etc. However, in the embodiment of the present application, there is no need to perform physical connection or network connection between two terminal devices. After the preparation work is done, the file to be transmitted stored in the first terminal device can be input to the first client, and the first client can process the file to be transmitted to generate one or more graphic codes. In this way, the second terminal device as the receiving party can receive the data by scanning the graphic code, and then the second client restores the received data to a file.
Therefore, the scheme provided by the embodiment of the application utilizes the characteristic that the graphic code can carry data and can realize data transmission in a code scanning mode, and provides a scheme for data transmission between an internal network and an external network. Through the scheme, when data transmission is required to be carried out between an internal network and an external network, devices such as a gateway and the like are not required to be used, physical connection or network connection is not required to be established between terminal devices between different network environments, and data transmission can be achieved. It should be noted that, in the embodiment of the present application, the data transmitted between the intranet and the extranet may be specially batched data passing through relevant departments, and the problem of data leakage in the intranet is not involved. For example, as shown in fig. 1, a department such as a court needs to issue a piece of information about a legal vehicle through a commodity object information service system, but the information about the vehicle is stored in an intranet system of the court, and in order to be able to transmit the information to the commodity object information service system, the information may be sent to the relevant department in advance for a special lot, and then data transmission from the intranet to the extranet is realized through the scheme of the embodiment of the present application. That is, the second terminal device of the external network may be carried into the court, for example, may be placed in the same room as the first terminal device of the internal network, and so on. The method comprises the steps that a first terminal device of an intranet converts a file to be transmitted into one or more graphic codes through a first installed client, a second terminal device of an extranet can receive data in a code scanning mode through the graphic codes, and then the graphic codes are restored into the file. Or, the consumer user in the commodity object information service system wants to purchase a legal vehicle, and due to its particularity, the court may need to acquire the information of the consumer user before the transaction is specifically achieved, and at this time, the information needs to be transferred to the system inside the court. For the situation, the special approval can be carried out on the specific relevant departments of the court, and then, the data transmission from the external network to the internal network is realized through the scheme provided by the embodiment of the application, and the like.
The following describes in detail a specific technical solution provided in an embodiment of the present application.
Example one
First, the first embodiment provides a data transmission system between an internal network and an external network, and referring to fig. 2, the system may specifically include:
the first client 201 is configured to operate in a first terminal device in a first network environment, generate at least one graphic code according to a received file to be transmitted, and display the graphic code in an associated display screen;
the second client 202 is configured to operate in a second terminal device in a second network environment, receive data in a manner that a code scanning device associated with the second terminal device scans a code of the graphic code, and perform file restoration on the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
The first network environment or the second network environment may be a network environment isolated from the internet, that is, the first network environment or the second network environment cannot be connected to the internet, and therefore, data transmission cannot be performed between the first terminal device and the second terminal device by using a network connection method.
As described above, if data transmission is required between a first terminal device in a first network environment and a second terminal device in a second network environment, the following preparation work may be performed first: the client programs passed by the embodiments of the present application are installed in the first terminal device and the second terminal device, or the web pages provided by the embodiments of the present application are opened by using a browser or the like, respectively. Of course, for a terminal device in an intranet environment such as a court of law, since the terminal device cannot be connected to a public network, the relevant functions of the client may not be obtained by means of a web page, and at this time, the terminal device may be implemented by installing a local client program. In addition, the second terminal device can be carried to the space environment where the first terminal device is located, so that a camera and other devices of the second terminal device can scan the display screen of the first terminal device.
After the preparation work is completed, specific data transmission can be performed, and at this time, information of the file to be transmitted can be provided to the first client by dragging the related file to be transmitted to an input box of the first client and the like. And then, the first client can process the file to be transmitted to generate at least one graphic code. The specific graphic code may include a bar code, a two-dimensional code, and the like. The two-dimensional code can carry a larger amount of information, so that the two-dimensional code is mainly used, and can be expressed by a graphic code with a higher dimensionality. In the two-dimensional code technology, the concept of '0' and '1' bit streams forming the internal logic basis of a computer is utilized in code compilation, a plurality of geometric shapes corresponding to binary systems are used for representing character numerical value information, and automatic identification and reading can be realized through image input equipment or photoelectric scanning equipment so as to realize automatic information processing. Therefore, when the first client processes the file to be transmitted, the file to be transmitted can be firstly converted into binary data, and then at least one two-dimensional code is generated according to the binary code. Then, the second client can receive data in a code scanning mode, wherein the data can carry information such as file types, and then the files can be restored according to the file format information.
The reason why a plurality of two-dimensional codes may be generated is that the information capacity of one two-dimensional code is limited, and if the information amount of a file to be transmitted converted into a binary code exceeds the maximum information amount that one two-dimensional code can accommodate, the binary code needs to be split and expressed by a plurality of two-dimensional codes. In this case, in the process of generating the graphic code, a sequence identifier, such as a number, may also be added to the graphic code. In this way, after the second client decodes the plurality of graphic codes respectively, the obtained decoding results can be spliced according to the sequence identifier, and the splicing results are restored to the target file according to the specific file format information. In addition, under the condition of generating the plurality of graphic codes, the first client may sequentially generate and display the plurality of graphic codes, and each graphic code stays in the display screen of the first terminal device for a preset time length. That is to say, after each graphic code is generated, the graphic code can be displayed in the display screen of the first terminal device and stays for a certain time length for the second terminal device to complete code scanning, and then, the next graphic code is automatically displayed.
Certainly, in the specific implementation, if the specific splitting is performed to have too many graphic codes, the transmission efficiency may be affected, and therefore, in this embodiment of the application, under the condition of expression by using the two-dimensional code, the two-dimensional code may also be implemented in a full-screen two-dimensional code manner, that is, the two-dimensional code occupies the entire screen of the display screen of the first terminal device, so as to improve the information capacity of the two-dimensional code to the maximum extent. During specific implementation, the first client may further obtain parameter information of a display screen associated with the first terminal device, and then generate the full-screen two-dimensional code according to the parameter information, where the parameter information of the display screen includes information of a size and a resolution of the display screen. Specifically, the first client may determine the maximum information amount that the same full-screen two-dimensional code can bear according to the parameter information, and if the information amount of the binary code corresponding to the file to be transmitted is greater than the maximum information amount, the binary code corresponding to the file to be transmitted is divided according to the maximum information amount to obtain multiple binary codes, and corresponding full-screen two-dimensional codes are generated for each binary code respectively.
That is to say, the information capacity of the full-screen two-dimensional code is related to the display screen parameters of the first terminal device, the larger the size of the display screen is, the higher the resolution ratio is, the larger the information capacity of the full-screen two-dimensional code is, and for the same file to be transmitted, the smaller the number of the full-screen two-dimensional codes required to be used is. For example, for a file to be transmitted, if a display screen with 1024 × 768 resolution is used, the file may need to be split into 10 full-screen two-dimensional codes to complete transmission, and if a display screen with 4K resolution is used, only one full-screen two-dimensional code may be needed, which may further improve efficiency.
Therefore, in the above manner, if a file in a first terminal device in a first network environment needs to be transmitted to a second terminal device in a second network environment, only the client program described in the embodiment of the present application needs to be run in the first terminal device and the second terminal device, accordingly, the first client of the sender can convert the file to be transmitted into at least one graphic code, the second client of the receiver can obtain specific data by scanning and decoding the graphic code, and then restore the file according to information such as a specific file format. For example, if the file to be transmitted is a table file in xlsx format, the second client may restore the specific data to the table file in xlsx format, and so on. Therefore, by the mode, data transmission can be realized without physical connection between devices in different network environments or wired or wireless network connection, and the method is convenient and fast. In addition, as the transmission process does not involve hardware connection and wired or wireless network connection, the safety of the transmission process can be ensured.
Example two
The second embodiment provides a data transmission method between the internal network and the external network from the perspective of the first client described in the first embodiment, that is, as a sender of a file, a specific file to be transmitted can be converted into one or more graphic codes, and the graphic codes are used to carry specific file data, so that a receiver can receive data in a code scanning manner and then restore the data to the file. Specifically, referring to fig. 3, the method may specifically include:
s301: determining a file to be transmitted in first terminal equipment in a first network environment;
for example, if the first network environment is an internal network environment of an organization unit such as a court, the specific file to be transmitted may be a file that is specially approved by a relevant department and is allowed to be transmitted to the second terminal device in the second network environment. In specific implementation, the first client may provide an operation option or a drag frame for receiving a file to be transmitted, and when a certain file needs to be transmitted, the file may be selected through the operation option or the drag frame.
S302: generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen, so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
In specific implementation, the graphic codes include two-dimensional codes, and specifically, when at least one graphic code is generated according to the file to be transmitted, the file to be transmitted can be converted into a binary code, and at least one two-dimensional code is generated according to the binary code.
Because the information capacity of the same two-dimensional code is limited and the information capacity is influenced by the size of the two-dimensional code, the two-dimensional code can comprise a full-screen two-dimensional code in order to reduce the number of the required two-dimensional codes; at this time, when at least one two-dimensional code is generated according to the binary code, parameter information of a display screen associated with the first terminal device may be obtained, where the parameter information of the display screen includes information of a size and a resolution of the display screen; and then, generating the full-screen two-dimensional code according to the parameter information.
Specifically, when a full-screen two-dimensional code is generated, the maximum information quantity which can be borne by the same full-screen two-dimensional code can be determined according to the parameter information; if the information quantity of the binary code corresponding to the file to be transmitted is larger than the maximum information quantity, the binary code corresponding to the file to be transmitted is divided according to the maximum information quantity to obtain multiple binary codes; and respectively generating corresponding full-screen two-dimensional codes for each binary code.
In addition, when the graphic codes are multiple, a sequence identifier can be added to the graphic codes, so that decoding results corresponding to the multiple graphic codes can be spliced according to the sequence identifier.
In order to facilitate the second terminal device to scan codes, the plurality of graphic codes can be sequentially displayed when the number of the graphic codes is multiple, and each graphic code stays in the display screen of the first terminal device for a preset time length.
EXAMPLE III
The third embodiment provides a data transmission method between the internal network and the external network from the perspective of the second client in the first embodiment, that is, for the receiver side, the data can be received by scanning the graphic code, and then the graphic code is restored to the file. Specifically, referring to fig. 4, the method may specifically include:
s401: scanning a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
s402: decoding the graphic code to obtain corresponding file data and file format information;
s403: restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
If the number of the graphic codes is multiple, the graphic codes can be scanned in sequence, and the decoding results of the graphic codes are spliced according to the sequence identification carried in the graphic codes so as to restore the file.
For the parts that are not described in detail in the second embodiment and the third embodiment, reference may be made to the description in the first embodiment, and details are not repeated here.
Corresponding to the second embodiment, an embodiment of the present application further provides a device for transmitting data between an internal network and an external network, and referring to fig. 5, the device may include:
a file to be transmitted determining unit 501, configured to determine a file to be transmitted in a first terminal device in a first network environment;
the graphic code generating unit 502 is configured to generate at least one graphic code according to the file to be transmitted, and display the graphic code on an associated display screen, so that a second terminal device in a second network environment receives data by scanning the graphic code, and performs file restoration on the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
The graphic code comprises a two-dimensional code;
the graphic code generation unit may specifically be configured to: and converting the file to be transmitted into a binary code, and generating at least one two-dimensional code according to the binary code.
Specifically, the two-dimensional code comprises a full-screen two-dimensional code;
the graphic code generating unit may specifically include:
the parameter information obtaining subunit is configured to obtain parameter information of a display screen associated with the first terminal device, where the parameter information of the display screen includes information of a size and a resolution of the display screen;
and the generating subunit is used for generating the full-screen two-dimensional code according to the parameter information.
The generating subunit may specifically include:
the information quantity determining subunit is used for determining the maximum information quantity which can be borne by the same full-screen two-dimensional code according to the parameter information;
the separation subunit is configured to, if the information amount of the binary code corresponding to the file to be transmitted is greater than the maximum information amount, divide the binary code corresponding to the file to be transmitted according to the maximum information amount to obtain multiple binary codes;
and the full-screen two-dimensional code generating subunit is used for generating corresponding full-screen two-dimensional codes for each binary code respectively.
In a specific implementation, the apparatus may further include:
and the sequence identifier adding unit is used for adding sequence identifiers in the graphic codes when the graphic codes are multiple so as to splice decoding results corresponding to the multiple graphic codes according to the sequence identifiers.
And the display control unit is used for sequentially displaying the plurality of graphic codes when the plurality of graphic codes are multiple, and each graphic code stays in the display screen of the first terminal equipment for a preset time length.
Corresponding to the three phases of the embodiment, the embodiment of the present application further provides a data transmission device between an internal network and an external network, referring to fig. 6, the device may specifically include:
a code scanning unit 601, configured to scan a code of a graphical code generated in a first terminal device in a first network environment through a code scanning device associated with a second terminal device, and acquire information of the graphical code, where the graphical code is generated according to a file to be transmitted in the first terminal device;
a decoding unit 602, configured to decode the graphics code to obtain corresponding file data and file format information;
a file restoring unit 603, configured to restore the file data to the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
In addition, an embodiment of the present application further provides an electronic device, including:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
determining a file to be transmitted in first terminal equipment in a first network environment;
generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen, so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
And another electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
scanning a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
Fig. 7 illustrates an architecture of an electronic device, which may include, in particular, a processor 710, a video display adapter 711, a disk drive 712, an input/output interface 713, a network interface 714, and a memory 720. The processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, and the memory 720 may be communicatively coupled via a communication bus 730.
The processor 710 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided in the present Application.
The Memory 720 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 720 may store an operating system 721 for controlling the operation of the electronic device 700, a Basic Input Output System (BIOS) for controlling low-level operations of the electronic device 700. In addition, a web browser 723, a data storage management system 724, a data transmission processing system 725, and the like may also be stored. The data transmission processing system 725 may be an application program that implements the operations of the foregoing steps in this embodiment of the application. In summary, when the technical solution provided by the present application is implemented by software or firmware, the relevant program codes are stored in the memory 720 and called for execution by the processor 710.
The input/output interface 713 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 714 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 730 includes a path that transfers information between the various components of the device, such as processor 710, video display adapter 711, disk drive 712, input/output interface 713, network interface 714, and memory 720.
In addition, the electronic device 700 may also obtain information of specific derivation conditions from the virtual resource object derivation condition information database 741, for use in making condition judgment, and the like.
It should be noted that although the above-mentioned devices only show the processor 710, the video display adapter 711, the disk drive 712, the input/output interface 713, the network interface 714, the memory 720, the bus 730, etc., in a specific implementation, the devices may also include other components necessary for normal operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
Example four
The fourth embodiment provides a method for data transmission between an internal network and an external network from another perspective of a sending end device, where the method may include:
determining a file to be transmitted in first terminal equipment in a first network environment;
and generating at least one graphic code according to the file to be transmitted, and displaying the graphic code in an associated display screen, wherein the graphic code carries at least part of file data and file format information of the file to be transmitted, so that second terminal equipment in a second network environment scans the graphic code to acquire the file data and the file format information and restore the file.
The first network environment is an intranet, and the second network environment is an extranet;
or, the first network environment is an external network, and the second network environment is an internal network.
EXAMPLE five
In a fifth aspect of the present invention, there is provided a method for data transmission between an internal network and an external network, where the method includes:
scanning a graphic code displayed in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is at least one graphic code generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
and restoring the file data into the file to be transmitted according to the file format information.
The number of the graphic codes can be multiple, and the file format information further comprises a sequence identifier; at this time, according to the sequence identifier carried in the graphic code, the decoding results of the plurality of graphic codes may be spliced to perform file restoration.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The method, the device and the system for data transmission between the internal network and the external network provided by the application are introduced in detail, specific examples are applied in the description to explain the principle and the implementation mode of the application, and the description of the embodiments is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific embodiments and the application range may be changed. In view of the above, the description should not be taken as limiting the application.

Claims (23)

1. A system for data transmission between an internal network and an external network, comprising:
the system comprises a first client, a second client and a display screen, wherein the first client is used for operating in first terminal equipment in a first network environment, generating at least one graphic code according to a received file to be transmitted and displaying the graphic code in the associated display screen;
the second client is used for operating in a second terminal device in a second network environment, receiving data in a code scanning mode of the graphic code through a code scanning device associated with the second terminal device, and performing file restoration on the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
2. The system of claim 1,
the graphic code comprises a two-dimensional code;
the first client is specifically configured to convert the file to be transmitted into a binary code, and generate at least one two-dimensional code according to the binary code.
3. The system of claim 2,
the two-dimensional code comprises a full-screen two-dimensional code;
the first client is specifically configured to obtain parameter information of a display screen associated with the first terminal device, and generate the full-screen two-dimensional code according to the parameter information, where the parameter information of the display screen includes information of a size and a resolution of the display screen.
4. The system of claim 3,
the first client is specifically configured to determine, according to the parameter information, an information amount that can be borne by the same full-screen two-dimensional code, if the information amount of the binary code corresponding to the file to be transmitted is greater than the information amount that can be borne by the full-screen two-dimensional code, divide the binary code corresponding to the file to be transmitted according to the information amount that can be borne by the full-screen two-dimensional code, obtain multiple binary codes, and generate corresponding full-screen two-dimensional codes for each binary code.
5. The system of claim 1,
the first client is specifically configured to, when the number of the graphic codes is multiple, add a sequence identifier to the graphic codes;
the second client is specifically configured to decode the multiple graphic codes respectively, splice the obtained decoding results according to the sequence identifier, and restore the spliced results to a target file according to the file format information.
6. The system of claim 1,
the first client is specifically configured to display the plurality of graphic codes in sequence when the number of the graphic codes is multiple, and each graphic code stays in the display screen of the first terminal device for a preset time length.
7. The system according to any one of claims 1 to 6,
the first network environment or the second network environment is a network environment isolated from the internet.
8. A method for data transmission between an internal network and an external network, comprising:
determining a file to be transmitted in first terminal equipment in a first network environment;
generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
9. The method of claim 8,
the graphic code comprises a two-dimensional code;
the generating at least one graphic code according to the file to be transmitted includes:
and converting the file to be transmitted into a binary code, and generating at least one two-dimensional code according to the binary code.
10. The method of claim 9,
the two-dimensional code comprises a full-screen two-dimensional code;
the generating at least one two-dimensional code according to the binary code comprises:
acquiring parameter information of a display screen associated with the first terminal device, wherein the parameter information of the display screen comprises the size and resolution information of the display screen;
and generating the full-screen two-dimensional code according to the parameter information.
11. The method of claim 10,
the generating the full-screen two-dimensional code according to the parameter information includes:
determining the information quantity which can be borne by the same full-screen two-dimensional code according to the parameter information;
if the information quantity of the binary code corresponding to the file to be transmitted is larger than the information quantity which can be borne by the full-screen two-dimensional code, the binary code corresponding to the file to be transmitted is segmented according to the information quantity which can be borne by the full-screen two-dimensional code, and multiple binary codes are obtained;
and respectively generating corresponding full-screen two-dimensional codes for each binary code.
12. The method of claim 8, further comprising:
and when the graphic codes are multiple, adding a sequence identifier in the graphic codes so as to splice decoding results corresponding to the multiple graphic codes according to the sequence identifier.
13. The method of claim 8,
and when the number of the graphic codes is multiple, sequentially displaying the multiple graphic codes, wherein each graphic code stays in the display screen of the first terminal equipment for a preset time length.
14. A method for data transmission between an internal network and an external network, comprising:
scanning a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
15. The method of claim 14,
and if the number of the graphic codes is multiple, scanning the graphic codes in sequence, and splicing respective decoding results according to sequence identification carried in the graphic codes so as to restore the file.
16. A data transmission apparatus between an internal network and an external network, comprising:
a file to be transmitted determining unit, configured to determine a file to be transmitted in a first terminal device in a first network environment;
the graphic code generating unit is used for generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen, so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
17. A data transmission apparatus between an internal network and an external network, comprising:
the code scanning unit is used for scanning a code of a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to obtain information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
the decoding unit is used for decoding the graphic code to obtain corresponding file data and file format information;
the file restoration unit is used for restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
18. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
determining a file to be transmitted in first terminal equipment in a first network environment;
generating at least one graphic code according to the file to be transmitted, displaying the graphic code in an associated display screen, so that second terminal equipment in a second network environment can receive data in a code scanning mode of the graphic code, and restoring the received data according to file format information carried in the graphic code;
the first terminal device and the second terminal device are located in the same physical space.
19. An electronic device, comprising:
one or more processors; and
a memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
scanning a graphic code generated in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
restoring the file data into the file to be transmitted according to the file format information;
the first terminal device and the second terminal device are located in the same physical space.
20. A method for data transmission between an internal network and an external network, comprising:
determining a file to be transmitted in first terminal equipment in a first network environment;
and generating at least one graphic code according to the file to be transmitted, and displaying the graphic code in an associated display screen, wherein the graphic code carries at least part of file data and file format information of the file to be transmitted, so that second terminal equipment in a second network environment scans the graphic code to acquire the file data and the file format information and restore the file.
21. The method of claim 20,
the first network environment is an intranet, and the second network environment is an extranet;
or, the first network environment is an external network, and the second network environment is an internal network.
22. A method for data transmission between an internal network and an external network, comprising:
scanning a graphic code displayed in first terminal equipment in a first network environment through code scanning equipment associated with second terminal equipment to acquire information of the graphic code, wherein the graphic code is at least one graphic code generated according to a file to be transmitted in the first terminal equipment;
decoding the graphic code to obtain corresponding file data and file format information;
and restoring the file data into the file to be transmitted according to the file format information.
23. The method of claim 22,
the number of the graphic codes is multiple, and the file format information also comprises a sequence identifier;
restoring the file data into the file to be transmitted according to the file format information, including:
and splicing the decoding results of the plurality of graphic codes according to the sequence identification carried in the graphic codes so as to restore the file.
CN201910316397.8A 2019-04-19 2019-04-19 Method, device and system for data transmission between internal network and external network Pending CN111835804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910316397.8A CN111835804A (en) 2019-04-19 2019-04-19 Method, device and system for data transmission between internal network and external network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910316397.8A CN111835804A (en) 2019-04-19 2019-04-19 Method, device and system for data transmission between internal network and external network

Publications (1)

Publication Number Publication Date
CN111835804A true CN111835804A (en) 2020-10-27

Family

ID=72915008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910316397.8A Pending CN111835804A (en) 2019-04-19 2019-04-19 Method, device and system for data transmission between internal network and external network

Country Status (1)

Country Link
CN (1) CN111835804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794728A (en) * 2021-09-16 2021-12-14 国网北京市电力公司 Data transmission method, device, computer readable medium and processor

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831163A (en) * 2012-07-20 2012-12-19 江苏缨思贝睿物联网科技有限公司 Data transfer method and data transfer system
CN103268461A (en) * 2013-04-25 2013-08-28 浙江成功软件开发有限公司 Intranet-extranet physical isolation data exchange method based on QR (quick response) code
CN103347097A (en) * 2013-07-26 2013-10-09 国家电网公司 Method and system for file transmission
CN106534190A (en) * 2016-12-14 2017-03-22 北京龙贝世纪科技股份有限公司 Data capture transmission method and system of intranet and extranet based on two-dimensional bar code
CN106776069A (en) * 2016-12-14 2017-05-31 北京龙贝世纪科技股份有限公司 The automatic method and system for collecting transmission data between a kind of software systems
CN108270792A (en) * 2018-01-30 2018-07-10 江苏意源科技有限公司 A kind of inside and outside network physical isolation high security method for interchanging data based on Quick Response Code
US20180307883A1 (en) * 2016-03-07 2018-10-25 ShoCard, Inc. Transferring Data Files Using a Series of Visual Codes
CN109254955A (en) * 2018-09-27 2019-01-22 贵州华云创谷科技有限公司 Unidirectional file is ferried method and system between a kind of separation net based on two dimensional code

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831163A (en) * 2012-07-20 2012-12-19 江苏缨思贝睿物联网科技有限公司 Data transfer method and data transfer system
CN103268461A (en) * 2013-04-25 2013-08-28 浙江成功软件开发有限公司 Intranet-extranet physical isolation data exchange method based on QR (quick response) code
CN103347097A (en) * 2013-07-26 2013-10-09 国家电网公司 Method and system for file transmission
US20180307883A1 (en) * 2016-03-07 2018-10-25 ShoCard, Inc. Transferring Data Files Using a Series of Visual Codes
CN106534190A (en) * 2016-12-14 2017-03-22 北京龙贝世纪科技股份有限公司 Data capture transmission method and system of intranet and extranet based on two-dimensional bar code
CN106776069A (en) * 2016-12-14 2017-05-31 北京龙贝世纪科技股份有限公司 The automatic method and system for collecting transmission data between a kind of software systems
CN108270792A (en) * 2018-01-30 2018-07-10 江苏意源科技有限公司 A kind of inside and outside network physical isolation high security method for interchanging data based on Quick Response Code
CN109254955A (en) * 2018-09-27 2019-01-22 贵州华云创谷科技有限公司 Unidirectional file is ferried method and system between a kind of separation net based on two dimensional code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794728A (en) * 2021-09-16 2021-12-14 国网北京市电力公司 Data transmission method, device, computer readable medium and processor

Similar Documents

Publication Publication Date Title
CN107622135B (en) Method and apparatus for displaying information
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN105786207A (en) Information input method and device
CN109582317B (en) Method and apparatus for debugging hosted applications
CN112650456A (en) Printing method and device and electronic equipment
KR102360271B1 (en) Methods and devices for determining the color of a text
JP2023026531A (en) Virtual character generating method, apparatus, electronic equipment, storage medium, and computer program
CN111835804A (en) Method, device and system for data transmission between internal network and external network
EP4030373A1 (en) Object comparison method, and device
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN112671876A (en) Method and equipment for page operation and maintenance
CN114546370A (en) Data docking method and related device
CN115242422A (en) Data intercommunication processing method and device and information management system
CN115328997A (en) Data synchronization method, system, device and storage medium
CN113641359A (en) Data processing method and device
CN114071190A (en) Cloud application video stream processing method, related device and computer program product
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN114302207A (en) Bullet screen display method, device, system, equipment and storage medium
CN108536715A (en) A kind of preview page generation method, device, equipment and storage medium
CN113836455A (en) Special effect rendering method, device, equipment, storage medium and computer program product
CN113094128B (en) Network information interaction method and electronic equipment
CN111510370B (en) Content processing method and device, computer medium and electronic equipment
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN110620805B (en) Method and apparatus for generating information
KR101945737B1 (en) Apparatus and method for managing location information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201027