CN114449047A - File data processing method and device - Google Patents

File data processing method and device Download PDF

Info

Publication number
CN114449047A
CN114449047A CN202210105685.0A CN202210105685A CN114449047A CN 114449047 A CN114449047 A CN 114449047A CN 202210105685 A CN202210105685 A CN 202210105685A CN 114449047 A CN114449047 A CN 114449047A
Authority
CN
China
Prior art keywords
target file
server
file
information
user side
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
CN202210105685.0A
Other languages
Chinese (zh)
Other versions
CN114449047B (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.)
Shenzhen Lingdong Innovation Information Technology Co ltd
Original Assignee
Shenzhen Lingdong Innovation Information 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 Shenzhen Lingdong Innovation Information Technology Co ltd filed Critical Shenzhen Lingdong Innovation Information Technology Co ltd
Priority to CN202210105685.0A priority Critical patent/CN114449047B/en
Priority claimed from CN202210105685.0A external-priority patent/CN114449047B/en
Publication of CN114449047A publication Critical patent/CN114449047A/en
Application granted granted Critical
Publication of CN114449047B publication Critical patent/CN114449047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a file data processing method, which is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; the method comprises the following steps: when a calling request initiated by a user side is received, the server sends target file identification information to a configuration center; the configuration center is used for determining target file downloading information according to the target file identification information, and the target file downloading information comprises storage position information; the server generates a downloading request according to the target file identification information and the storage position information and sends the downloading request to the file transmission server; the file transmission server is used for determining a target file according to the target file identification information and the storage position information and sending the target file to the server; the server sends the target file to the user side according to the received file path information. The automatic processing of the file data is realized by adding configuration, and the labor cost is reduced.

Description

