CN112559472B - File transmission method, device, computer equipment and storage medium - Google Patents
File transmission method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112559472B CN112559472B CN202011437218.5A CN202011437218A CN112559472B CN 112559472 B CN112559472 B CN 112559472B CN 202011437218 A CN202011437218 A CN 202011437218A CN 112559472 B CN112559472 B CN 112559472B
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005540 biological transmission Effects 0.000 title claims abstract description 45
- 238000012546 transfer Methods 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 101000643431 Homo sapiens Protein phosphatase Slingshot homolog 2 Proteins 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (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 device, computer equipment and a storage medium, comprising the following steps: creating a file service component connected with the server, and deploying the file service component in the server; sending a data query instruction to a database corresponding to a server through a file service component; and generating a file in 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. According to the technical scheme provided by the embodiment of the invention, the speed of the server responding to the client after the client sends the file acquisition request to the server can be improved, and the stability of the file transmission process can be improved.
Description
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, file export functions are the most basic and frequently applied functions provided by various information systems.
The prior method for exporting the file mainly comprises two methods, wherein the first method is that a client sends a request for exporting the file to a server (shown in figure 1 a), the server generates a query instruction according to the request after receiving the request, then sends the query instruction to a database (the database comprises a local database and other business system databases), the database obtains a data group matched with the query instruction after receiving the query instruction, then sends the data group to the server, and the server combines the data group into an excel or other text format file according to the requirement and sends the file to the client in a streaming mode; the second is that the server sends different query instructions to the database in advance (as shown in fig. 1 b) before receiving the request, and generates a plurality of files according to the data set returned by the database, when receiving the request of exporting the files sent by the client, the server sends the files matched with the request to the client in the form of stream.
However, in the first method, when the number of requests sent by the client is large or the data amount in the database is large, the process of generating the file by the server is very time-consuming, so that the speed of the server for responding to the client is slow, and the experience of the user is further reduced; the second method can save the time for the server to generate the file, but when the program interacting between the server and the database is abnormal (or the program stops running in the updating process), the database cannot send the data set to the server in time, so that the file transmission process is interrupted.
Disclosure of Invention
The embodiment of the invention provides a file transmission method, a file transmission device, computer equipment and a storage medium, which can improve the speed of a server responding 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 in 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, where 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 the client in the form of a file stream.
In a third aspect, an embodiment of the present invention further provides a file transmission device, where the device includes:
The file service component creation 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;
The file generation module is used for generating a file with a preset text format from the received data 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 apparatus, including:
one or more processors;
A 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 present invention.
In a fifth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program is executed by a processor to implement a file transfer method provided in any embodiment of the present invention.
According to the technical scheme, the file service component connected with the server is created, the file service component is deployed in the server, then the data query instruction is sent to the database corresponding to the server through the file service component, finally the received data are generated into the file with the preset text format through the file service component, and the file is transmitted to the server in the form of the file stream.
Drawings
FIG. 1a is a schematic diagram of an application-specific interaction scenario to which a file export method of the prior art is applied;
FIG. 1b is a schematic diagram of an application-specific interaction scenario to which another file export method of the prior art is applied;
FIG. 1c is a flowchart of a file transfer 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 transfer method according to a third embodiment of the present invention;
Fig. 3b is a schematic diagram of an application-specific interaction scenario to which a file transfer method according to the third embodiment of the present invention is applied;
fig. 4 is a block diagram of a file transfer device according to a fourth embodiment of the present invention;
FIG. 5 is a block diagram of a file transfer device according to a fifth embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a computer device in a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1c is a flowchart of a file transfer method provided in the first embodiment of the present invention, where the method may be applied to a case where a server generates a file and transfers the file, and the method may be performed by a file transfer device, where the device may be implemented by software and/or hardware, and may be generally integrated into 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 the queried data. Wherein the file service component may be a specific file service program.
In a specific embodiment, the file service component is connected with the server by binding the file service component 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, so as to ensure that the file service component can operate normally; secondly, the file service component is deployed in the server, so that the file service component can be ensured to timely acquire data in a database corresponding to the server, and further the file generation efficiency can be improved.
And 120, sending a data query instruction to a database corresponding to the server through the file service component.
In this embodiment, when the file service component is created, module information (for example, a module name of a service module) of each service module in the server may be added in advance to the file service component, 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 the data query instruction, the database searches the 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 assembly.
In a specific embodiment, the database may include a local database corresponding to the server and other service system databases. Specifically, when the local database does not have the data matched with the data query instruction, the local database can also call other service system databases, and find the matched data in the other service system databases according to the module information specified in the data query instruction. Therefore, the complete data acquired by the file service component can be ensured, and the effectiveness of the subsequently generated file can be improved.
And 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 the file service component receives the data sent by the database, the file service component may generate a file in a preset text format according to the service requirement. The text format may be an excel or txt format, etc., and the specific format is preset according to practical situations, which is not limited in this embodiment.
In this embodiment, before receiving the file acquisition request sent by the client, the server may receive a plurality of files sent by the file service component, so that the time for the server to generate the files may be saved, and the speed of the server to respond to the client may be improved; in addition, in this embodiment, the file service component is configured to implement data receiving and file generation by separately deploying the file service component in the server, and the file service component is not dependent on an interactive program between the server and the database, that is, when the interactive program is abnormal (or stops running in an update 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 the file transmission process can be avoided, and further the stability of the file transmission process can be improved.
According to the technical scheme, the file service component connected with the server is created, the file service component is deployed in the server, then the data query instruction is sent to the database corresponding to the server through the file service component, finally the received data are generated into the file with the preset text format through the file service component, and the file is transmitted to the server in the form of the file stream.
Example two
The present embodiment is a further refinement of the foregoing embodiments, and the same or corresponding terms as those of the foregoing embodiments are explained, which are not repeated herein. Fig. 2 is a flowchart of a file transmission method provided in the second embodiment, in this embodiment, the technical solution of the present embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 2, where the method provided in the present 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 realize connection between the file service component and the server.
In one implementation of the embodiment of the present invention, creating a file service component connected to a server according to the server description information includes: 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 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 a server. The server description information may include a user name of the server, an internet protocol address (Internet Protocol Address, IP address), a port number, a password, and the like.
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, to obtain the file service component connected to the server. Therefore, stable connection between the file service component and the server can be ensured.
In one implementation of the embodiment of the present invention, updating the initialized file service component according to the server description information includes: creating JSch an object in the initialized file service component; and acquiring a session object from the JSch objects, and configuring the session object according to the server description information to obtain an updated file service component.
Wherein JSch is an abbreviation of Java Secure Channel, is a pure Java language implementation of SSH2, allows file service 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 JSch objects, and after the session object is configured according to the server description information, connection between the file service component and the server can be achieved.
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.
And 230, sending a data query instruction to a database corresponding to the server through the file service component.
And 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 one implementation manner of the embodiment of the present invention, the file is transmitted to a server through the file service component in a form of a file stream, including: and transmitting the file to a server in the form of a file stream on the file transmission channel through the file service component.
Therefore, the file transmission channel is established in the session object, and the file is transmitted on the file transmission channel in the form of a file stream, so that the situation that the file is lost or omitted in the transmission process can be avoided, and the reliability of the transmission process can be improved.
According to the technical scheme, the file service component connected with the server is created according to the server description information, the file service component is deployed in the server, then a data query instruction is sent to the database corresponding to the server through the file service component, finally received data are generated into the file with the preset text format through the file service component, and the file is transmitted to the server in the form of a file stream.
Example III
Fig. 3a is a flowchart of a file transfer method provided in a third embodiment of the present invention, where the method may be implemented by a file transfer device, and the device may be implemented by software and/or hardware, and may be generally integrated in a server, and specifically includes the following steps:
step 310, at least one file transmitted by a file service component is received.
Fig. 3b is a schematic diagram of an application-specific interaction scenario to which a file transfer method according to an embodiment of the present invention is applicable, where, as shown in fig. 3b, a server receives at least one file transferred by a file service component in advance before receiving a file acquisition request sent by a client. The file service component is independently deployed in the server, and the file service component is independent of an interactive program between the server and the database, namely, when the interactive program is abnormal (or stops running in the 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 a file in a preset text format from the received data and transmits the file to the server in a file stream form.
Step 320, when a file obtaining request sent by the client is received, 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 acquisition request sent by the client, a file matching with the module information may be acquired from the at least one file according to the module information specified in the file acquisition request, and the file may be used as a target file.
And 330, transmitting the target file to the client in the form of a file stream.
According to the technical scheme, the at least one file transmitted by the file service component is received, when the file acquisition request sent by the client is received, the target file is acquired from the at least one file according to the file acquisition request, and then the target file is transmitted to the client in the form of a file stream, so that the speed of the server responding to the client after the client sends the file acquisition request to the server can be improved, the problem of interruption of the file transmission process can be avoided, and the stability of the file transmission process can be improved.
Example IV
Fig. 4 is a block diagram of a file transfer device according to a fourth embodiment of the present invention, where the device 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 creation 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 using 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 form of a file stream.
According to the technical scheme, the file service component connected with the server is created, the file service component is deployed in the server, then the data query instruction is sent to the database corresponding to the server through the file service component, finally the received data are generated into the file with the preset text format through the file service component, and the file is transmitted to the server in the form of the file stream.
On the basis of the above embodiments, the file service component creation 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, updating the initialized file service component according to the server description information and obtaining 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 a server;
JSch an object creation unit, configured to create JSch objects in the initialized file service component;
a session object obtaining unit, configured to obtain a session object from the JSch objects, and configure the session object according to the server description information, so as 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 the server in the form of a file stream on the file transmission channel through the file service component.
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 block diagram of a file transfer device according to a fifth embodiment of the present invention, where the device is applied to a server, and includes: a file receiving module 510, a target file acquisition module 520, and a file transfer module 530.
The file receiving module 510 is configured to receive at least one file transmitted by the file service component;
the target file obtaining module 520 is configured to obtain, when a file obtaining request sent by a client is received, a target file from the at least one file according to the file obtaining request;
and the file transmission module 530 is configured to transmit the target file to the client in a file stream form.
According to the technical scheme, the at least one file transmitted by the file service component is received, when the file acquisition request sent by the client is received, the target file is acquired from the at least one file according to the file acquisition request, and then the target file is transmitted to the client in the form of a file stream, so that the speed of the server responding to the client after the client sends the file acquisition request to the server can be improved, the problem of interruption of the file transmission process can be avoided, and the stability of the file transmission process can be 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 device according to a sixth embodiment of the present invention, as shown in fig. 6, the computer device 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, one processor 610 being taken as an example in fig. 6; the processor 610, memory 620, input devices 630, and output devices 640 in the computer device may be connected by a bus or other means, for example in fig. 6.
The memory 620 is a computer-readable storage medium, and may be used to store 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., a file service component creation module 410, a data query instruction transmission module 420, and a file generation module 430 in a file transfer device). The processor 610 executes various functional applications of the computer device and data processing, i.e., implements one of the file transfer methods described above, by running software programs, instructions, and modules stored in the memory 620. 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 in 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, which is a computer-readable storage medium, may also be used to store program instructions/modules (e.g., a file receiving module 510, a target file acquiring module 520, and a file transmitting module 530 in a file transmitting apparatus) corresponding to a file transmitting method according to an embodiment of the present invention. The processor 610 executes various functional applications of the computer device and data processing, i.e., implements one of the file transfer methods described above, by running software programs, instructions, and modules stored in the memory 620. 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 the client in the form of a file stream.
Memory 620 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, 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, memory 620 may further include memory remotely located relative to processor 610, which may be connected to the computer device via 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 to generate key signal inputs related to user settings and function control of the computer device, which may include a keyboard, a mouse, and the like. 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 having a computer program stored thereon, where the computer program when executed by a processor implements 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 the related operations in the file transfer 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 in 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 embodiment of the invention provides a computer readable storage medium, which can also execute related operations in another file transmission method provided by any embodiment of the 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 the client in the form of a file stream.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the file transmission device, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (7)
1. A file transfer method, comprising:
acquiring server description information; wherein the server description information comprises a user name, an internet protocol address and a port number of the server;
creating an initialized file service component;
Creating JSch an object in the initialized file service component;
Acquiring a session object from the JSch object, configuring the session object according to the server description information to obtain an updated file service component connected with the server, and deploying the updated file service component in the server;
Sending a data query instruction to a database corresponding to the server through the updated file service component;
And generating a file in a preset text format from the received data through the updated file service component, and transmitting the file to the server in a file stream form.
2. The method of claim 1, further comprising, after configuring the session object according to the server description information:
Establishing a file transmission channel matched with the server description information in the session object;
transmitting, by the updated file service component, the file to a server in a file stream form, including:
And transmitting the file to the server in the form of file stream on the file transmission channel through the updated file service component.
3. A file transmission method applied to a server, comprising:
receiving at least one file transmitted by a file service component in a file transmission method according to claim 1;
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 the client in the form of a file stream.
4. A document transfer apparatus, the apparatus comprising:
The file service component creation module comprises a server description information acquisition unit, a JSch object creation unit and a file service component update unit;
the server description information acquisition unit is used for acquiring server description information; wherein the server description information comprises a user name, an internet protocol address and a port number of the server;
The JSch object creating unit is used for creating an initialized file service component; creating JSch an object in the initialized file service component;
The file service component updating unit is configured to obtain an updated file service component connected with the server by acquiring a session object from the JSch object and configuring the session object according to the server description information, and deploy the updated 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 through the updated file service component;
and the file generation module is used for generating a file with a preset text format from the received data through the updated file service component and transmitting the file to a server in a file stream form.
5. A file transfer device for use with a server, said device comprising:
A file receiving module, configured to receive at least one file transmitted by a file service component in a file transmission method according to claim 1;
The target file acquisition module is used for acquiring a target file from the at least one file according to the file acquisition request when the file acquisition request sent by the client is received;
And the file transmission module is used for transmitting the target file to the client in the form of file stream.
6. A computer device, comprising:
one or more processors;
A storage means for storing one or more programs;
the file transfer method according to any of claims 1-3, when the one or more programs are executed by the one or more processors, such that the one or more processors execute the programs.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a file transfer method as claimed in any one of claims 1-3.
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 CN112559472A (en) | 2021-03-26 |
CN112559472B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112559472B (en) * | 2020-12-07 | 2024-05-14 | 北京锐安科技有限公司 | File transmission method, device, computer equipment and storage medium |
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)
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)
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 |
CN101861576A (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 |
-
2020
- 2020-12-07 CN CN202011437218.5A patent/CN112559472B/en active Active
-
2021
- 2021-10-12 WO PCT/CN2021/123155 patent/WO2022121492A1/en active Application Filing
Patent Citations (5)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN112559472A (en) | 2021-03-26 |
WO2022121492A1 (en) | 2022-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3901806B2 (en) | Information management system and secondary server | |
US9110884B2 (en) | Message publishing and subscribing method and apparatus | |
CN106713391B (en) | Session information sharing method and sharing system | |
CN112559472B (en) | File transmission method, device, computer equipment and storage medium | |
CN111277647B (en) | Block chain network member management method, device, equipment and medium | |
CN101686145A (en) | Equipment capable of upgrading, upgrading method and system | |
CN106445705A (en) | Platform cascading method and system based on Rabbit MQ and Socket.io | |
CN101808051A (en) | Application integration gateway and control method thereof | |
US20050097367A1 (en) | System for providing services for applications available under different protocols | |
CN102594886B (en) | Method and device for direct communication between browsers, and communication system | |
CN113992738A (en) | Reverse proxy method, device, equipment and storage medium based on micro service gateway | |
CN111008254B (en) | Object creation method, device, computer equipment and storage medium | |
US10313230B1 (en) | System and method for unmarshalled routing | |
CN115102857A (en) | Method, device, equipment and storage medium for updating client configuration data | |
WO2022062661A1 (en) | Operation notification method and apparatus, and storage medium and electronic apparatus | |
CN109088918B (en) | Interaction method, client device and server device | |
CN110597783A (en) | Database management method, device, equipment and storage medium | |
CN112069137B (en) | Method, device, electronic equipment and computer readable storage medium for generating information | |
CN110166487B (en) | Local area network equipment information transmission method, main equipment, storage medium and intelligent equipment | |
CN103533017A (en) | Service invoking method and system | |
WO2017000256A1 (en) | Positioning method and corresponding apparatus | |
US9537931B2 (en) | Dynamic object oriented remote instantiation | |
CN104468645A (en) | Control method, electronic equipment, and information transmission method and device | |
CN113014664B (en) | Gateway adaptation method, device, electronic equipment and storage medium | |
CN106487694B (en) | Data stream processing method and device |
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 |