CN112667944A - Http protocol-based file online processing method and system - Google Patents

Http protocol-based file online processing method and system Download PDF

Info

Publication number
CN112667944A
CN112667944A CN202011545244.XA CN202011545244A CN112667944A CN 112667944 A CN112667944 A CN 112667944A CN 202011545244 A CN202011545244 A CN 202011545244A CN 112667944 A CN112667944 A CN 112667944A
Authority
CN
China
Prior art keywords
file
client
request
http
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
CN202011545244.XA
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.)
Fujian Zefu Software Co ltd
Original Assignee
Fujian Zefu Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Zefu Software Co ltd filed Critical Fujian Zefu Software Co ltd
Priority to CN202011545244.XA priority Critical patent/CN112667944A/en
Publication of CN112667944A publication Critical patent/CN112667944A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the technical field of file processing, in particular to a method and a system for online processing of files based on an http protocol. The http protocol-based file online processing method comprises the following steps: the cooperative office system sends different requests to the local text editing client through http according to the service requirements; the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory; the client executes corresponding operation on the corresponding file according to the service requirement and then closes the file; and the client deletes the file in the memory. In the whole process, any space (ActiveX or NPAPI) is not needed, interaction with a local client can be carried out as long as the browser can send an http request, cross-browser and cross-platform are achieved, and meanwhile, a set of service codes can run in different browsers and different operating systems without limitation. Meanwhile, the local client directly processes the file, and the whole effect is far superior to that of the html rich text form.

Description