File data processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing file data.
Background
The file transfer System (SFTP) is a secure method for transferring files over a network based on a file transfer protocol. The method ensures that private and safe data streams are used for safely transmitting data, and in order to manage the data, the data in a server needs to be stored in a database, and the management of the data is realized through a database management system.
When the business system interfaces with third-party data, the SFTP is mostly used for exchanging system data. The business system and the third party system agree on the content format of data, the format of data file and the encryption and decryption modes, such as: in the register file of the merchant, two parties can agree on basic information such as a merchant number, a merchant name, a merchant mobile phone number, a terminal body number, a register date, a merchant name, an agent number, an agent name and the like. When the service system is used for docking data, the SFTP is required to be connected, the data file under the directory corresponding to the SFTP is downloaded, the data file is analyzed according to the data format agreed by the two parties, and finally the data is stored in a warehouse.
If a business system is connected with dozens or dozens of data files, the data files under the corresponding directories of the SFTP need to be downloaded repeatedly and the SFTP file data needs to be stored in an analyzing way, so that the operation is complex, the labor cost is high, the equipment running speed is slow, and the efficiency of storing the file data is low.
Disclosure of Invention
In view of the above, the present application is proposed to provide a file data processing method and apparatus that overcomes or at least partially solves the above problems, including:
a processing method of file data is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information;
the method comprises the following steps:
when a calling request initiated by the user side is received, the server sends the target file identification information to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
and the server sends the target file to the user side according to the received file path information.
Preferably, before the step of sending the target file to the user side by the server according to the received file path information, the method further includes:
and the server analyzes the target file according to a preset format and checks the target file according to a preset rule.
Preferably, before the step of receiving the call request initiated by the user side, the method further includes:
the server acquires a target file name and a target file directory according to a requirement for a target file initiated by the user side, and the server sends the target file name and the target file directory to the user side; specifically, the user side is configured to generate the call request according to the target file name and the target file directory.
Preferably, the server establishes a connection with the file transfer server, and when the connection is abnormal, the server retries according to a preset requirement.
The method is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information; when receiving a call request initiated by the user side, the server is used for sending the target file identification information to the configuration center;
the method comprises the following steps:
the configuration center determines target file downloading information according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
The device is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information;
the device comprises:
the sending module is used for sending the target file identification information to the configuration center by the server when receiving a calling request initiated by the user side; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the generating module is used for generating a downloading request by the server according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
and the receiving module is used for sending the target file to the user side by the server according to the received file path information.
The device is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information; when receiving a call request initiated by the user side, the server is used for sending the target file identification information to the configuration center;
the device comprises:
the configuration module is used for determining target file downloading information by the configuration center according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
The system is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information;
the system comprises:
the user side is used for initiating a calling request aiming at the target file and sending the calling request to the server;
the server is used for receiving the calling request and sending the calling request to the configuration center;
the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the server is also used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server side;
the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
the server is further configured to send the target file data to the user side according to the received file path information.
To achieve the present application also includes a computer device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, achieves the method according to any one of the above.
The present application also includes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
The application has the following advantages:
in the embodiment of the application, when a call request initiated by the user side is received, the server sends the identification information of the target file to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information; the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; and the server sends the target file to the user side according to the received file path information. The method comprises the steps of storing and downloading files, analyzing the files and storing the files in a warehouse through a database, abstracting and extracting unchanged code height, configuring changed objects in the database, and when other SFTP data files need to be analyzed and stored in the warehouse, only configuring connection information of SFTP in the database, downloading a directory of the files, analyzing the directory of the files and the format of the data files, so that the system can automatically store data in the database, and the whole process is completely automatic; if a business system is connected with dozens or dozens of data files, the method for automatically storing the SFTP file data can be realized by only adding some configurations, the labor cost is reduced, and the availability of the system is provided.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings needed to be used in the description of the present application will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a method for processing document data according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of a method for processing document data according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another step of a method for processing document data according to an embodiment of the present application;
fig. 4 is a block diagram of a device for processing document data according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the method is used for calling a target file in a file transfer server according to a calling request, and the method relates to a user side, a server, a configuration center and the file transfer server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information.
Referring to fig. 1-2, a flowchart illustrating steps of a method for processing file data according to an embodiment of the present application is provided, where the method includes:
s110, when a calling request initiated by the user side is received, the server sends the target file identification information to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
s120, the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
s130, the server sends the target file to the user side according to the received file path information.
In the embodiment of the application, when a call request initiated by the user side is received, the server sends the identification information of the target file to the configuration center; specifically, the configuration center is configured to determine target file downloading information according to the target file identification information, and send the target file downloading information to the server; wherein the target file downloading information comprises storage location information; the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; and the server sends the target file to the user side according to the received file path information. The method comprises the steps of storing and downloading files, analyzing the files and storing the files in a warehouse through a database, abstracting and extracting unchanged code height, configuring changed objects in the database, and when other SFTP data files need to be analyzed and stored in the warehouse, only configuring connection information of SFTP in the database, downloading a directory of the files, analyzing the directory of the files and the format of the data files, so that the system can automatically store data in the database, and the whole process is completely automatic; if a business system is connected with dozens or dozens of data files, the method for automatically storing the SFTP file data can be realized by only adding some configurations, the labor cost is reduced, and the availability of the system is provided.
Next, a processing method of file data in the present exemplary embodiment will be further described.
As stated in step S110, when receiving the call request initiated by the user side, the server sends the target file identification information to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the server acquires a target file name and a target file directory according to a requirement for a target file initiated by the user side, and the server sends the target file name and the target file directory to the user side; specifically, the user side is configured to generate the call request according to the target file name and the target file directory.
The server receives a calling request initiated by the user side and sends the calling request to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server.
In a specific embodiment, the server acquires a target file name and a target file directory according to a requirement for a target file initiated by a user side, and initializes the server to load information; the server sends the target file name and the target file directory to a user side; the user side generates the calling request according to the target file name and the target file directory; the calling request comprises target file identification information and received file path information; when a calling request initiated by the user side is received, the server sends the target file identification information to the configuration center; the configuration center remotely reads the target file identification information sent by the server to determine target file downloading information and sends the target file downloading information to the server; the target file downloading information comprises storage position information, a file name, a file directory, a local directory and a local file name.
It should be noted that the configuration center includes a database, a file or any storage medium, and uniformly configures basic information of a file transfer service terminal (SFTP server) to which the system is docked, such as information of a port, a user name, a password, and the like, to the configuration center, and loads all configuration information when the server is initialized; basic connection information of a user name, a password, a port and the like of a target file transmission server end to be docked by the system is configured in the configuration center, and when the server is started, complete connection information is automatically loaded from a storage medium according to a certain rule and loaded into a memory. Such as: the integrity information may be in the form of a key-value, key: may be the number of the business party, value: may be stored for linked text information + information similar to the file type (user-password-1522 registration).
As stated in step S120, the server generates a download request according to the target file identification information and the storage location information, and sends the download request to the file transfer server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
in the embodiment of the application, when the server receives the target file downloading information sent by the configuration center, a downloading request is generated according to the storage position information in the target file downloading information and the target file identification information, and the downloading request is sent to the file transmission server; when the file transmission server receives the downloading request, the server establishes connection with the file transmission server through basic information of the file transmission server, and the file transmission server determines a target file according to the directory information corresponding to the matching of the target file identification information and the storage position information and downloads the target file to the local server.
It should be noted that, the server establishes a connection with the file transfer server, and when the connection is abnormal, the connection is as follows: and if the network is abnormal when the time is out, the server firstly retries according to a preset requirement, automatically enters a retry mode to retry for 5 times when the abnormal condition occurs, and if no expected condition exists after the retry, an alarm is prompted through the channels of mails, nails and the like, so that manual intervention is performed.
In a specific implementation, when a server receives target file downloading information sent by the configuration center, a downloading request is generated according to storage position information in the target file downloading information and the target file identification information, and the downloading request is sent to the file transmission server; when the file transmission server receives the downloading request, the server establishes connection with the file transmission server through basic information of the file transmission server, and the file transmission server determines a target file according to the directory information corresponding to the matching of the target file identification information and the storage position information and downloads the target file to the local server. Faults occur in the downloading process of the target data file, such as: the file does not exist, the file codes are not correct, the file names are not matched and the like, the file transmission server automatically retries to solve the problem of network jitter, records the log operation of downloading the file at the same time, and can subsequently allow detection software or manual work to process; the log may be a piece of data text describing the operation, and may be stored in a database, file, or other storage medium.
In step S130, the server sends the target file to the user side according to the received file path information.
The server analyzes the target file according to a preset format and checks the target file according to a preset rule.
And the server sends the target file to the user side according to the received file path information.
In the embodiment of the application, the server analyzes the content of the target file downloaded to the local through a file analysis mode set in a file analyzer or defined by a user, and verifies the file format and the correctness of the data content of the target file; and the server verifies and checks the analyzed target file through a data verifier.
In a specific implementation, whether the file name, the file content and the file content format after analysis are generated or downloaded by both communication parties according to an agreement is checked, so that the file content is completely and correctly analyzed, and whether the content format and the value of each column of the content of the file are consistent with the agreed rule is verified; and simultaneously recording the log when the analysis fails, such as: and specific values of specific rows and specific columns of the file are analyzed, so that the checking and the alarming are facilitated.
In a specific implementation, the total number and the actual number of the analyzed target file records are checked by the data verifier, the directory of the remote SFTP file, the directory of the local server, the MD 5 value of the file and other information are checked, so that the warehousing information of the data file can be checked in time when the business system uses data, whether the target file and the file content which is actually downloaded and analyzed are in line with expectations is checked, and data omission is avoided. Such as: and checking the total line number of the file, whether the mandatory field of the file has a value, whether the data format of the file is correct, and the like.
It should be noted that, because the file of the remote target may be in the basic data format, and the downloading party may need to perform local data processing according to the basic data to meet the requirement, the basic data needs to be processed. Such as: the obtained files only have 5 columns, the local service needs 10 columns, and other 5 columns are in other related storage media of the service side, and are automatically matched and stored in a database according to preset rules and identification information.
In the embodiment of the application, the server processes the data after file analysis and verification, stores the processed data in a database or other three-party storage media, and sends the target file data to the user side according to the received file path information, so as to complete the whole automatic processing of the file data.
Referring to fig. 3, a flowchart illustrating steps of a method for processing file data according to another embodiment of the present application is provided, where the method includes:
s310, the configuration center determines target file downloading information according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
Next, a processing method of file data in the present exemplary embodiment will be further described.
As stated in step S310, the configuration center determines target file downloading information according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
In the embodiment of the application, when a calling request initiated by the server according to the requirement of the user side for the target file is received, the configuration center remotely reads the identification information of the target file sent by the server to determine the downloading information of the target file; the configuration center sends the target file downloading information to the server; the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; when the file transmission server receives the downloading request, the server establishes connection with the file transmission server through basic information of the file transmission server, and the file transmission server determines a target file according to the directory information corresponding to the matching of the target file identification information and the storage position information and downloads the target file to the local server; the server analyzes the content of the target file downloaded to the local through a file analysis mode set in the file analyzer or defined by a user, and verifies the file format and the correctness of the data content of the target file; the server verifies and checks the analyzed target file through a data verifier; and the server processes the data content of the target file after file analysis and verification, stores the processed data content into a database or other three-party storage media, and sends the target file to the user side according to the received file path information.
It should be noted that the target file download information includes storage location information, a file name, a file directory, a local directory, and a local file name.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Referring to fig. 4, a block diagram of a device for processing file data according to an embodiment of the present application is shown;
the method specifically comprises the following steps:
a sending module 410, configured to, when receiving a call request initiated by the user side, send, by the server, the target file identification information to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
a generating module 420, configured to generate, by the server, a download request according to the target file identification information and the storage location information, and send the download request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
a receiving module 430, configured to send the target file to the user side by the server according to the received file path information.
In an embodiment of the present invention, before the receiving module 430, the method further includes:
and the analysis and check sub-module is used for analyzing the target file by the server according to a preset format and checking the target file according to a preset rule.
In an embodiment of the present invention, before the sending module 410, the method further includes:
a request generation submodule, configured to obtain, by the server, a target file name and a target file directory according to a request for a target file initiated by the user side, where the server sends the target file name and the target file directory to the user side; specifically, the user side is configured to generate the call request according to the target file name and the target file directory.
In an embodiment of the present invention, the method further includes:
and the connection establishing submodule is used for establishing connection between the server and the file transmission server side, and when the connection is abnormal, the server retries according to a preset requirement.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present application provides a device for processing file data;
the method specifically comprises the following steps:
the configuration module is used for determining target file downloading information by the configuration center according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
The system is used for calling a target file in a file transmission server according to a calling request, and relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the call request includes target file identification information and received file path information, and specifically includes:
the user side is used for initiating a calling request aiming at the target file and sending the calling request to the server;
the server is used for receiving the calling request and sending the calling request to the configuration center;
the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the server is also used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server side;
the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
the server is further configured to send the target file to the user side according to the received file path information.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The present embodiment and the above embodiments have repeated operation steps, and the present embodiment is only described briefly, and the rest of the schemes may be described with reference to the above embodiments.
For the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and reference may be made to the partial description of the method embodiment for relevant points.
Referring to fig. 5, a computer device illustrating a file data processing method according to the present application may specifically include the following:
the computer device 12 described above is embodied in the form of a general purpose computing device, and the components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples various system components including the memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, audio Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory 30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (commonly referred to as "hard drives"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, with the program modules 42 configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules 42, and program data, each of which examples or some combination thereof may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, camera, etc.), with one or more devices that enable an operator to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through the I/O interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN)), a Wide Area Network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As shown in FIG. 5, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
The processing unit 16 executes programs stored in the memory 28 to execute various functional applications and data processing, for example, to implement the processing method of document data provided in the embodiment of the present application.
That is, the processing unit 16 implements, when executing the program,: a method for processing file data.
In the embodiments of the present application, the present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processing method of document data as provided in all embodiments of the present application.
That is, the program when executed by the processor implements: a method for processing file data; the method comprises the following steps: when a calling request initiated by the user side is received, the server sends the target file identification information to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information; the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; and the server sends the target file to the user side according to the received file path information.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the operator's computer, partly on the operator's computer, as a stand-alone software package, partly on the operator's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the operator's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, the statement that "comprises an … …" limits an element does not exclude the presence of other identical elements in the process, method, article, or terminal equipment comprising the element.
The method and the device for processing file data provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A processing method of file data is characterized in that the method is used for calling a target file in a file transmission server according to a calling request, and the method relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information;
the method comprises the following steps:
when a calling request initiated by the user side is received, the server sends the target file identification information to the configuration center; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the server generates a downloading request according to the target file identification information and the storage position information, and sends the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
and the server sends the target file to the user side according to the received file path information.
2. The method for processing document data according to claim 1, wherein before the step of sending the target document to the user side by the server according to the received document path information, the method further comprises:
and the server analyzes the target file according to a preset format and checks the target file according to a preset rule.
3. The method for processing document data according to claim 1, wherein before the step of receiving the call request initiated by the user side, the method further comprises:
the server acquires a target file name and a target file directory according to a requirement for a target file initiated by the user side, and the server sends the target file name and the target file directory to the user side; specifically, the user side is configured to generate the call request according to the target file name and the target file directory.
4. The method for processing the file data according to claim 1, wherein the server establishes a connection with the file transfer server, and when the connection is abnormal, the server retries according to a preset requirement.
5. A processing method of file data is characterized in that the method is used for calling a target file in a file transmission server according to a calling request, and the method relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information; when receiving a call request initiated by the user side, the server is used for sending the target file identification information to the configuration center;
the method comprises the following steps:
the configuration center determines target file downloading information according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
6. The device is characterized in that the device is used for calling a target file in a file transmission server according to a calling request, and the device relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information;
the device comprises:
the sending module is used for sending the target file identification information to the configuration center by the server when receiving a calling request initiated by the user side; the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the generating module is used for generating a downloading request by the server according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
and the receiving module is used for sending the target file to the user side by the server according to the received file path information.
7. The device is characterized in that the device is used for calling a target file in a file transmission server according to a calling request, and the device relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information; when receiving a call request initiated by the user side, the server is used for sending the target file identification information to the configuration center;
the device comprises:
the configuration module is used for determining target file downloading information by the configuration center according to the target file identification information; sending the target file downloading information to the server; the server is used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server; the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server; the server is further configured to send the target file to the user side according to the received file path information.
8. A processing system of file data is characterized in that the system is used for calling a target file in a file transmission server according to a calling request, and the system relates to a user side, a server, a configuration center and the file transmission server; specifically, the configuration center stores basic information of the file transmission server; the user side is used for initiating a calling request aiming at the target file; the calling request comprises target file identification information and received file path information;
the system comprises:
the user side is used for initiating a calling request aiming at the target file and sending the calling request to the server;
the server is used for receiving the calling request and sending the calling request to the configuration center;
the configuration center is used for determining target file downloading information according to the target file identification information and sending the target file downloading information to the server; wherein the target file downloading information comprises storage location information;
the server is also used for generating a downloading request according to the target file identification information and the storage position information and sending the downloading request to the file transmission server side;
the file transmission server is used for determining the target file according to the target file identification information and the storage position information and sending the target file to the server;
the server is also used for sending the target file to the user side according to the received file path information.
9. A computer device comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program, when executed by the processor, implementing the method of any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202210105685.0A 2022-01-28 File data processing method and device Active CN114449047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210105685.0A CN114449047B (en) 2022-01-28 File data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210105685.0A CN114449047B (en) 2022-01-28 File data processing method and device

