CN113660156B - Processing method and device for transmission file, electronic equipment and storage medium - Google Patents

Processing method and device for transmission file, electronic equipment and storage medium Download PDF

Info

Publication number
CN113660156B
CN113660156B CN202110910110.1A CN202110910110A CN113660156B CN 113660156 B CN113660156 B CN 113660156B CN 202110910110 A CN202110910110 A CN 202110910110A CN 113660156 B CN113660156 B CN 113660156B
Authority
CN
China
Prior art keywords
file
content
ofd
target
transmission
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
Application number
CN202110910110.1A
Other languages
Chinese (zh)
Other versions
CN113660156A (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 Nanwan Digital Technology Co.,Ltd.
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110910110.1A priority Critical patent/CN113660156B/en
Publication of CN113660156A publication Critical patent/CN113660156A/en
Application granted granted Critical
Publication of CN113660156B publication Critical patent/CN113660156B/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
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • 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]

Abstract

The application discloses a processing method and device for a transmission file, electronic equipment and a storage medium. The method comprises the following steps: receiving an OFD transmission file sent by a file sender; analyzing the OFD transmission file, and determining the file content carried by the OFD transmission file; determining a corresponding target conversion strategy according to the content type of the file content, and converting the file content into the file content in a specified file format based on the target conversion strategy; and generating a target transmission file according to the file content of the specified file format, and displaying the target transmission file. According to the method and the device, the OFD transmission file is analyzed at the client, different conversion strategies are executed according to different content types, so that operations such as looking up the OFD file inside the client can be realized, the OFD transmission file does not need to be downloaded to the local, and the OFD transmission file is opened by a special reader for reading, so that the time cost is saved.

Description

Processing method and device for transmission file, electronic equipment and storage medium
Technical Field
The present application relates to the field of file processing technologies, and in particular, to a method and an apparatus for processing a transmission file, an electronic device, and a storage medium.
Background
Based on the gradual popularization of domestic electronic invoices, the file format of the electronic invoices is converted into the OFD format through PDF, in the using process of the file format, client software of the national tax administration is required to be downloaded and installed on a computer PC end, corresponding products existing in the current market are integrated, the client software is required to be downloaded and used, on the client product, C + + or C # or Swing is adopted for development based on the QT self-contained drawing technology on the upper layer, and the font, the word number, the color, the line, the format and the original layout of the OFD file are processed and displayed on a user layer by combining a Windows system compatible mode and the chrome multi-process rendering. The tool does not have daily conventional functional services such as file storage, format conversion, new creation, editing, file combination, file encryption, authority control and the like. Combined with the gradual promotion of national electronic accounting archives, under the promotion of paperless reimbursement scenes, the application of the whole OFD file format scene is gradually increased, including government and enterprise departments, more personalized demand scenes can be radiated in the using process of a user, and a large amount of maintenance and technical investment can be generated in the aspects of application upgrading, extensibility and flexibility of a traditional client program.
At present, in the process of implementing the present invention, the inventor finds that after a sender sends an OFD file in an attachment form through an enterprise mailbox (such as Foxmail, ali mailbox, internet mailbox, etc.), a receiver cannot preview the OFD file, the OFD file needs to be downloaded, and then the OFD file is consulted through a special reader, which results in long time consumption in the file consulting process.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the application provides a method and a device for processing a transmission file, an electronic device and a storage medium.
According to an aspect of the embodiments of the present application, there is provided a method for processing a transmission file, including:
receiving an OFD transmission file sent by a file sender;
analyzing the OFD transmission file, and determining the file content carried by the OFD transmission file;
determining a corresponding target conversion strategy according to the content type of the file content, and converting the file content into the file content in a specified file format based on the target conversion strategy;
and generating a target transmission file according to the file content of the specified file format, and displaying the target transmission file.
Further, before parsing the OFD transmission file and determining the file content carried by the OFD transmission file, the method further includes:
under the condition that the OFD transmission file is detected to carry encryption information, acquiring decryption information for decrypting the OFD transmission file, wherein the decryption information is generated by a file sender corresponding to the OFD transmission file;
and decrypting the OFD transmission file by using the decryption information to obtain an original OFD transmission file.
Further, the obtaining decryption information for decrypting the OFD transmission file includes:
generating a query request according to first identity information of a file receiver and second identity information of the file sender;
sending the query request to a server, so that the server acquires a public and private key pair generated by the file sender and authority information corresponding to the public and private key pair from an encryption and decryption information base according to second identity information carried by the query request, and taking a public key in the public and private key pair as the decryption information and sending the decryption information to the file receiver under the condition that the first identity information meets the authority information;
and receiving the decryption information fed back by the server.
Further, the analyzing the OFD transmission file and determining the file content carried by the OFD transmission file includes:
acquiring a root file in the OFD transmission file and a file directory corresponding to the root file;
acquiring a content storage path from the file directory;
and extracting the file content of the OFD transmission file based on the content storage path.
Further, the determining a corresponding target conversion policy according to the content type of the file content includes:
determining a content type corresponding to the file content, and determining a conversion strategy set corresponding to the content type according to a corresponding relation between a preset content type and a conversion strategy, wherein the conversion strategy set comprises: at least one candidate file format and a conversion process corresponding to the candidate file format, wherein the candidate file format is a format supported by the file receiver;
acquiring demand information corresponding to the OFD transmission file;
determining a file format matched with the requirement information in the candidate file formats as the specified file format, and determining a conversion process corresponding to the specified file format as a target conversion process;
and obtaining the target conversion strategy based on the specified file format and the target conversion process.
Further, after converting the file content to file content in a specified file format based on the target conversion policy, the method further comprises:
determining the security level of the file content according to the requirement information;
and determining the file content with the security level greater than the preset security level as target file content, and locking the target file content.
Further, after generating a target transmission file according to the file content of the specified file format and displaying the target transmission file, the method further comprises:
monitoring an updating event acting on the target transmission file;
under the condition that the target transmission file is determined to be updated according to the updating event, encrypting the updated target transmission file to obtain an encrypted target transmission file;
acquiring a processing terminal corresponding to the encrypted target transmission file;
and sending the encrypted target transmission file to the processing terminal.
According to still another aspect of the embodiments of the present application, there is provided a processing apparatus for transmitting a file, including:
the reading module is used for receiving an OFD transmission file sent by a file sending party;
the analysis module is used for analyzing the OFD transmission file and determining the file content carried by the OFD transmission file;
the determining module is used for determining a corresponding target conversion strategy according to the content type of the file content and converting the file content into the file content in the specified file format based on the target conversion strategy;
and the generating module is used for generating a target transmission file according to the file content of the specified file format and displaying the target transmission file.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method and the device, the OFD transmission file is analyzed at the client, different conversion strategies are executed according to different content types, so that operations such as looking up the OFD file inside the client can be realized, the OFD transmission file does not need to be downloaded to the local, and the OFD transmission file is opened by a special reader for reading, so that the time cost is saved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a flowchart of a processing method for transmitting a file according to an embodiment of the present application;
fig. 2 is a flowchart of a processing method for transferring a file according to another embodiment of the present application;
fig. 3 is a block diagram of a processing apparatus for transferring a file according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a processing method and device for a transmission file, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any required electronic equipment, for example, the electronic equipment can be electronic equipment such as a server and a client, and the method is not particularly limited herein, and is hereinafter simply referred to as electronic equipment for convenience in description.
According to an aspect of the embodiments of the present application, a method implementation of a processing method for a transmission file is provided. Fig. 1 is a flowchart of a processing method for a transmission file according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step S11, receiving the OFD transmission file sent by the file sending party.
In the embodiment of the application, a transmission file sent by a file sending party is firstly obtained, the file name of the transmission file is extracted, the file extension name of the transmission file is determined from the file name, and the transmission file is determined as the OFD transmission file according to the condition that the file extension name belongs to the OFD format. The file sender can be a sender mailbox, and the OFD transmission file can be an electronic invoice and other files in an OFD format.
And step S12, analyzing the OFD transmission file and determining the file content carried by the OFD transmission file.
In this embodiment of the present application, before parsing the OFD transmission file and determining the file content carried by the OFD transmission file, the method further includes the following steps A1 to A3:
a1, under the condition that encryption information is detected to be carried in the OFD transmission file, acquiring decryption information for decrypting the OFD transmission file, wherein the decryption information is generated by a file sender corresponding to the OFD transmission file;
in the embodiment of the present application, a file receiving party invokes an internal OFD reader, and uses the OFD reader to detect an OFD transmission file, and determines whether the OFD transmission file carries encryption information, where the encryption information may be obtained by encrypting the OFD transmission file before a file sending party sends the OFD transmission file.
Specifically, the file sender stores task information of the OFD transmission file, and the task information includes: at least one file receiver corresponding to the OFD transmission file and authority information corresponding to the file receiver, wherein the authority information comprises: identity information of the file receiver and corresponding operation authority of the file receiver. The file sender randomly generates a plurality of different public and private key pairs before encryption according to the authority information, then encrypts the OFD transmission file by using the public key, and sends the public and private key pairs and the authority information to the server.
As an example, the file sender determines the importance degree of the file content in the OFD transmission file, and encrypts the OFD transmission file when the importance degree is greater than or equal to the preset importance degree, where the encryption method may be to convert the content of the target file into a target character by using a preset encryption method, and carry the target character in the OFD transmission file for sending.
In this embodiment of the present application, the step A1 of obtaining decryption information for decrypting file content includes the following steps a201 to a203:
step A201, a query request is generated according to the first identity information of the file receiver and the second identity information of the file sender.
In the embodiment of the application, first identity information of a file receiver is acquired, and second identity information of a file sender corresponding to an OFD transmission file is acquired, where the first identity information and the second identity information may be mailbox account information and the like.
Step A202, sending an inquiry request to a server, so that the server obtains a public and private key pair generated by a file sender and authority information corresponding to the public and private key pair from an encryption and decryption information base according to second identity information carried by the inquiry request, and taking a public key in the public and private key pair as decryption information and sending the decryption information to a file receiver under the condition that the first identity information meets the authority information.
In this embodiment of the present application, after generating an inquiry request, a receiver sends the inquiry request to a server, where an encryption/decryption information base is stored in the server, and the encryption/decryption information base includes: and the key pair comprises a plurality of public and private key pairs and authority information corresponding to each public and private key pair. After receiving the query request, the server acquires the public and private key pair and the authority information corresponding to the file sender according to the second identity information, at this time, the server queries whether the authority information includes the first identity information, if so, queries the operation authority corresponding to the first identity information from the authority information, and sends a public key in the public and private key pair corresponding to the operation authority as decryption information to the file receiver.
Step A203, receiving the decryption information fed back by the server.
In the embodiment of the application, by ensuring the security of the OFD transmission file, the file sender can generate a plurality of public and private key pairs according to the authority information and send the authority information and the public and private key pairs to the server, so that the file receiver can authenticate the server after receiving the encrypted OFD transmission file, and the server can issue a corresponding public key according to the corresponding authority of the file receiver. And finally, the safety of OFD transmission files is effectively ensured.
And A2, decrypting the OFD transmission file by using the decryption information to obtain an original OFD transmission file.
In the embodiment of the present application, after decrypting the encrypted file content by using the public key, the file receiver may obtain the original OFD transmission file, and may analyze the original OFD transmission file.
In this embodiment of the present application, in step S12, parsing the OFD transmission file and determining the file content carried by the OFD transmission file includes the following steps B1 to B3:
and step B1, acquiring a root file in the OFD transmission file and a file directory corresponding to the root file.
And step B2, acquiring a content storage path from the file directory.
And step B3, extracting the file content of the OFD transmission file based on the content storage path.
In this embodiment of the present application, a main entry file corresponding to the OFD transfer file is first determined, a root file is found from the main entry file, where the root file carries an index (i.e., a content storage path) for storing file content, and after the content storage path is found, the file content of the OFD transfer file can be extracted according to the content storage path. For example: the file content comprises: price tax amount, invoice code, invoice number, amount of money amount, billing date, purchaser name, purchaser taxpayer identification number, seller name, seller taxpayer identification number, and the like.
And S13, determining a corresponding target conversion strategy according to the content type of the file content, and converting the file content into the file content in the specified file format based on the target conversion strategy.
In the embodiment of the present application, step S13, determining a corresponding target transformation policy according to the content type of the file content, includes the following steps C1 to C4:
step C1, determining a content type corresponding to the file content, and determining a conversion strategy set corresponding to the content type according to the corresponding relation between the preset content type and the conversion strategy, wherein the conversion strategy set comprises: at least one candidate file format and a conversion process corresponding to the candidate file format, wherein the candidate file format is a format supported by a file receiver.
In the embodiment of the present application, the content type corresponding to the file content may be a text type, a picture type, and the like. Each content type corresponds to a conversion policy, for example: the conversion strategy of the text type comprises the following steps: doc format, xls format, txt format, etc., where each format corresponds to a conversion process. Taking doc format as an example, the conversion strategy corresponding to the format is: and converting the transmission file in the OFD format into the transmission file in the XML format, formatting the transmission file in the XML format, changing the file extension name into the FTL, and then rendering by adopting a free marker to obtain the file in the doc format.
And step C2, acquiring the demand information corresponding to the OFD transmission file.
In this embodiment of the present application, the requirement information corresponding to the OFD transmission file may be information input by a worker, and the requirement information includes: the application scenario or usage of the OFD transmission file, etc., such as electronic invoice reimbursement, auditing or statistics, etc.
And step C3, determining the file format matched with the requirement information in the candidate file formats as the specified file format, and determining the conversion process corresponding to the specified file format as the target conversion process.
In the embodiment of the application, the specified file format corresponding to the request information of the OFD transmission file is queried from the corresponding relationship by obtaining the corresponding relationship between the preset file format and the request information. For example: when the requirement information is statistics, specifying a file format xls format; and when the requirement information is audit, designating the file format as doc format.
And step C4, obtaining a target conversion strategy based on the specified file format and the target conversion process.
And step S14, generating a target transmission file according to the file content of the specified file format, and displaying the target transmission file.
According to the method and the device, the OFD transmission file is analyzed at the client, different conversion strategies are executed according to different content types, so that operations such as looking up the OFD file inside the client can be realized, the OFD transmission file does not need to be downloaded to the local, and the OFD transmission file is opened by a special reader for reading, so that the time cost is saved.
In an embodiment of the present application, after converting the file content into the file content in the specified file format based on the target conversion policy, the method further includes the following steps D1-D2:
and D1, determining the security level of the file content according to the requirement information.
In the embodiment of the application, for different requirement information, the security levels of the corresponding file contents are also different. The security level of the file content may be preset by a worker.
As one example, the content in the electronic invoice includes: price tax amount, invoice code, invoice number, amount of money amount, date of invoicing, purchaser name, purchaser taxpayer identification number, seller name, seller taxpayer identification number, etc. When the demand information is checked, the price and tax amount is counted up, the invoice code, the invoice number, the amount of the sum, the safety level corresponding to the invoicing date is in three levels, the name of the buyer, the taxpayer identification number of the buyer, the name of the seller, and the safety level corresponding to the taxpayer identification number of the seller are in two levels. When the demand information is statistics, the price and tax amount is counted, the invoice code, the invoice number, the amount of the sum, the safety level corresponding to the invoicing date is the first level, the name of the buyer, the taxpayer identification number of the buyer, the name of the seller, and the safety level corresponding to the taxpayer identification number of the seller are the second level.
And D2, determining the file content with the security level greater than the preset security level as the target file content, and locking the target file content.
In the embodiment of the application, after the requirement information of the OFD transmission file is determined, the security level corresponding to the requirement information can be directly determined. And determining the file content with the security level greater than the preset security level as the target file content, and locking the target file content.
As an example, when the demand information is statistical, data corresponding to the price tax amount, the invoice code, the invoice number, the total amount, and the invoice date are locked in the electronic invoice when the security level corresponding to the price tax amount, the invoice code, the invoice number, the total amount, and the invoice date is one level and is two levels higher than the preset security level.
According to the electronic invoice security method and device, the security level corresponding to the requirement information is set, and the file content of which the security level is greater than the preset security level is locked, so that the electronic invoice is effectively prevented from being tampered, and the security of the electronic invoice is effectively improved.
In this embodiment of the present application, after generating a target transmission file according to file content in a specified file format and displaying the target transmission file, the method further includes:
step S21, monitoring the updating event acted on the target transmission file.
In the embodiment of the application, when the user operates the target transmission file, the update event is triggered, so that whether the user operates the target transmission file can be determined by monitoring the monitoring event of the target transmission file.
And S22, encrypting the updated target transmission file to obtain the encrypted target transmission file under the condition that the target transmission file is determined to be updated according to the updating event.
In the embodiment of the application, the updated target transmission file is encrypted, so that the updated file content in the target transmission file can be prevented from being tampered, and the safety of the target transmission file can be effectively ensured.
And step S23, acquiring the processing terminal corresponding to the encrypted target transmission file.
And step S24, sending the encrypted target transmission file to the processing terminal.
In this embodiment of the present application, a specific process of obtaining a processing terminal corresponding to an encrypted target transmission file includes: and sending a task query request to a file sending party, wherein the task query request carries a file identifier of the OFD transmission file and identity information (such as a file name) of a file receiving party, and after the file sending party receives the task query request, confirming that task information corresponding to the OFD transmission file can be obtained according to the file identifier, obtaining a terminal identifier of a processing terminal corresponding to a target transmission file after encryption from the task information, and feeding back the terminal identifier to the file receiving party. At this time, the file receiver sends the encrypted processing terminal corresponding to the target transmission file to the processing terminal corresponding to the terminal identifier.
Fig. 3 is a block diagram of a processing apparatus for transmitting a file according to an embodiment of the present application, where the apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 3, the apparatus includes:
the reading module 31 is configured to receive an OFD transmission file sent by a file sending party.
And the analyzing module 32 is configured to analyze the OFD transmission file and determine file content carried by the OFD transmission file.
And the determining module 33 is configured to determine a corresponding target conversion policy according to the content type of the file content, and convert the file content into the file content in the specified file format based on the target conversion policy.
And the generating module 34 is used for generating the target transmission file according to the file content of the specified file format and displaying the target transmission file.
In an embodiment of the present application, the apparatus further includes: a decryption module, comprising:
the obtaining submodule is used for obtaining decryption information for decrypting the OFD transmission file under the condition that the OFD transmission file is detected to carry encryption information, wherein the decryption information is generated by a file sending party corresponding to the OFD transmission file;
and the processing submodule is used for decrypting the OFD transmission file by using the decryption information to obtain an original OFD transmission file.
In an embodiment of the application, the obtaining sub-module is configured to generate a query request according to the first identity information of the file receiver and the second identity information of the file sender. Sending a query request to a server so that the server acquires a public and private key pair generated by a file sender and authority information corresponding to the public and private key pair from an encryption and decryption information base according to second identity information carried by the query request, and taking a public key in the public and private key pair as decryption information and sending the decryption information to a file receiver under the condition that the first identity information meets the authority information; and receiving the decryption information fed back by the server.
In this embodiment of the present application, the parsing module 62 is configured to obtain a root file in the OFD transmission file and a file directory corresponding to the root file, obtain a content storage path from the file directory, and extract file content of the OFD transmission file based on the content storage path.
In this embodiment of the present application, the determining module 63 is configured to determine a content type corresponding to a file content, and determine a conversion policy set corresponding to the content type according to a correspondence between a preset content type and a conversion policy, where the conversion policy set includes: at least one candidate file format and a conversion process corresponding to the candidate file format, wherein the candidate file format is a format supported by a file receiver. And acquiring the demand information corresponding to the OFD transmission file. And determining the file format matched with the requirement information in the candidate file formats as an appointed file format, and determining a conversion process corresponding to the appointed file format as a target conversion process. And obtaining a target conversion strategy based on the specified file format and the target conversion process.
In an embodiment of the present application, the apparatus further includes: and the locking module is used for determining the security level of the file content according to the requirement information. And determining the file content with the security level greater than the preset security level as the target file content, and locking the target file content.
In an embodiment of the present application, the apparatus further includes: and the monitoring module is used for monitoring the update event acting on the target transmission file. And under the condition that the target transmission file is determined to be updated according to the updating event, encrypting the updated target transmission file to obtain the encrypted target transmission file. And determining a processing terminal corresponding to the encrypted target transmission file based on the task information. And sending the encrypted target transmission file to a processing terminal.
An embodiment of the present application further provides an electronic device, as shown in the figure, the electronic device may include: a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above-mentioned client terminal may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the client and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the processing method of the transmission file in any one of the above embodiments.
In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the processing method of the transmission file described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A processing method for a transmission file is characterized by comprising the following steps:
receiving an OFD transmission file sent by a file sender;
analyzing the OFD transmission file, and determining the file content carried by the OFD transmission file;
determining a corresponding target conversion strategy according to the content type of the file content, and converting the file content into the file content in a specified file format based on the target conversion strategy;
generating a target transmission file according to the file content of the specified file format, and displaying the target transmission file;
the determining of the corresponding target conversion strategy according to the content type of the file content comprises:
determining a content type corresponding to the file content, and determining a conversion strategy set corresponding to the content type according to a corresponding relation between a preset content type and a conversion strategy, wherein the conversion strategy set comprises: at least one candidate file format and a conversion process corresponding to the candidate file format, wherein the candidate file format is a format supported by a file receiver;
acquiring demand information corresponding to the OFD transmission file;
determining a file format matched with the requirement information in the candidate file formats as the specified file format, and determining a conversion process corresponding to the specified file format as a target conversion process;
obtaining the target conversion strategy based on the specified file format and the target conversion process;
after converting the file content to file content in a specified file format based on the target conversion policy, the method further comprises:
determining the security level of the file content according to the requirement information;
and determining the file content with the security level greater than the preset security level as target file content, and locking the target file content.
2. The method according to claim 1, wherein before parsing the OFD transfer file and determining the file contents carried by the OFD transfer file, the method further comprises:
acquiring decryption information for decrypting the OFD transmission file under the condition that the OFD transmission file is detected to carry encryption information, wherein the decryption information is generated by a file sender corresponding to the OFD transmission file;
and decrypting the OFD transmission file by using the decryption information to obtain an original OFD transmission file.
3. The method according to claim 2, wherein the obtaining decryption information for decrypting the OFD transmission file comprises:
generating a query request according to first identity information of a file receiver and second identity information of the file sender;
sending the query request to a server so that the server acquires a public and private key pair generated by the file sender and authority information corresponding to the public and private key pair from an encryption and decryption information base according to second identity information carried by the query request, and taking a public key in the public and private key pair as the decryption information and sending the decryption information to the file receiver under the condition that the first identity information meets the authority information;
and receiving the decryption information fed back by the server.
4. The method according to claim 1, wherein the parsing the OFD transmission file and determining the file contents carried by the OFD transmission file comprises:
acquiring a root file in the OFD transmission file and a file directory corresponding to the root file;
acquiring a content storage path from the file directory;
and extracting the file content of the OFD transmission file based on the content storage path.
5. The method of claim 1, wherein after generating a target transmission file from the file content of the specified file format and displaying the target transmission file, the method further comprises:
monitoring an updating event acting on the target transmission file;
under the condition that the target transmission file is determined to be updated according to the updating event, encrypting the updated target transmission file to obtain an encrypted target transmission file;
acquiring a processing terminal corresponding to the encrypted target transmission file;
and sending the encrypted target transmission file to the processing terminal.
6. A processing apparatus for transferring a file, comprising:
the reading module is used for receiving an OFD transmission file sent by a file sending party;
the analysis module is used for analyzing the OFD transmission file and determining the file content carried by the OFD transmission file;
the determining module is used for determining a corresponding target conversion strategy according to the content type of the file content and converting the file content into the file content in the specified file format based on the target conversion strategy;
the generating module is used for generating a target transmission file according to the file content of the specified file format and displaying the target transmission file;
the determining module is configured to determine a content type corresponding to the file content, and determine a conversion policy set corresponding to the content type according to a correspondence between a preset content type and a conversion policy, where the conversion policy set includes: at least one candidate file format and a conversion process corresponding to the candidate file format, wherein the candidate file format is a format supported by a file receiver; acquiring demand information corresponding to an OFD transmission file; determining a file format matched with the requirement information in the candidate file formats as an appointed file format, and determining a conversion process corresponding to the appointed file format as a target conversion process; obtaining a target conversion strategy based on the specified file format and the target conversion process;
the device further comprises: the locking module is used for determining the security level of the file content according to the requirement information; and determining the file content with the security level greater than the preset security level as the target file content, and locking the target file content.
7. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 5.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any one of claims 1-5 by executing a program stored on a memory.
CN202110910110.1A 2021-08-09 2021-08-09 Processing method and device for transmission file, electronic equipment and storage medium Active CN113660156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110910110.1A CN113660156B (en) 2021-08-09 2021-08-09 Processing method and device for transmission file, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110910110.1A CN113660156B (en) 2021-08-09 2021-08-09 Processing method and device for transmission file, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113660156A CN113660156A (en) 2021-11-16
CN113660156B true CN113660156B (en) 2022-10-21

Family

ID=78478637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110910110.1A Active CN113660156B (en) 2021-08-09 2021-08-09 Processing method and device for transmission file, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113660156B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285839B (en) * 2021-12-23 2023-11-10 北京天融信网络安全技术有限公司 File transmission method and device, computer storage medium and electronic equipment
CN115033907B (en) * 2022-07-19 2022-11-01 北京护城河科技有限公司 Data interaction method, system, device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106205A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Method and device for browsing files on mobile terminal
CN105245337A (en) * 2015-10-30 2016-01-13 南京未来网络产业创新有限公司 Improved file encryption and decryption method
CN106934442A (en) * 2017-03-27 2017-07-07 百望电子发票数据服务有限公司 A kind of barcode scanning collects the method and system of electronic invoice
WO2017175266A1 (en) * 2016-04-04 2017-10-12 株式会社日立製作所 Transfer planning method, computer, and computer system
CN111694795A (en) * 2020-05-07 2020-09-22 深圳市连用科技有限公司 File online preview method, device, terminal and medium
CN111897777A (en) * 2020-06-22 2020-11-06 百望股份有限公司 Method, device and equipment for processing electronic invoice layout file and storage medium
CN112597523A (en) * 2021-03-02 2021-04-02 冷杉云(北京)科技股份有限公司 File processing method, file conversion encryption machine, terminal, server and medium
CN112612750A (en) * 2020-12-15 2021-04-06 北京天融信网络安全技术有限公司 File content processing method and device, electronic equipment and readable storage medium
CN112783833A (en) * 2020-12-31 2021-05-11 航天信息股份有限公司 Analysis system and device for OFD format invoice file

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1107152A3 (en) * 1999-12-03 2007-08-29 Citibank, N.A. Method and system for managing communication of information
CN106528744A (en) * 2016-10-28 2017-03-22 宁德时代新能源科技股份有限公司 Format conversion method and system
US20220147641A1 (en) * 2019-02-28 2022-05-12 Huawei Technologies Co., Ltd. File processing method and terminal device
CN112689197B (en) * 2019-10-18 2022-07-08 腾讯科技(深圳)有限公司 File format conversion method and device and computer storage medium
CN111767698B (en) * 2020-07-07 2021-02-05 江苏中威科技软件系统有限公司 Electronic form system based on OFD format file technology

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106205A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Method and device for browsing files on mobile terminal
CN105245337A (en) * 2015-10-30 2016-01-13 南京未来网络产业创新有限公司 Improved file encryption and decryption method
WO2017175266A1 (en) * 2016-04-04 2017-10-12 株式会社日立製作所 Transfer planning method, computer, and computer system
CN106934442A (en) * 2017-03-27 2017-07-07 百望电子发票数据服务有限公司 A kind of barcode scanning collects the method and system of electronic invoice
CN111694795A (en) * 2020-05-07 2020-09-22 深圳市连用科技有限公司 File online preview method, device, terminal and medium
CN111897777A (en) * 2020-06-22 2020-11-06 百望股份有限公司 Method, device and equipment for processing electronic invoice layout file and storage medium
CN112612750A (en) * 2020-12-15 2021-04-06 北京天融信网络安全技术有限公司 File content processing method and device, electronic equipment and readable storage medium
CN112783833A (en) * 2020-12-31 2021-05-11 航天信息股份有限公司 Analysis system and device for OFD format invoice file
CN112597523A (en) * 2021-03-02 2021-04-02 冷杉云(北京)科技股份有限公司 File processing method, file conversion encryption machine, terminal, server and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Information Retrieval System for Searching JSON Files with Vector Space Model Method";Eko Wahyudi,等;《2019 International Conference of Artificial Intelligence and Information Technology (ICAIIT)》;20190912;全文 *
"电子证照管理系统的设计与实现";李新帅;《中国优秀硕士学位论文全文数据库信息科技辑》;20190515;全文 *

Also Published As

Publication number Publication date
CN113660156A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US20220366019A1 (en) Method and system for verifying ownership of a digital asset using a distributed hash table and a peer-to-peer distributed ledger
US8572049B2 (en) Document authentication
CN113660156B (en) Processing method and device for transmission file, electronic equipment and storage medium
EP1336272B1 (en) Processing content for electronic distribution using a digital rights management system
US20130275765A1 (en) Secure digital document distribution with real-time sender control of recipient document content access rights
CN111581653A (en) Contract document signing method, device, equipment and computer readable storage medium
US10282525B2 (en) Information processing system, information processing apparatus, access control method, and program
CN101388096A (en) Multi-platform data standardization processing method and system
CN110839004A (en) Method and device for access authentication
KR20060084032A (en) Electronic document management system and it's operating method
US20210400109A1 (en) Systems and methods for distributing electronic documents
US9378338B1 (en) System, method, and computer program for validating receipt of digital content by a client device
CN111125785A (en) Account checking method based on block chain, account checking device and readable storage medium
KR102281338B1 (en) Menagement system of product safety information
CN113935059B (en) Dynamic encryption method and device suitable for financial data and storage medium
CN111145031B (en) Insurance business customization method, device and system
EP3940611A1 (en) Personal information management system, personal information management device, and personal information management method
CN113064562A (en) Man-machine interaction printing method and system based on block chain
CN116150234A (en) Block chain-based data certification method, device, equipment and medium
WO2015153373A1 (en) Digital content delivery
JP7190477B2 (en) Electronic document management device and electronic document management program
JP4834924B2 (en) Electronic form input support device, program, electronic form program, and platform
CN116472694A (en) System and method for generating, protecting and maintaining digital tokens of emoticon sequence
CN114298698A (en) Transaction settlement method and device
CN109582720B (en) Data storage method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231204

Address after: 518000 TCL Building A517, No. 006 Gaoxin South 1st Road, Gaoxin Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Nanwan Digital Technology Co.,Ltd.

Address before: 518000 701, No. 16, Leping street, Nantou ancient city, Nantou street, Nanshan District, Shenzhen, Guangdong

Patentee before: Qin Fei

TR01 Transfer of patent right