Http protocol-based file online processing method and system
Technical Field
The invention relates to the technical field of file processing, in particular to a method and a system for online processing of files based on an http protocol.
Background
Nowadays, online collaborative office of a plurality of people is a main communication and collaboration mode in the work of most people. In the process of collaboration, a plurality of people can share one file, and if the file is updated, related people can see the updated content in time. By using the chat tool to share files, the efficiency is undoubtedly low. At the moment, the online checking and editing technology is generated.
Checking online, and editing flow: and uploading the files to be shared to the cooperative office system, and directly viewing the file contents on line without downloading by related personnel. And if the content needs to be modified, the content is edited on line, and the content is uploaded to the cooperative office system after the content is edited, so that related personnel can see the modified content in time.
The current online editing technology is mainly realized by the following methods: ActiveX control, NPAPI plug-in, and Html rich text form.
ActiveX controls and NPAPI plug-ins need to be browser dependent. ActiveX controls can only run in ie browser, while NPAPI plug-ins can only support in low version Firefox and chrome browsers. The two technologies cannot cross browsers and platforms, and belong to the eliminated technologies.
The Html rich text form can be cross-platform, most browsers support the Html rich text form, and some older browsers (e.g. ie6,7 and 8) have certain defects in displaying and editing the file content. Some effects that can be shown on the local client side will not be supported by the rich text form. Rich text editing functions are far less than local clients.
Disclosure of Invention
Therefore, a http protocol-based file online processing method needs to be provided to solve the problem that the existing file online processing technology cannot achieve cross-platform, cross-browser and processing effect consideration. The specific technical scheme is as follows:
a file online processing method based on an http protocol comprises the following steps:
the cooperative office system sends different requests to the local text editing client through http according to the service requirements;
the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory;
the client executes corresponding operation on the corresponding file according to the service requirement and then closes the file;
and the client deletes the file in the memory.
Further, if the request is an online viewing request, the client performs a corresponding operation on the corresponding file according to the service requirement and then closes the file, further comprising the steps of:
the client displays the file content in a read-only mode.
Further, if the request is an online editing request, the client performs a corresponding operation on the corresponding file according to the service requirement and then closes the file, further comprising the steps of:
and the client responds to the file editing instruction, saves the edited file and sends the edited file to the specified position of the cooperative office system.
Further, before the cooperative office system sends different requests to the local text editing client through http according to the service requirement, the method further comprises the following steps:
and judging whether the client side starts the http service, if the client side does not start the http service, accessing a self-defined protocol of the client side, and triggering the http service to start.
Further, if the request is an online viewing request, the request includes a download path of the file;
and if the request is an online editing request, the request comprises a downloading path and an uploading path of the file.
In order to solve the technical problems, the invention also provides an http protocol-based file online processing system, which comprises the following specific technical scheme:
an http protocol-based file online processing system, comprising: a client and a collaborative office system;
the collaborative office system is configured to: sending different requests to a local text editing client through http according to the service requirements;
the client is used for: downloading the corresponding file and opening the corresponding file in the memory according to the file address in the request; closing the file after executing corresponding operation on the corresponding file according to the service requirement; and deleting the files in the memory.
Further, if the request is an online viewing request, the client displays the file content in a read-only mode.
Further, if the request is an online editing request, the client is configured to: and responding to a file editing instruction, saving the edited file, and sending the edited file to a specified position of the collaborative office system.
Further, the collaborative office system is further configured to: and judging whether the client side starts the http service, if the client side does not start the http service, accessing a self-defined protocol of the client side, and triggering the http service to start.
Further, if the request is an online viewing request, the request includes a download path of the file;
and if the request is an online editing request, the request comprises a downloading path and an uploading path of the file.
The invention has the beneficial effects that: sending different requests to a local text editing client through http according to the service requirement by a cooperative office system; the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory; the client executes corresponding operation on the corresponding file according to the service requirement and then closes the file; and the client deletes the file in the memory. In the whole process, any space (ActiveX or NPAPI) is not needed, interaction with a local client can be carried out as long as the browser can send an http request, cross-browser and cross-platform are achieved, and meanwhile, a set of service codes can run in different browsers and different operating systems without limitation. Meanwhile, the local client directly processes the file, and the whole effect is far superior to that of the html rich text form.
Drawings
Fig. 1 is a flowchart of a method for online processing of a file based on an http protocol according to an embodiment;
FIG. 2 is a flowchart illustrating operation of an embodiment when the request is an online view request;
FIG. 3 is a flowchart illustrating operation of an embodiment when the request is an online edit request;
fig. 4 is a schematic block diagram of a http protocol-based file online processing system according to an embodiment.
Description of reference numerals:
400. an on-line text processing system based on an http protocol,
401. in cooperation with the office system,
402. and (4) a client.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
The core technical idea of the application is that the file processing between the cooperative office system and the local client is realized through the http protocol, a traditional control (ActiveX or NPAPI) is not needed, and meanwhile, the file is directly processed locally, so that the whole effect is far better than that of an html rich text form. The following is a detailed description:
referring to fig. 1 to fig. 3, in this embodiment, a method for online processing a file based on an http protocol is applicable to an online processing system for a file based on an http protocol, where the method for online processing a file based on an http protocol includes: the system comprises a client and a cooperative office system, wherein the client is in communication connection with the cooperative office system. The method comprises the following specific steps:
step S101: and the cooperative office system sends different requests to the local text editing client through http according to the service requirements.
Step S102: and the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory.
Step S103: and the client closes the file after executing corresponding operation on the corresponding file according to the service requirement.
Step S104: and the client deletes the file in the memory.
Sending different requests to a local text editing client through http according to the service requirement by a cooperative office system; the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory; the client executes corresponding operation on the corresponding file according to the service requirement and then closes the file; and the client deletes the file in the memory. In the whole process, any space (ActiveX or NPAPI) is not needed, interaction with a local client can be carried out as long as the browser can send an http request, cross-browser and cross-platform are achieved, and meanwhile, a set of service codes can run in different browsers and different operating systems without limitation. Meanwhile, the local client directly processes the file, and the whole effect is far superior to that of the html rich text form.
In this embodiment, before the "cooperative office system sends different requests to the local text editing client via http according to a service requirement" to ensure that the client starts an http service, the method further includes the following steps: and judging whether the client side starts the http service, if the client side does not start the http service, accessing a self-defined protocol of the client side, and triggering the http service to start.
In this embodiment, the different requests mainly include two types: the online viewing request and the online editing request are explained in detail below with reference to fig. 2 and 3, respectively. It should be noted that in other embodiments, other request functions may be added in addition according to the needs of the actual service scenario, which is not limited to this.
First, the online viewing request is explained:
step S201: and the cooperative office system sends an online viewing request to the local text editing client through http according to the service requirement.
Step S202: and the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory.
Step S203: the client displays the file content in a read-only mode. Operations such as saving and editing the file are not effective.
Step S204: and the client closes the file in response to the file closing instruction and correspondingly deletes the file in the memory. The method specifically comprises the following steps: and after the checking is finished, the user closes the file, and the local client deletes the file in the memory. Local computing resources are not occupied for the method.
In this embodiment, if the request is an online viewing request, the request includes a download path of the file.
The following explains the online edit request:
step S301: and the cooperative office system sends an online editing request to the local text editing client through http according to the service requirement.
Step S302: and the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory.
Step S303: and the client side responds to the file editing instruction to edit the file, stores the edited file and sends the edited file to the specified position of the cooperative office system.
Step S304: and the client closes the file in response to the file closing instruction and correspondingly deletes the file in the memory.
In this embodiment, if the request is an online editing request, the request includes a download path and an upload path of the file.
Referring to fig. 4, in the present embodiment, an implementation of the http protocol-based file online processing system 400 is as follows:
an http protocol based file online processing system 400, comprising: a client 402 and a collaborative office system 401; the collaborative office 401 is configured to: sending different requests to the local text editing client 402 through http according to the service requirement; the client 402 is configured to: downloading the corresponding file and opening the corresponding file in the memory according to the file address in the request; closing the file after executing corresponding operation on the corresponding file according to the service requirement; and deleting the files in the memory.
Sending different requests to a local text editing client 402 through http according to service requirements through a cooperative office system 401; the client 402 downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory; the client 402 closes the file after executing the corresponding operation on the corresponding file according to the service requirement; client 402 deletes the file in memory. In the whole process, any space (ActiveX or NPAPI) is not needed, interaction with the local client 402 can be carried out as long as the browser can send an http request, cross-browser and cross-platform are achieved, and meanwhile, a set of service codes can run in different browsers and different operating systems without limitation. Meanwhile, the local client 402 directly processes the file, and the overall effect is far superior to that of the html rich text form.
In this embodiment, to ensure that the http service is started by the client 402, before the cooperative office system 401 sends different requests to the local text editing client 402 through http according to the service requirement, the cooperative office system 401 is further configured to: judging whether the client 402 starts the http service, if the client 402 does not start the http service, accessing a self-defined protocol of the client 402, and triggering the http service to start.
Further, if the request is an online viewing request, the client 402 displays the file content in a read-only mode. In this embodiment, if the request is an online viewing request, the request includes a download path of the file.
Further, if the request is an online editing request, the client 402 is configured to: responding to the file editing instruction, saving the edited file, and sending the edited file to the specified position of the collaborative office system 401. In this embodiment, if the request is an online editing request, the request includes a download path and an upload path of the file.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (10)

