[go: up one dir, main page]

CN112559472A - File transmission method and device, computer equipment and storage medium - Google Patents

File transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112559472A
CN112559472A CN202011437218.5A CN202011437218A CN112559472A CN 112559472 A CN112559472 A CN 112559472A CN 202011437218 A CN202011437218 A CN 202011437218A CN 112559472 A CN112559472 A CN 112559472A
Authority
CN
China
Prior art keywords
file
server
service component
file service
description information
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.)
Granted
Application number
CN202011437218.5A
Other languages
Chinese (zh)
Other versions
CN112559472B (en
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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co 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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN202011437218.5A priority Critical patent/CN112559472B/en
Publication of CN112559472A publication Critical patent/CN112559472A/en
Priority to PCT/CN2021/123155 priority patent/WO2022121492A1/en
Application granted granted Critical
Publication of CN112559472B publication Critical patent/CN112559472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion
    • 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
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file transmission method, a file transmission device, computer equipment and a storage medium, wherein the file transmission method comprises the following steps: creating a file service component connected with a server, and deploying the file service component in the server; sending a data query instruction to a database corresponding to the server through the file service component; and generating a file with a preset text format from the received data through the file service component, and transmitting the file to the server in a file stream form. The technical scheme of the embodiment of the invention can improve the speed of the server responding to the client after the client sends the file acquisition request to the server, and can improve the stability of the file transmission process.

Description

File transmission method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a file transmission method, a file transmission device, computer equipment and a storage medium.
Background
With the development of information technology, the file export function is the most basic and frequently applied function provided by various information systems.
The first method is that a client sends a file export request (as shown in fig. 1 a) to a server, the server generates a query instruction according to the request after receiving the request, and then sends the query instruction to a database (the database comprises a local database and other service system databases), the database obtains a data group matched with the query instruction after receiving the query instruction, and then sends the data group to the server, and the server combines the data group into an excel or other text format file as required, and sends the file to the client in a streaming form; the second method is that the server sends different query instructions to the database in advance before receiving a request (as shown in fig. 1 b), generates a plurality of files according to a data set returned by the database, and sends a file matched with the request to the client in a streaming form when receiving the request for exporting the file sent by the client.
However, in the first method, when the number of requests sent by the client is large or the amount of data in the database is large, the process of generating the file by the server is time-consuming, so that the speed of the server responding to the client is slow, and the experience of the user is further reduced; although the second method can save the time for the server to generate the file, when the program interacting between the server and the database is abnormal (or the program stops running during the updating process), the database cannot send the data group to the server in time, and therefore the file transmission process is interrupted.
Disclosure of Invention
Embodiments of the present invention provide a file transmission method, an apparatus, a computer device, and a storage medium, which can improve the speed at which a server responds to a client after the client sends a file acquisition request to the server, and can improve the stability of a file transmission process.
In a first aspect, an embodiment of the present invention provides a file transmission method, where the method includes:
creating a file service component connected with a server, and deploying the file service component in the server;
sending a data query instruction to a database corresponding to the server through the file service component;
and generating a file with a preset text format from the received data through the file service component, and transmitting the file to a server in a file stream form.
In a second aspect, an embodiment of the present invention further provides a file transmission method, which is applied to a server, and the method includes:
receiving at least one file transmitted by a file service component;
when a file acquisition request sent by a client is received, acquiring a target file from at least one file according to the file acquisition request;
and transmitting the target file to a client in a file stream mode.
In a third aspect, an embodiment of the present invention further provides a file transfer apparatus, where the apparatus includes:
the file service component creating module is used for creating a file service component connected with the server and deploying the file service component in the server;
the data query instruction sending module is used for sending a data query instruction to a database corresponding to the server by the file service component;
and the file generating module is used for generating the received data into a file with a preset text format by the file service component and transmitting the file to the server in a file stream form.
In a fourth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement a file transfer method provided by any embodiment of the invention.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program implements a file transfer method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the file service assembly connected with the server is created, the file service assembly is deployed in the server, then the file service assembly sends a data query instruction to the database corresponding to the server, finally the file service assembly generates the received data into the file with the preset text format, and the file is transmitted to the server in a file stream mode.
Drawings
FIG. 1a is a schematic diagram of an interaction scenario of a specific application to which a file export method is applied in the prior art;
FIG. 1b is a diagram illustrating an interaction scenario of a specific application to which another file export method is applied in the prior art;
FIG. 1c is a flowchart of a file transmission method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a file transfer method according to a second embodiment of the present invention;
FIG. 3a is a flowchart of a file transmission method according to a third embodiment of the present invention;
fig. 3b is a schematic diagram of a specific application interaction scenario to which a file transmission method is applied in a third embodiment of the present invention;
FIG. 4 is a diagram showing a structure of a file transfer apparatus according to a fourth embodiment of the present invention;
FIG. 5 is a diagram showing a structure of a file transfer apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in the sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1c is a flowchart of a file transmission method according to an embodiment of the present invention, where this embodiment is applicable to a case where a server generates a file and transmits the file, and the method may be executed by a file transmission device, where the file transmission device may be implemented by software and/or hardware, and may be generally integrated in a computer and all intelligent devices including a program running function, and specifically includes the following steps:
step 110, creating a file service component connected with the server, and deploying the file service component in the server.
In this embodiment, the file service component may be a functional component that has a data query function and generates a corresponding file according to queried data. The file service component may be a specific file service program.
In a specific embodiment, the file service component is bound with the server, that is, the file service component is connected with the server, so that the file service component can be ensured to send the generated file to the server. Optionally, the file service component may be deployed in a certain functional module in the server to ensure that the file service component can normally operate; secondly, the file service assembly is deployed in the server, so that the file service assembly can be ensured to acquire data in a database corresponding to the server in time, and the file generation efficiency can be improved.
And step 120, sending a data query instruction to a database corresponding to the server through the file service component.
In this embodiment, when creating the file service component, module information (for example, a module name of a service module) of each service module in the server may be added to the file service component in advance, and the file service component generates a corresponding data query instruction according to the module information of each service module, and then sends each data query instruction to a database corresponding to the server. After receiving a data query instruction, the database searches business data matched with the module information in the database according to the module information specified in the data query instruction, and sends the data to the file service component.
In a specific embodiment, the database may include a local database corresponding to the server and other business system databases. Specifically, when the local database does not have data matched with the data query instruction, the local database can also call other service system databases, and searches matched data in other service system databases according to module information specified in the data query instruction. Therefore, complete data acquired by the file service component can be ensured, and the effectiveness of subsequently generated files can be improved.
Step 130, generating a file with a preset text format from the received data through the file service component, and transmitting the file to a server in a file stream form.
In this step, after receiving the data sent by the database, the file service component may generate the data into a file in a preset text format according to the service requirement. The text format may be an excel format or a txt format, and the specific format is preset according to actual conditions, which is not limited in this embodiment.
In this embodiment, the server can receive a plurality of files sent by the file service component before receiving a file acquisition request sent by the client, thereby saving the time for the server to generate the files and improving the speed for the server to respond to the client; secondly, in this embodiment, data reception and file generation can be achieved by separately deploying a file service component in the server, and the file service component does not depend on an interactive program between the server and the database, that is, when the interactive program is abnormal (or stops running in an updating process), the file service component can still normally acquire data and transmit the generated file to the server, so that the problem of interruption in a file transmission process can be avoided, and the stability of the file transmission process can be further improved.
According to the technical scheme of the embodiment of the invention, the file service assembly connected with the server is created, the file service assembly is deployed in the server, then the file service assembly sends a data query instruction to the database corresponding to the server, finally the file service assembly generates the received data into the file with the preset text format, and the file is transmitted to the server in a file stream mode.
Example two
This embodiment is a further refinement of the above embodiment, and the same or corresponding terms as those of the above embodiment are explained, and this embodiment is not described again. Fig. 2 is a flowchart of a file transmission method provided in the second embodiment, in this embodiment, the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 2, the method provided in this embodiment may further include:
step 210, obtaining server description information, and creating a file service component connected with a server according to the server description information.
The server description information can be added to the file service component to enable the file service component to be connected with the server.
In one implementation manner of the embodiment of the present invention, creating a file service component connected to a server according to the server description information includes: establishing an initialized file service component, and updating the initialized file service component according to the server description information to obtain a file service component connected with the server; the server description information includes a user name, an internet protocol address, and a port number of the server.
In this embodiment, the initialized file service component is a file service component that is not connected to the server. The server description information may include a user name, an Internet Protocol Address (IP Address), a port number, a password, and the like of the server.
In a specific embodiment, the user name, the IP address, the port number, the password, and the like of the server may be added to the initialized file service component, so as to obtain the file service component connected to the server. Therefore, stable connection between the file service assembly and the server can be guaranteed.
In an implementation manner of the embodiment of the present invention, updating the initialized file service component according to the server description information includes: creating a JSch object in the initialized file service component; and acquiring a session object from the JSch object, and configuring the session object according to the server description information to obtain an updated file service component.
Where JSch is an abbreviation for Java Secure Channel, is a pure Java language implementation of SSH2, allows file serving components to connect to an SSH server, and can use port forwarding, file transfer, etc. The session is an object used for representing a session in the JSch object, and after the session object is configured according to the server description information, the connection between the file service component and the server can be realized.
In a specific embodiment, after configuring the session object according to the server description information, the method further includes: and establishing a file transmission channel matched with the server description information in the session object.
The file transmission channel is used for transmitting the file stream sent by the file service component to the server.
Step 220, the file service component is deployed in a server.
Step 230, sending a data query instruction to a database corresponding to the server through the file service component.
Step 240, generating a file with a preset text format from the received data through the file service component, and transmitting the file to a server in a file stream form.
In an implementation manner of the embodiment of the present invention, transmitting the file to a server in a form of a file stream by the file service component includes: and transmitting the file to a server on the file transmission channel in a file stream mode through the file service component.
Therefore, a file transmission channel is established in the session object, and the file is transmitted on the file transmission channel in a file stream mode, so that the situation that the file is lost or missed in the transmission process can be avoided, and the reliability of the transmission process can be improved.
According to the technical scheme of the embodiment of the invention, the server description information is obtained, the file service assembly connected with the server is created according to the server description information, the file service assembly is deployed in the server, then the file service assembly sends a data query instruction to the database corresponding to the server, finally the received data is generated into the file with the preset text format through the file service assembly, and the file is transmitted to the server in a file stream mode.
EXAMPLE III
Fig. 3a is a flowchart of a file transmission method according to a third embodiment of the present invention, where this embodiment is applicable to a case where a server exports a generated file to a client, and the method may be executed by a file transmission device, where the file transmission device may be implemented by software and/or hardware, and may be generally integrated in the server, and specifically includes the following steps:
step 310, at least one file transmitted by the file service component is received.
Fig. 3b is a schematic diagram of a specific application interaction scenario to which a file transmission method is applied in an embodiment of the present invention, and as shown in fig. 3b, a server receives at least one file transmitted by a file service component in advance before receiving a file acquisition request sent by a client. The file service component is separately deployed in the server, and the file service component does not depend on an interactive program between the server and the database, namely when the interactive program is abnormal (or stops running in an updating process), the file service component can still normally acquire data and transmit the generated file to the server.
In a specific embodiment, after the file service component sends a data query instruction to the database, the database sends the matched data to the file service component, and the file service component generates the received data into a file with a preset text format and transmits the file to the server in a file stream form.
Step 320, when receiving a file obtaining request sent by a client, obtaining a target file from the at least one file according to the file obtaining request.
In a specific embodiment, as shown in fig. 3b, when the server receives a file obtaining request sent by the client, a file matching with the module information may be obtained from the at least one file according to the module information specified in the file obtaining request, and the file is taken as a target file.
And step 330, transmitting the target file to a client in a file stream mode.
According to the technical scheme of the embodiment of the invention, by receiving at least one file transmitted by the file service component, acquiring the target file from the at least one file according to the file acquisition request when receiving the file acquisition request sent by the client, and then transmitting the target file to the client in the form of file stream, the speed of the server responding to the client after the client sends the file acquisition request to the server can be increased, the problem of interruption of the file transmission process can be avoided, and the stability of the file transmission process can be further improved.
Example four
Fig. 4 is a structural diagram of a file transfer apparatus according to a fourth embodiment of the present invention, where the apparatus includes: a file service component creation module 410, a data query instruction sending module 420 and a file generation module 430.
The file service component creating module 410 is configured to create a file service component connected to a server, and deploy the file service component in the server;
a data query instruction sending module 420, configured to send a data query instruction to a database corresponding to the server by the file service component;
the file generating module 430 is configured to generate a file in a preset text format from the received data by the file service component, and transmit the file to the server in a file stream form.
According to the technical scheme of the embodiment of the invention, the file service assembly connected with the server is created, the file service assembly is deployed in the server, then the file service assembly sends a data query instruction to the database corresponding to the server, finally the file service assembly generates the received data into the file with the preset text format, and the file is transmitted to the server in a file stream mode.
On the basis of the above embodiments, the file service component creating module 410 may include:
the server description information acquisition unit is used for acquiring server description information and creating a file service component connected with the server according to the server description information;
the file service component updating unit is used for creating an initialized file service component and updating the initialized file service component according to the server description information to obtain a file service component connected with the server; the server description information comprises a user name, an internet protocol address and a port number of the server;
a Jsch object creating unit for creating a Jsch object in the initialized file service component;
a session object obtaining unit, configured to obtain a session object from the JSch object, and configure the session object according to the server description information to obtain an updated file service component;
and the transmission channel establishing unit is used for establishing a file transmission channel matched with the server description information in the session object.
The file generation module 430 may include:
and the file transmission unit is used for transmitting the file to a server on the file transmission channel in a file stream form through the file service assembly.
The file transmission device provided by the embodiment of the invention can execute the file transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a structural diagram of a file transfer apparatus according to a fifth embodiment of the present invention, where the apparatus is applied to a server, and includes: a file receiving module 510, a target file acquiring module 520 and a file transmitting module 530.
The file receiving module 510 is configured to receive at least one file transmitted by the file service component;
a target file obtaining module 520, configured to, when a file obtaining request sent by a client is received, obtain a target file from the at least one file according to the file obtaining request;
and a file transmission module 530, configured to transmit the target file to the client in a file stream.
According to the technical scheme of the embodiment of the invention, by receiving at least one file transmitted by the file service component, acquiring the target file from the at least one file according to the file acquisition request when receiving the file acquisition request sent by the client, and then transmitting the target file to the client in the form of file stream, the speed of the server responding to the client after the client sends the file acquisition request to the server can be increased, the problem of interruption of the file transmission process can be avoided, and the stability of the file transmission process can be further improved.
The file transmission device provided by the embodiment of the invention can execute the file transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a computer apparatus according to a sixth embodiment of the present invention, as shown in fig. 6, the computer apparatus includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of processors 610 in the computer device may be one or more, and one processor 610 is taken as an example in fig. 6; the processor 610, the memory 620, the input device 630 and the output device 640 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 6.
The memory 620 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a file transfer method in an embodiment of the present invention (e.g., the file service component creation module 410, the data query instruction transmission module 420, and the file generation module 430 in a file transfer device). The processor 610 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 620, that is, implements one of the file transfer methods described above. That is, the program when executed by the processor implements:
creating a file service component connected with a server, and deploying the file service component in the server;
sending a data query instruction to a database corresponding to the server through the file service component;
and generating a file with a preset text format from the received data through the file service component, and transmitting the file to a server in a file stream form.
The memory 620, as a computer-readable storage medium, may also be used for storing program instructions/modules corresponding to a file transmission method according to an embodiment of the present invention (for example, the file receiving module 510, the target file acquiring module 520, and the file transmitting module 530 in a file transmission device). The processor 610 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 620, that is, implements one of the file transfer methods described above. That is, the program when executed by the processor implements:
receiving at least one file transmitted by a file service component;
when a file acquisition request sent by a client is received, acquiring a target file from at least one file according to the file acquisition request;
and transmitting the target file to a client in a file stream mode.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 may further include memory located remotely from the processor 610, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer device, and may include a keyboard and a mouse, etc. The output device 640 may include a display device such as a display screen.
EXAMPLE seven
The seventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to any embodiment of the present invention. Of course, the computer-readable storage medium provided in the embodiments of the present invention may perform related operations in a file transmission method provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
creating a file service component connected with a server, and deploying the file service component in the server;
sending a data query instruction to a database corresponding to the server through the file service component;
and generating a file with a preset text format from the received data through the file service component, and transmitting the file to a server in a file stream form.
The computer-readable storage medium provided in the embodiments of the present invention may further perform related operations in another file transmission method provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
receiving at least one file transmitted by a file service component;
when a file acquisition request sent by a client is received, acquiring a target file from at least one file according to the file acquisition request;
and transmitting the target file to a client in a file stream mode.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the file transmission apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for file transfer, comprising:
creating a file service component connected with a server, and deploying the file service component in the server;
sending a data query instruction to a database corresponding to the server through the file service component;
and generating a file with a preset text format from the received data through the file service component, and transmitting the file to a server in a file stream form.
2. The method of claim 1, wherein creating a file serving component connected to a server comprises:
and acquiring the server description information, and creating a file service component connected with the server according to the server description information.
3. The method of claim 2, wherein creating a file service component connected to a server based on the server description information comprises:
establishing an initialized file service component, and updating the initialized file service component according to the server description information to obtain a file service component connected with the server;
the server description information includes a user name, an internet protocol address, and a port number of the server.
4. The method of claim 3, wherein updating the initialized file service component according to the server description information comprises:
creating a JSch object in the initialized file service component;
and acquiring a session object from the JSch object, and configuring the session object according to the server description information to obtain an updated file service component.
5. The method of claim 4, wherein after configuring the session object according to the server description information, further comprising:
establishing a file transmission channel matched with the server description information in the session object;
transmitting the file to a server in a file stream form through the file service component, comprising:
and transmitting the file to a server on the file transmission channel in a file stream mode through the file service component.
6. A file transmission method is applied to a server and is characterized by comprising the following steps:
receiving at least one file transmitted by a file service component;
when a file acquisition request sent by a client is received, acquiring a target file from at least one file according to the file acquisition request;
and transmitting the target file to a client in a file stream mode.
7. A file transfer apparatus, characterized in that the apparatus comprises:
the file service component creating module is used for creating a file service component connected with the server and deploying the file service component in the server;
the data query instruction sending module is used for sending a data query instruction to a database corresponding to the server by the file service component;
and the file generating module is used for generating the received data into a file with a preset text format by the file service component and transmitting the file to the server in a file stream form.
8. A file transmission device is applied to a server, and the device comprises:
the file receiving module is used for receiving at least one file transmitted by the file service component;
the target file acquisition module is used for acquiring a target file from the at least one file according to a file acquisition request when receiving the file acquisition request sent by the client;
and the file transmission module is used for transmitting the target file to the client in a file stream mode.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
the file transfer method of any of claims 1-6 when executed by the one or more programs such that the one or more processors execute the programs.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a file transfer method according to any one of claims 1 to 6.
CN202011437218.5A 2020-12-07 2020-12-07 File transmission method, device, computer equipment and storage medium Active CN112559472B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011437218.5A CN112559472B (en) 2020-12-07 2020-12-07 File transmission method, device, computer equipment and storage medium
PCT/CN2021/123155 WO2022121492A1 (en) 2020-12-07 2021-10-12 File transmission method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011437218.5A CN112559472B (en) 2020-12-07 2020-12-07 File transmission method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112559472A true CN112559472A (en) 2021-03-26
CN112559472B CN112559472B (en) 2024-05-14

Family

ID=75060391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011437218.5A Active CN112559472B (en) 2020-12-07 2020-12-07 File transmission method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112559472B (en)
WO (1) WO2022121492A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121492A1 (en) * 2020-12-07 2022-06-16 北京锐安科技有限公司 File transmission method and apparatus, computer device, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118427164A (en) * 2024-04-25 2024-08-02 上海能誉科技股份有限公司 Method and device for storing data of Internet of things equipment by adopting TXT text format, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214192A (en) * 2010-04-12 2011-10-12 腾讯科技(深圳)有限公司 Method for realizing data curve chart display on Web page and server
CN105488048A (en) * 2014-09-16 2016-04-13 中兴通讯股份有限公司 Data query method and device
CN106156180A (en) * 2015-04-20 2016-11-23 苏宁云商集团股份有限公司 Asynchronous computing and the method and system of preprocessed data
CN110297843A (en) * 2019-07-02 2019-10-01 山东浪潮通软信息科技有限公司 Data query method and system, terminal for B/S system
CN112035515A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Method and device for configuring query conditions, computer equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6182122B1 (en) * 1997-03-26 2001-01-30 International Business Machines Corporation Precaching data at an intermediate server based on historical data requests by users of the intermediate server
CN101861582A (en) * 2007-09-28 2010-10-13 埃克斯里昂股份公司 Network operating system
US8055638B2 (en) * 2008-12-11 2011-11-08 Microsoft Corporation Providing recent history with search results
CN112559472B (en) * 2020-12-07 2024-05-14 北京锐安科技有限公司 File transmission method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214192A (en) * 2010-04-12 2011-10-12 腾讯科技(深圳)有限公司 Method for realizing data curve chart display on Web page and server
CN105488048A (en) * 2014-09-16 2016-04-13 中兴通讯股份有限公司 Data query method and device
CN106156180A (en) * 2015-04-20 2016-11-23 苏宁云商集团股份有限公司 Asynchronous computing and the method and system of preprocessed data
CN110297843A (en) * 2019-07-02 2019-10-01 山东浪潮通软信息科技有限公司 Data query method and system, terminal for B/S system
CN112035515A (en) * 2020-09-03 2020-12-04 中国银行股份有限公司 Method and device for configuring query conditions, computer equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121492A1 (en) * 2020-12-07 2022-06-16 北京锐安科技有限公司 File transmission method and apparatus, computer device, and storage medium

Also Published As

Publication number Publication date
CN112559472B (en) 2024-05-14
WO2022121492A1 (en) 2022-06-16

Similar Documents

Publication Publication Date Title
EP2835938B1 (en) Message publishing and subscribing method and apparatus
CN102955717B (en) Message management equipment and method in distributed message processing system
CN109951546B (en) Transaction request processing method, device, equipment and medium based on intelligent contract
CN106713391B (en) Session information sharing method and sharing system
CN101686145A (en) Equipment capable of upgrading, upgrading method and system
CN111711556B (en) Routing method, device, system, equipment and storage medium of virtual private network
CN112559472B (en) File transmission method, device, computer equipment and storage medium
CN110933188A (en) Remote service calling method, system, server and storage medium
CN114189393A (en) Data processing method, device, equipment and storage medium
CN111338758A (en) Resource management method and device and electronic equipment
CN112069137B (en) Method, device, electronic equipment and computer readable storage medium for generating information
CN110597783A (en) Database management method, device, equipment and storage medium
CN110809045B (en) A kind of data communication method and related equipment
CN102118274A (en) State monitoring method, device and system
CN103888297A (en) Interchanger network management method and system
CN111427710B (en) Communication method, device, equipment and storage medium of components in application program
CN110166487B (en) Local area network equipment information transmission method, main equipment, storage medium and intelligent equipment
WO2024103943A1 (en) Service processing method and apparatus, storage medium, and device
CN109788034B (en) Configuration method for gateway access equipment, electronic equipment and storage medium
CN104468645A (en) Control method, electronic equipment, and information transmission method and device
CN111416851A (en) Method for session synchronization among multiple load balancers and load balancer
CN111641664A (en) Crawler equipment service request method, device and system
CN111400060B (en) Equipment linkage method, device, server and medium
CN114389906A (en) Intelligent equipment group control method, device, equipment and storage medium
CN113014664A (en) Gateway adaptation method, device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant