[go: up one dir, main page]

CN110569492A - Online document generation method with attachment and server - Google Patents

Online document generation method with attachment and server Download PDF

Info

Publication number
CN110569492A
CN110569492A CN201910846537.2A CN201910846537A CN110569492A CN 110569492 A CN110569492 A CN 110569492A CN 201910846537 A CN201910846537 A CN 201910846537A CN 110569492 A CN110569492 A CN 110569492A
Authority
CN
China
Prior art keywords
attachment
online document
document
client
online
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910846537.2A
Other languages
Chinese (zh)
Inventor
廖加嘉
刘伟
庞良
刁水带
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910846537.2A priority Critical patent/CN110569492A/en
Publication of CN110569492A publication Critical patent/CN110569492A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

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

Abstract

The invention provides an online document generation method with an attachment and a server, wherein the method comprises the following steps: receiving an attachment of an online document uploaded by a client; generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name; correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format. The server is used for executing the method. The online document generation method with the attachment and the server provided by the embodiment of the invention improve the efficiency of the attachment transmission of the online document.

Description

online document generation method with attachment and server
Technical Field
The invention relates to the technical field of computers, in particular to an online document generation method with an attachment and a server.
Background
With the rapid development of computer and network technologies, document editing using computer and network technologies has been widely used.
In the prior art, documents can be edited online through a browser, and the edited online documents can be published online or downloaded locally. However, at present, an attachment cannot be embedded in an online document, and a document with the attachment cannot be generated when the online document is converted into a local document. With the need of business development, a method for online editing of document embedded attachments is a problem to be solved urgently in the industry.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiments of the present invention provide an online document generation method with an attachment and a server, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides a method for generating an online document with an attachment, including:
receiving an attachment of an online document uploaded by a client;
Generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name;
Correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
In another aspect, the present invention provides a server, comprising:
the first receiving unit is used for receiving an attachment of an online document uploaded by a client;
The configuration unit is used for generating a hash value of the attachment and configuring the attachment attribute identification of the online document according to the hash value of the attachment and the attachment name;
the storage unit is used for correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the online document generation method with an attachment according to any of the above embodiments.
In still another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the online document generation method with attachment described in any of the above embodiments.
According to the online document generation method and device with the attachment, the attachment of the online document uploaded by the client is received, the hash value of the attachment is generated, the attachment attribute identification of the online document is configured according to the hash value of the attachment and the attachment name, the online document and the attachment are stored correspondingly, the attachment is stored in a binary data format, the attachment is embedded into the online document, the online document and the attachment do not need to be transmitted respectively, and the attachment transmission efficiency of the online document is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
Fig. 1 is a flowchart illustrating an online document generating method with an attachment according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an online document generating method with an attachment according to another embodiment of the present invention.
Fig. 3 is a flowchart illustrating an online document generating method with an attachment according to another embodiment of the present invention.
Fig. 4 is a flowchart illustrating an online document generating method with an attachment according to still another embodiment of the present invention.
Fig. 5 is a flowchart of an online document generation system with an attachment according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
fig. 7 is a schematic structural diagram of a server according to another embodiment of the present invention.
fig. 8 is a schematic structural diagram of a server according to another embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a server according to still another embodiment of the present invention.
fig. 10 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a flowchart illustrating a method for generating an online document with an attachment according to an embodiment of the present invention, and as shown in fig. 1, the method for generating an online document with an attachment according to an embodiment of the present invention includes:
S101, receiving an attachment of an online document uploaded by a client;
specifically, when a user edits an online document on a client, an attachment may be embedded into the online document in a manner of dragging or shortcut key copying, the client may receive the attachment, and then upload the attachment to a server as an attachment of the online document, and the server may receive the attachment of the online document uploaded by the client. The online document refers to a document which can be edited online. The attachments can be in the formats of a compressed package, a pdf file, a text file and the like, and are uploaded according to actual needs, which is not limited in the embodiment of the present invention. The client includes, but is not limited to, an electronic device such as a desktop, a notebook, a smart phone, and a tablet. The execution subject of the online document generation method with the attachment provided by the embodiment of the invention includes but is not limited to a server. It is understood that the online document may be edited by a single user, or may be edited online by multiple users at the same time, and the embodiment of the present invention is not limited thereto.
S102, generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name;
Specifically, after receiving an attachment of the online document, the server generates a hash value of the attachment, and then corresponds the hash value and the attachment name of the attachment to an attachment attribute identifier of the online document, where the attachment attribute identifier is preset, and when the attachment attribute identifier is configured in the online document, it indicates that the attachment is embedded in the online document. Wherein the hash value of the accessory can be generated from binary data of the accessory.
S103, correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
specifically, after the user finishes editing the online document on the client, the client sends the online document to the server, and the server stores the online document and stores the online document in correspondence with an attachment of the online document. Wherein the attachment is stored in a binary data format.
For example, the server stores the online document in tree-structured data, the storage format of the online document is html format, the storage format of the attachment is binary data format, the attachment attribute identifier of the online document is stored in correspondence with the hash value and the attachment name of the attachment, and the hash value and the attachment name of the attachment are in correspondence with the binary data of the attachment. It is to be appreciated that the server can store the online document and the attachment in a database.
according to the online document generation method with the attachment, the attachment of the online document uploaded by the client is received, the hash value of the attachment is generated, the attachment attribute identification of the online document is configured according to the hash value of the attachment and the attachment name, the online document and the attachment are stored correspondingly, the attachment is stored in a binary data format, the attachment is embedded into the online document, the online document and the attachment do not need to be transmitted respectively, and the attachment transmission efficiency of the online document is improved.
fig. 2 is a schematic flow chart of a method for generating an online document with an attachment according to another embodiment of the present invention, and as shown in fig. 2, on the basis of the foregoing embodiments, the method for generating an online document with an attachment according to an embodiment of the present invention further includes:
S104, acquiring the online document, and acquiring the attachment according to the attachment attribute identification;
Specifically, after the online document and the attachment are stored correspondingly, the server may obtain the online document locally, analyze and obtain a hash value and an attachment name of the attachment corresponding to the attachment attribute identifier according to the attachment attribute identifier of the online document, and then obtain binary data of the attachment according to the hash value and the attachment name of the attachment.
And S105, generating a word document with an attachment corresponding to the online document according to the online document and the attachment.
Specifically, the server may call a word program, convert the online document into a word document, embed the attachment into the word document, and generate a word document with an attachment corresponding to the online document. The word program may adopt a WPS Office program.
For example, the html format of the online document is adopted, the server analyzes html format data of the online document, bottom layer word service is called through JACOB, contents such as artistic words and catalogues are realized in a macro mode, and the online document is converted into the word document. When the attachment attribute identification of the online document is found, analyzing the attachment attribute identification to obtain a hash value and an attachment name of an attachment corresponding to the attachment attribute identification, obtaining binary data of the attachment of the online document according to the hash value and the attachment name of the attachment, and calling a word program through JACOB to embed the attachment into the word document.
the method for generating the online document with the attachment provided by the embodiment of the invention can generate the online document to be attached into the corresponding word document with the attachment, so that the online document and the attachment can be downloaded simultaneously, and the downloading efficiency of the document is improved.
Fig. 3 is a flowchart illustrating a method for generating an online document with an attachment according to another embodiment of the present invention, and as shown in fig. 3, the method for generating an online document with an attachment according to an embodiment of the present invention further includes:
S106, receiving an online document downloading request sent by the client;
Specifically, after the server correspondingly stores the online document and the attachment and generates a word document with an attachment corresponding to the online document, the client may send an online document downloading request to the server to download the word document with the attachment corresponding to the online document, and the server may receive the online document downloading request. It is understood that the client may also send an online document preview request to the server to view the online document online.
And S107, sending the word document with the attachment corresponding to the online document to the client.
Specifically, after receiving the online document downloading request, the server finds a word document with an attachment corresponding to the online document, and then sends the word document with the attachment corresponding to the online document to the client, and the client can receive the word document with the attachment corresponding to the online document and download the word document to the local, so that a user can view the word document with the attachment on the client.
Fig. 4 is a flowchart illustrating a method for generating an online document with an attachment according to still another embodiment of the present invention, and as shown in fig. 4, the method for generating an online document with an attachment according to an embodiment of the present invention further includes:
s108, receiving an attachment deleting request sent by the client;
specifically, a user may delete an attachment that has been embedded in the online document, the user performs a deletion operation on the attachment of the online document at an online document editing interface of the client, the deletion operation may be implemented by a right-click menu or a delete shortcut key, after detecting the deletion operation on the attachment of the online document by the user, the client sends an attachment deletion request to the server, and the server receives the attachment deletion request.
and S109, deleting the attachment attribute identification of the online document corresponding to the attachment.
specifically, after receiving the attachment deletion request, the server may delete the attachment attribute identifier of the online document corresponding to the attachment, so as to delete the attachment corresponding to the attachment deletion request. It is to be appreciated that the attachment deletion request can include the attachment attribute identification.
fig. 5 is a schematic flow chart of the online document generating system with an attachment according to an embodiment of the present invention, and as shown in fig. 5, the online document generating system with an attachment according to an embodiment of the present invention includes a client 1 and a server 2, where the client 1 and the server 2 are connected in communication. The server 2 comprises an interaction module 21, a document template structuring module 22, an attachment storage module 23, a hash value generation module 24, an html generation module 25, a database reading and writing module 26, a document generation module 27 and a Chinese messy code processing module 28, wherein the interaction module 21 is in communication connection with the client 1, the interaction module 21 is respectively connected with the document template structuring module 22, the attachment storage module 23 and the Chinese messy code processing module 28, the document template structuring module 22 is connected with the html generation module 25, the attachment storage module 23 is connected with the hash value generation module 24, the database reading and writing module 26 is respectively connected with the hash value generation module 24, the html generation module 25 and the document generation module 27, and the document generation module 27 is connected with the Chinese messy code processing module 28.
When the server 2 receives the attachment of the online document uploaded by the client 1, the interaction module 21 transmits the attachment to the attachment storage module 23 to be stored in a binary data format, the attachment storage module 23 transmits the binary data of the attachment to the hash value generation module 24, the hash value generation module 24 generates the hash value of the attachment according to the binary data of the attachment, and then transmits the hash value of the attachment and the binary data of the attachment to the database read-write module 26.
When the client 1 uploads the online document to the server 2, the interaction module 21 transmits the online document to the document template structuring module 22, the document template structuring module 22 can convert the online document into tree-shaped structure data, then transmit the tree-shaped structure data of the online document to the html generating module 25, the html generating module 25 converts the tree-shaped structure data of the online document into html format data, then transmit the html format data of the online document to the database reading and writing module 26, the database reading and writing module 26 configures the attachment attribute identification of the online document, corresponds the attachment attribute identification of the online document to the hash value and the attachment name of the attachment, and then correspondingly stores the html format data of the online document and the binary data of the attachment in the database. The attachment name is also stored in html format, and when the attachment name is chinese, the chinese messy code processing module 28 may convert the attachment name in html format into a data format suitable for the browser of the client 1, so as to avoid displaying the attachment name as messy code at the client 1.
The document generating module 27 obtains html-format data of the online document from the database reading and writing module 26, calls a word service program in a JACOB manner, realizes contents such as artistic words and catalogs in a macro form, and converts the html-format data of the online document into a word document. When the document generation module 27 analyzes html format data to obtain an attachment data identifier, a hash value and an attachment name of an attachment are analyzed according to the attachment data identifier, binary data of the attachment are obtained according to the hash value and the attachment name of the attachment, a word service program is called through JACOB, the attachment is embedded into a word document, so that a word document with an attachment corresponding to the online document is generated, the document generation module 27 generates the word document with the attachment and transmits the word document with the attachment to the database read-write module 26, and the database read-write module 26 stores the word document with the attachment into a database.
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention, and as shown in fig. 6, the server according to the embodiment of the present invention includes a first receiving unit 601, a configuration unit 602, and a storage unit 603, where:
A first receiving unit 601 receives an attachment of an online document uploaded by a client; the configuration unit 602 is configured to generate a hash value of the accessory, and configure an accessory attribute identifier of the online document according to the hash value of the accessory and an accessory name; the storage unit 603 is configured to correspondingly store the online document and the attachment; wherein the attachment is stored in a binary data format.
Specifically, when a user edits an online document on a client, an attachment may be embedded into the online document in a manner of dragging or shortcut key copying, the client may receive the attachment, and then upload the attachment as an attachment of the online document to the first receiving unit 601, and the first receiving unit 601 may receive the attachment of the online document uploaded by the client. The online document refers to a document which can be edited online. The attachments can be in the formats of a compressed package, a pdf file, a text file and the like, and are uploaded according to actual needs, which is not limited in the embodiment of the present invention. The client includes, but is not limited to, an electronic device such as a desktop, a notebook, a smart phone, and a tablet. It is understood that the online document may be edited by a single user, or may be edited online by multiple users at the same time, and the embodiment of the present invention is not limited thereto.
after receiving the attachment of the online document, the configuration unit 602 generates a hash value of the attachment, and then corresponds the hash value and the attachment name of the attachment to an attachment attribute identifier of the online document, where the attachment attribute identifier is preset, and when the attachment attribute identifier is configured in the online document, it indicates that the attachment is embedded in the online document. Wherein the hash value of the accessory can be generated from binary data of the accessory.
After the user finishes editing the online document on the client, the client sends the online document to the storage unit 603, and the storage unit 603 stores the online document and stores the online document in correspondence with an attachment of the online document. Wherein the attachment is stored in a binary data format.
the online document generation device with the attachment provided by the embodiment of the invention receives the attachment of the online document uploaded by the client, generates the hash value of the attachment, configures the attachment attribute identification of the online document according to the hash value of the attachment and the attachment name, correspondingly stores the online document and the attachment, and stores the attachment in a binary data format, thereby realizing the embedding of the attachment into the online document, avoiding the need of respectively transmitting the online document and the attachment, and improving the efficiency of the attachment transmission of the online document.
Fig. 7 is a schematic structural diagram of a server according to another embodiment of the present invention, and as shown in fig. 7, on the basis of the foregoing embodiments, the server according to the embodiment of the present invention further includes an obtaining unit 604 and a generating unit 605, where:
the obtaining unit 604 is configured to obtain the online document, and obtain the attachment according to the attachment attribute identifier; the generating unit 605 is configured to generate a word document with an attachment corresponding to the online document according to the online document and the attachment.
specifically, after the online document and the attachment are stored correspondingly, the obtaining unit 604 may obtain the online document locally, and obtain, according to the attachment attribute identifier of the online document, a hash value and an attachment name of the attachment corresponding to the attachment attribute identifier through parsing, and then obtain binary data of the attachment according to the hash value and the attachment name of the attachment.
The generating unit 605 may call a word program, convert the online document into a word document, embed the attachment into the word document, and generate a word document with an attachment corresponding to the online document. The word program may adopt a WPS Office program.
the online document generation device with the attachment provided by the embodiment of the invention can generate the online document to be attached into the corresponding word document with the attachment, so that the online document and the attachment can be downloaded simultaneously, and the file downloading efficiency is improved.
Fig. 8 is a schematic structural diagram of a server according to another embodiment of the present invention, and as shown in fig. 8, on the basis of the foregoing embodiments, the server according to the embodiment of the present invention further includes:
The second receiving unit 606 is configured to receive an online document download request sent by the client; the sending unit 607 is configured to send the word document with the attachment corresponding to the online document to the client.
Specifically, after the online document and the attachment are stored correspondingly and a word document with an attachment corresponding to the online document is generated, the client may send an online document download request to the second receiving unit 606 to download the word document with the attachment corresponding to the online document, and the second receiving unit 606 may receive the online document download request. It is understood that the client may also send an online document preview request to the server to view the online document online.
After receiving the online document downloading request, the sending unit 607 finds the word document with the attachment corresponding to the online document, and then sends the word document with the attachment corresponding to the online document to the client, and the client may receive the word document with the attachment corresponding to the online document and download the word document to the local, so that the user can view the word document with the attachment on the client.
Fig. 9 is a schematic structural diagram of a server according to still another embodiment of the present invention, and as shown in fig. 9, on the basis of the foregoing embodiments, further, the server according to the embodiment of the present invention further includes a third receiving unit 608 and a deleting unit 609, where:
The third receiving unit 608 is configured to receive an attachment deletion request sent by the client; the deleting unit 609 is configured to delete the attachment attribute identifier of the online document corresponding to the attachment.
Specifically, a user may delete an attachment that has been embedded in the online document, the user performs a deletion operation on the attachment of the online document at an online document editing interface of the client, the deletion operation may be implemented by a right-click menu or a delete shortcut key, after the client detects the deletion operation on the attachment of the online document by the user, the client sends an attachment deletion request to the third receiving unit 608, and the third receiving unit 608 receives the attachment deletion request.
After receiving the attachment deletion request, the deletion unit 609 may delete the attachment attribute identifier of the online document corresponding to the attachment, so as to delete the attachment corresponding to the attachment deletion request. It is to be appreciated that the attachment deletion request can include the attachment attribute identification.
the embodiment of the server provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the embodiment are not described herein again, and refer to the detailed description of the above method embodiments.
fig. 10 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device may include: a processor (processor)1001, a communication Interface (communication Interface)1002, a memory (memory)1003 and a communication bus 1004, wherein the processor 1001, the communication Interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004. Processor 1001 may call logic instructions in memory 1003 to perform the following method: receiving an attachment of an online document uploaded by a client; generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name; correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
In addition, the logic instructions in the memory 1003 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
the present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving an attachment of an online document uploaded by a client; generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name; correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
the present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: receiving an attachment of an online document uploaded by a client; generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name; correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
as will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. an online document generation method with an attachment is characterized by comprising the following steps:
Receiving an attachment of an online document uploaded by a client;
generating a hash value of the attachment, and configuring an attachment attribute identifier of the online document according to the hash value of the attachment and an attachment name;
correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
2. The method of claim 1, further comprising:
Acquiring the online document, and acquiring the attachment according to the attachment attribute identification;
And generating a word document with an attachment corresponding to the online document according to the online document and the attachment.
3. The method of claim 2, further comprising:
Receiving an online document downloading request sent by the client;
And sending the word document with the attachment corresponding to the online document to the client.
4. The method of any of claims 1 to 3, further comprising:
Receiving an attachment deleting request sent by the client;
And deleting the attachment attribute identification of the online document corresponding to the attachment.
5. a server, comprising:
The first receiving unit is used for receiving an attachment of an online document uploaded by a client;
The configuration unit is used for generating a hash value of the attachment and configuring the attachment attribute identification of the online document according to the hash value of the attachment and the attachment name;
The storage unit is used for correspondingly storing the online document and the attachment; wherein the attachment is stored in a binary data format.
6. The server of claim 5, further comprising:
The acquisition unit is used for acquiring the online document and acquiring the attachment according to the attachment attribute identification;
And the generating unit is used for generating a word document with an attachment corresponding to the online document according to the online document and the attachment.
7. the server of claim 6, further comprising:
the second receiving unit is used for receiving an online document downloading request sent by the client;
and the sending unit is used for sending the word document with the attachment corresponding to the online document to the client.
8. the server according to any one of claims 5 to 7, further comprising:
A third receiving unit, configured to receive an attachment deletion request sent by the client;
and the deleting unit is used for deleting the attachment attribute identification of the online document corresponding to the attachment.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201910846537.2A 2019-09-09 2019-09-09 Online document generation method with attachment and server Pending CN110569492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910846537.2A CN110569492A (en) 2019-09-09 2019-09-09 Online document generation method with attachment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910846537.2A CN110569492A (en) 2019-09-09 2019-09-09 Online document generation method with attachment and server

Publications (1)

Publication Number Publication Date
CN110569492A true CN110569492A (en) 2019-12-13

Family

ID=68778336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910846537.2A Pending CN110569492A (en) 2019-09-09 2019-09-09 Online document generation method with attachment and server

Country Status (1)

Country Link
CN (1) CN110569492A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779931A (en) * 2021-08-31 2021-12-10 民商数字科技(深圳)有限公司 Knowledge base construction method based on Word and control method thereof
CN114036114A (en) * 2021-11-25 2022-02-11 北京达佳互联信息技术有限公司 Method and device for displaying attachment in online document, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1802055A1 (en) * 2005-12-21 2007-06-27 Research In Motion Limited System and method for reviewing the content of an electronic mail attachment on a mobile device
JP2010079674A (en) * 2008-09-26 2010-04-08 Toshiba Corp File association device, method, and program
US20170060824A1 (en) * 2015-08-26 2017-03-02 Microsoft Technology Licensing, Llc Interactive preview teasers in communications
CN108112270A (en) * 2015-09-18 2018-06-01 微软技术许可有限责任公司 Collaboration communication instrument in document editor is provided
CN109408284A (en) * 2018-09-04 2019-03-01 天津字节跳动科技有限公司 Online document restoration methods and its device, equipment, storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1802055A1 (en) * 2005-12-21 2007-06-27 Research In Motion Limited System and method for reviewing the content of an electronic mail attachment on a mobile device
JP2010079674A (en) * 2008-09-26 2010-04-08 Toshiba Corp File association device, method, and program
US20170060824A1 (en) * 2015-08-26 2017-03-02 Microsoft Technology Licensing, Llc Interactive preview teasers in communications
CN108112270A (en) * 2015-09-18 2018-06-01 微软技术许可有限责任公司 Collaboration communication instrument in document editor is provided
CN109408284A (en) * 2018-09-04 2019-03-01 天津字节跳动科技有限公司 Online document restoration methods and its device, equipment, storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779931A (en) * 2021-08-31 2021-12-10 民商数字科技(深圳)有限公司 Knowledge base construction method based on Word and control method thereof
CN114036114A (en) * 2021-11-25 2022-02-11 北京达佳互联信息技术有限公司 Method and device for displaying attachment in online document, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP5911262B2 (en) Information processing apparatus, information processing apparatus control method, and program
KR20180049232A (en) Techniques for electronic aggregation of information
JP2008527530A (en) Application linkage method and system
US10516791B2 (en) Information processing system, information processing apparatus, and information processing method for executing an iteration of one or more processes
US20160277460A1 (en) Method and apparatus for initiating network conference
CN110888842A (en) File storage method, file query method, file storage device, file query device and file query equipment
EP3552376B1 (en) Card-based information management method and system
US9729672B2 (en) Collaborative editing
CN107408242B (en) Providing interactive previews of content within communications
US8250103B2 (en) Image log management device, image log management method, image log management program
JP2014505299A (en) Method and apparatus for processing microweb log messages
CN110569492A (en) Online document generation method with attachment and server
CN105550179A (en) Webpage collection method and browser plug-in
US9928751B2 (en) Generic media covers
KR101748245B1 (en) Method for providing 3d printing data service
US8873110B2 (en) Host apparatus to generate workform, workform management server to edit an image, workform management system, and method of editing an image using a workform
CN102023987A (en) Method and device for processing WEB document
CN108140173A (en) The attachment parsed from communication is classified
CN115904615A (en) Method and device for managing files in K8s container
CN103824097A (en) Information cross-device processing method and system
US8170982B2 (en) Computer readable medium and information processing apparatus
JP2008198142A (en) Document management device, method, and program
JP2003242127A (en) Business integrated system
JP2016129061A (en) Information processing device and program
JP6673047B2 (en) Information processing system, information processing apparatus, and information processing method

Legal Events

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

Application publication date: 20191213

RJ01 Rejection of invention patent application after publication