1. A file online processing method based on an http protocol is characterized by comprising the following steps:
the cooperative office system sends different requests to the local text editing client through http according to the service requirements;
the client downloads the corresponding file according to the file address in the request and opens the corresponding file in the memory;
the client executes corresponding operation on the corresponding file according to the service requirement and then closes the file;
and the client deletes the file in the memory.
2. The http protocol-based file online processing method according to claim 1, wherein if the request is an online viewing request, the client closes the file after performing a corresponding operation on the corresponding file according to the service requirement, further comprising:
the client displays the file content in a read-only mode.
3. The http protocol-based file online processing method according to claim 1, wherein if the request is an online editing request, the client performs a corresponding operation on the corresponding file according to the service requirement and then closes the file, further comprising:
and the client responds to the file editing instruction, saves the edited file and sends the edited file to the specified position of the cooperative office system.
4. The http protocol-based file online processing method according to any one of claims 1 to 3, wherein before the "cooperative office system sends different requests to the local text editing client via http according to a service demand", the method further includes:
and judging whether the client side starts the http service, if the client side does not start the http service, accessing a self-defined protocol of the client side, and triggering the http service to start.
5. The http protocol-based file online processing method of claim 1,
if the request is an online viewing request, the request comprises a download path of the file;
and if the request is an online editing request, the request comprises a downloading path and an uploading path of the file.
6. An http protocol-based file online processing system is characterized by comprising: a client and a collaborative office system;
the collaborative office system is configured to: sending different requests to a local text editing client through http according to the service requirements;
the client is used for: downloading the corresponding file and opening the corresponding file in the memory according to the file address in the request; closing the file after executing corresponding operation on the corresponding file according to the service requirement; and deleting the files in the memory.
7. The http protocol-based file online processing system of claim 6, wherein if the request is an online viewing request, the client displays file content in a read-only mode.
8. The http protocol-based file online processing system of claim 6, wherein if the request is an online editing request, the client is configured to: and responding to a file editing instruction, saving the edited file, and sending the edited file to a specified position of the collaborative office system.
9. An http protocol based file online processing system according to any one of claims 6 to 8,
the collaborative office system is further configured to: and judging whether the client side starts the http service, if the client side does not start the http service, accessing a self-defined protocol of the client side, and triggering the http service to start.
10. An http protocol based file online processing system as recited in claim 6,
if the request is an online viewing request, the request comprises a download path of the file;
and if the request is an online editing request, the request comprises a downloading path and an uploading path of the file.
CN202011545244.XA 2020-12-23 2020-12-23 Http protocol-based file online processing method and system Pending CN112667944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011545244.XA CN112667944A (en) 2020-12-23 2020-12-23 Http protocol-based file online processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011545244.XA CN112667944A (en) 2020-12-23 2020-12-23 Http protocol-based file online processing method and system

Publications (1)

Publication Number Publication Date
CN112667944A true CN112667944A (en) 2021-04-16

Family

ID=75409713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011545244.XA Pending CN112667944A (en) 2020-12-23 2020-12-23 Http protocol-based file online processing method and system

Country Status (1)

Country Link
CN (1) CN112667944A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291968A (en) * 2022-08-01 2022-11-04 国投智能科技有限公司 Service processing method, system and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003076622A (en) * 1996-02-09 2003-03-14 Ricoh Co Ltd Method and device for controlling peripheral
CN101398813A (en) * 2007-09-30 2009-04-01 英业达股份有限公司 Application management system for on-line editing network file
CN101567065A (en) * 2009-05-26 2009-10-28 杭州世导科技有限公司 Cross-platform online file editing system and method thereof
CN102982119A (en) * 2012-11-12 2013-03-20 上海够快网络科技有限公司 Editing method for online files
CN104462224A (en) * 2014-11-12 2015-03-25 成都卫士通信息产业股份有限公司 Cloud disc file online editing method
CN107734074A (en) * 2017-11-29 2018-02-23 常州中价之星软件技术有限公司 A kind of implementation method of online reading and editor's document
CN110347990A (en) * 2019-07-05 2019-10-18 科大国创软件股份有限公司 A kind of Web online document edit methods and its system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003076622A (en) * 1996-02-09 2003-03-14 Ricoh Co Ltd Method and device for controlling peripheral
CN101398813A (en) * 2007-09-30 2009-04-01 英业达股份有限公司 Application management system for on-line editing network file
CN101567065A (en) * 2009-05-26 2009-10-28 杭州世导科技有限公司 Cross-platform online file editing system and method thereof
CN102982119A (en) * 2012-11-12 2013-03-20 上海够快网络科技有限公司 Editing method for online files
CN104462224A (en) * 2014-11-12 2015-03-25 成都卫士通信息产业股份有限公司 Cloud disc file online editing method
CN107734074A (en) * 2017-11-29 2018-02-23 常州中价之星软件技术有限公司 A kind of implementation method of online reading and editor's document
CN110347990A (en) * 2019-07-05 2019-10-18 科大国创软件股份有限公司 A kind of Web online document edit methods and its system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291968A (en) * 2022-08-01 2022-11-04 国投智能科技有限公司 Service processing method, system and computer equipment
CN115291968B (en) * 2022-08-01 2024-02-23 国投智能科技有限公司 Service processing method, system and computer equipment

Similar Documents

Publication Publication Date Title
EP2649502B1 (en) Methods and systems for a remote desktop session utilizing a http handler and a remote desktop client common interface
EP2649500B1 (en) Methods and systems for accessing and controlling a remote desktop of a remote machine in real time by a web browser at a client device via http api utilizing a transcoding server
US9558476B2 (en) Method and device for editing workspace data objects
EP2649532B1 (en) Methods and systems for remote desktop session redrawing via http headers
US8504654B1 (en) Methods and systems for facilitating a remote desktop session utilizing long polling
US9535560B1 (en) Methods and systems for facilitating a remote desktop session for a web browser and a remote desktop server
JP2010003308A (en) System and method for using workspace data manager to access, manipulate and synchronize network data
US20170003926A1 (en) Methods and systems for a remote desktop session utilizing http header
CN110099461B (en) Communication method and system between terminals, electronic equipment and storage medium
CN113691602B (en) Service processing method, system, device, equipment and medium based on cloud mobile phone
CN112667944A (en) Http protocol-based file online processing method and system
CN102209115A (en) Method for coordinating different users in virtual desktop system
CN102148839B (en) Method, device and system for managing FTP (file transfer protocol) server
CN113992652A (en) Cross-terminal file synchronization method and device
KR101349201B1 (en) Apparatus for interoperability between Web-browser and Local-resources in the Mobile Device and method thereof
CN114217900A (en) Remote control method, device and system, computing equipment and storage medium
US7650392B1 (en) Dynamic content processing in a reverse proxy service
CN115878226A (en) H5 offline package loading method and device
CN108021459B (en) Method and device for sending dotting logs across processes
JP2746123B2 (en) Gateway system
CN111880953A (en) Application program communication method and device, electronic equipment and storage medium
KR101872773B1 (en) Fire engine pump monitoring and control system using mobile communication terminal and the method thereof
CN113468858B (en) Method for online editing of office file independent of client environment
CN113873044B (en) Data transmission method, system, equipment and storage medium
CN115291968B (en) Service processing method, system and computer equipment

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: 20210416

RJ01 Rejection of invention patent application after publication