Publications (2)

Publication Number Publication Date
CN114449047A true CN114449047A (en) 2022-05-06
CN114449047B CN114449047B (en) 2024-09-27

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827243A (en) * 2022-05-18 2022-07-29 上海电气风电集团股份有限公司 Configuration file issuing method, tool, electronic equipment and readable storage medium
CN115134356A (en) * 2022-09-01 2022-09-30 深圳市华曦达科技股份有限公司 Method, system and medium for distributing monitoring node downloads for central node

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014032610A (en) * 2012-08-06 2014-02-20 Asrise Co Ltd Online storage system, management server program, and file control program
CN107306246A (en) * 2016-04-18 2017-10-31 北京市神州百戏文化产业有限公司 Based on the data capture method for accessing key
CN110620807A (en) * 2019-05-14 2019-12-27 北京邮电大学 File transmission method, server, system, device and storage medium
CN110661829A (en) * 2018-06-28 2020-01-07 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium
CN112231603A (en) * 2020-11-02 2021-01-15 深圳市欢太科技有限公司 File downloading method, server, client and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014032610A (en) * 2012-08-06 2014-02-20 Asrise Co Ltd Online storage system, management server program, and file control program
CN107306246A (en) * 2016-04-18 2017-10-31 北京市神州百戏文化产业有限公司 Based on the data capture method for accessing key
CN110661829A (en) * 2018-06-28 2020-01-07 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium
CN110620807A (en) * 2019-05-14 2019-12-27 北京邮电大学 File transmission method, server, system, device and storage medium
CN112231603A (en) * 2020-11-02 2021-01-15 深圳市欢太科技有限公司 File downloading method, server, client and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827243A (en) * 2022-05-18 2022-07-29 上海电气风电集团股份有限公司 Configuration file issuing method, tool, electronic equipment and readable storage medium
CN114827243B (en) * 2022-05-18 2024-03-22 上海电气风电集团股份有限公司 Configuration file issuing method, tool, electronic device and readable storage medium
CN115134356A (en) * 2022-09-01 2022-09-30 深圳市华曦达科技股份有限公司 Method, system and medium for distributing monitoring node downloads for central node
CN115134356B (en) * 2022-09-01 2022-12-06 深圳市华曦达科技股份有限公司 Method, system and medium for distributing monitoring node downloads for central node

Similar Documents

Publication Publication Date Title
CN110580244A (en) file processing method and device, server and storage medium
CN110719590B (en) One-key login method, device, equipment and storage medium based on mobile phone number
CN112685029A (en) Visual template generation method, device, equipment and storage medium
CN112363753A (en) Data verification method and device, electronic equipment and storage medium
CN113760565A (en) Data processing platform, data processing method, storage medium and electronic equipment
CN110244963B (en) Data updating method and device and terminal equipment
CN113384896B (en) Resource packaging method, device, equipment and medium based on Unity
CN112346794A (en) Interface calling method, device, equipment and medium
CN113630253A (en) Login method, device, computer system and readable storage medium
CN110888791A (en) Log processing method, device, equipment and storage medium
CN112084114B (en) Method and apparatus for testing interfaces
CN113886264A (en) Embedded method, device, equipment and storage medium of distributed database
CN113190812A (en) Login method, system, electronic equipment and storage medium
CN112882743A (en) Software upgrading method
CN113132400A (en) Business processing method, device, computer system and storage medium
CN108965108B (en) Message pushing method and related equipment
CN114449047B (en) File data processing method and device
CN114449047A (en) File data processing method and device
CN108052842B (en) Signature data storage and verification method and device
CN113360172B (en) Application deployment method, device, computer equipment and storage medium
CN111737129B (en) Service control method, device, computer readable medium and electronic equipment
CN112395194B (en) Method and device for accessing test platform
CN110597724B (en) Calling method and device of application security test component, server and storage medium
CN112732471B (en) Error correction method and error correction device for interface return data
CN114428815A (en) Data storage method and device, electronic equipment and computer readable 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