Online file preview method and apparatus based on intranet, and storage medium

By automatically deploying the kkFileView container service on the client and performing distributed file parsing, the problem of low parsing efficiency in online file previewing on the intranet was solved, achieving a fast and secure file preview effect.

WO2025246737A1PCT designated stage Publication Date: 2025-12-04GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/090434
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-30
Filing Date
2025-04-22
Publication Date
2025-12-04

AI Technical Summary

Technical Problem

Existing online file preview solutions for intranets suffer from low file parsing efficiency, especially during the kkFileView file rendering process, which suffers from long loading times and blank screens, failing to guarantee file security and efficient parsing.

Method used

By installing the kkFileView container service on the client and using Docker images for automated deployment, combined with the distributed mapping of batch file download and parsing conversion tasks, multiple clients can simultaneously perform file parsing and conversion to generate preview screens.

Benefits of technology

It improved the parsing efficiency of online file preview on the intranet, reduced the time spent in blank screens, increased file access speed, reduced server load, and ensured file security and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025090434_04122025_PF_FP_ABST
    Figure CN2025090434_04122025_PF_FP_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of computers. Disclosed are an online file preview method and apparatus based on an intranet, and a storage medium. The method comprises: if a server receives an online preview request with respect to several target files, acquiring download links of the target files from a database, and sending the download links of the target files to all clients, such that the clients access the download links to download the target files; on the basis of conversion addresses of the target files and corresponding client IP addresses, generating addresses of several files to be parsed; and sending to corresponding clients the addresses of the files to be parsed, such that the clients access the addresses of the files to be parsed, call a document parsing interface of a container service of kkFileView to parse the target files, and generate preview pictures of the target files. Therefore, the parsing efficiency of online file preview based on an intranet can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

An online file preview method and device based on an intranet and a storage medium TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, and in particular to an online file preview method and device based on an intranet and a storage medium. BACKGROUND

[0002] At present, most of the preview execl or docx files opened through web pages need online analysis support, such as Microsoft, wps web office, etc., which need domain name resolution and external network access, and cannot guarantee the security of execl and docx files.

[0003] In the online file preview scheme based on the intranet, kkFileView supports container and supports private deployment in the intranet, and realizes the preview and editing functions of the document. However, kkFileView still has great limitations. In the file rendering of kkFileView, the converted file content is rendered and displayed to the user through a Web service. KkFileView will rely on different file conversion tools, such as OpenOffice, LibreOffice, Google Docs Viewer, PDF.js, etc. to complete the conversion of the file. There will be a lot of time-consuming in the middle, and there will be a long time to wait for the first analysis of the file, white screen and loading conditions. The analysis time is long, and the analysis efficiency is low. SUMMARY

[0004] The present application provides an online file preview method and device based on an intranet and a storage medium to improve the analysis efficiency of online file preview in the intranet.

[0005] The present application provides an online file preview method based on an intranet, applied to a server, the server is connected with a plurality of clients, and the server is connected with a database; the database is used for storing the download link of the file;

[0006] The method comprises the following steps:

[0007] If the server receives an online preview request for a plurality of target files, the download link of each target file is obtained in the database, and the download link of each target file is sent to all clients, so that each client accesses each download link and downloads each target file;

[0008] According to the conversion address of each target file and the corresponding client IP, a plurality of address of analysis files are generated;

[0009] The address of each analysis file is sent to the corresponding client, so that each client accesses the address of each analysis file, calls the document analysis interface of the container service of kkFileView to analyze each target file, and generates a preview picture of each target file.

[0010] Further, before the client requests online preview of the target file, the method further includes:

[0011] The container service of kkFileView is installed and deployed in the preset software of the client, and the client connects the server through the preset software to pull the Docker image.

[0012] Further, if the server receives the online preview request of the target files, the download link of each target file is obtained from the database, and the download link of each target file is sent to all clients, so that each client accesses the download link and downloads each target file, specifically:

[0013] Data interaction is performed on the database to obtain the corresponding download link of the target file in the database;

[0014] The download link is sent to all clients, so that each client accesses the download link and downloads the target file from the database to the local.

[0015] Further, the address of the analysis file is generated according to the conversion address of each target file and the corresponding client ip, specifically:

[0016] When each client completes the download of the target file, each target file that needs to be analyzed is selected as a to-be-analyzed file in all target files, and the document analysis interface of the container service of kkFileView is called to analyze the to-be-analyzed file, and the conversion address of each to-be-analyzed file is recorded;

[0017] The conversion address of each to-be-analyzed file is combined with the corresponding client ip to generate the address of the analysis file.

[0018] Further, the address of each analysis file is sent to the corresponding client, so that each client accesses the address of each analysis file, calls the document analysis interface of the container service of kkFileView to analyze each target file, and generates a preview picture of each target file, specifically:

[0019] The address of each analysis file is sent to the corresponding client, so that each client stores the address of each analysis file in a redis queue, and the redis queue is polled in a time sequence, so that the client accesses the address of each analysis file in turn, calls a document analysis interface of the corresponding service to analyze the corresponding target file, and generates a preview picture of the corresponding target file.

[0020] As a preferred solution, the application realizes the automatic deployment of the container service of the kkFileView of the intranet client by pulling the docker image of the server to start the container service of the kkFileView of the client. The application realizes the simultaneous analysis and conversion of different files by multiple clients through the distributed mapping of the conversion address of the file and the client IP through the batch download of the file and the allocation of the analysis and conversion task, accelerates the access and analysis of the file, and improves the analysis efficiency of the online preview of the intranet file.

[0021] Correspondingly, the application further provides an online file preview device based on an intranet, applied to a server, wherein the server is connected with a plurality of clients, and the server is connected with a database; the database is used for storing the download link of the file.

[0022] The device comprises a download module and an analysis module.

[0023] The download module is used for obtaining the download link of each target file in the database if the server receives the online preview request of the plurality of target files, and sending the download link of each target file to all clients, so that each client accesses each download link and downloads each target file.

[0024] The analysis module is used for generating the address of a plurality of analysis files according to the conversion address of each target file and the corresponding client IP.

[0025] The address of each analysis file is sent to the corresponding client, so that each client accesses the address of each analysis file, calls the document analysis interface of the container service of the kkFileView to analyze each target file, and generates a preview picture of each target file.

[0026] Further, the online file preview device based on the intranet further comprises a deployment module.

[0027] The deployment module is used for installing and deploying the container service of the kkFileView in the preset software of the client, and the client connects the server through the preset software and pulls the Docker image.

[0028] Further, the download module comprises a download unit.

[0029] The download unit is used for data interaction to the database, and obtains a corresponding download link of the target file in the database;

[0030] The download link is sent to all clients, so that each client accesses the download link and downloads the target file from the database to the local.

[0031] Further, the analysis module comprises an analysis request unit and an analysis unit:

[0032] The analysis request unit is used for selecting target files that need to be analyzed by each client as to-be-analyzed files from all target files when the downloading of the target files by each client is completed, and recording conversion addresses of the to-be-analyzed files when a document analysis interface of a container service of kkFileView is called to analyze the to-be-analyzed files; the conversion addresses of the to-be-analyzed files are combined with corresponding client IPs to generate addresses of analysis files.

[0033] The analysis unit is used for sending the addresses of the analysis files to corresponding clients, so that each client stores the addresses of the analysis files in a redis queue, and performs timing polling on the redis queue, so that the clients access the addresses of the analysis files in turn, call a document analysis interface of a corresponding service to analyze corresponding target files, and generate preview pictures of the corresponding target files.

[0034] Correspondingly, the application also provides a computer readable storage medium, which comprises a stored computer program; wherein the computer program controls a device where the computer readable storage medium is located to execute the online file preview method based on an intranet when running. BRIEF DESCRIPTION OF DRAWINGS

[0035] Fig. 1 is a flow diagram of one embodiment of the online file preview method based on the intranet provided by the application;

[0036] Fig. 2 is a structural diagram of one embodiment of the online file preview device based on the intranet provided by the application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the application.

[0038] Example One

[0039] Docker is an open-source application container engine that lets developers package their application and its dependencies into a portable image that can be shipped to any machine running a popular Linux or Windows operating system, and also enables virtualization.

[0040] Containers are completely using the sandbox mechanism, and there is no interface between them. Docker uses a client-server (C / S) architecture pattern, using a remote API to manage and create Docker containers.

[0041] The architecture of Docker includes the Docker daemon, which is a background process running on the host machine (Docker-HOST). The three basic concepts of Docker include Image, Container, and Repository.

[0042] The advantages of Docker include simplifying the process, avoiding the fear of choice, and saving expenses. Docker belongs to the encapsulation of Linux containers, providing a simple and easy-to-use container usage interface, and is currently the most popular Linux container solution.

[0043] Docker belongs to the category of virtualization technology, which is used by developers to eliminate various problems caused by the dependence of development environments on different people, by operators to isolate the running and management of applications to improve computer usage, and by enterprises to build the delivery pillars of agile software to deliver applications faster, more securely, and more platform compatibility (Linux / Windows / mainframe).

[0044] In general, Docker is an open-source platform for software development, distribution, and running, which separates applications and infrastructure to deliver software faster and easily creates a lightweight, portable, and self-sufficient container for any application.

[0045] kkFileView is a web-based file preview and editor plugin that provides online preview and editing capabilities for multiple file types, including Excel (xls, xlsx) files.

[0046] kkFileView implements Excel online preview and editing, including:

[0047] Frontend Page: In the frontend page, initialize the file preview and editor using the JavaScript API provided by kkFileView and specify the path of the Excel file to preview.

[0048] Backend Service: The backend service is responsible for handling frontend requests and converting the Excel file into a format that can be previewed and edited on the frontend.

[0049] The backend service includes the following steps:

[0050] File Upload: The frontend uploads the Excel file to the backend server.

[0051] File Processing: The backend reads and parses the Excel file using appropriate libraries or tools such as PHPExcel, PHPExcel_IOFactory, etc. These libraries usually support converting Excel files into HTML, JSON, or other formats that can be displayed on the frontend.

[0052] Return Data: The backend sends the converted data back to the frontend for preview and editing in the kkFileView plugin.

[0053] Frontend Display: Use the preview and editing functions of the kkFileView plugin to present the data returned by the backend on the frontend page. kkFileView provides corresponding JavaScript APIs that enable online preview and editing of Excel files on the frontend. This typically includes embedding the kkFileView plugin in an HTML container, loading data, displaying Excel tables, supporting editing operations, etc.

[0054] Please refer to Figure 1, a kind of file online preview method based on intranet provided by the embodiment of the application, it is applied to server, the server is connected with several clients, the server is connected with database;The database is used to store the download link of file;

[0055] In this embodiment, the paperless software client is a domestic or win client, which is actually a small PC software. The paperless client connects to the paperless server through software and pulls the Docker image. Each paperless software installs and deploys a kkFileView container service. kkFileView is deployed in the server Docker container, and then the image is built through Dockerfile.

[0056] The method includes steps S101-S103:

[0057] Step S101: If the server receives an online preview request for a plurality of target files, obtain the download links of the target files in the database, send the download links of the target files to all clients, so that each client accesses the download link and downloads each target file;

[0058] Further, before the client requests online preview of the target file, it also includes:

[0059] The container service installation part of kkFileView is deployed in the preset software of the client, and the client connects the server through the preset software to pull the Docker image.

[0060] Automatic deployment is realized, and the client can automatically pull the docker image of the server and start the related service.

[0061] Further, if the server receives an online preview request for a plurality of target files, obtain the download links of the target files in the database, send the download links of the target files to all clients, so that each client accesses the download link and downloads each target file, specifically:

[0062] Data interaction is performed on the database to obtain the corresponding download link of the target file in the database;

[0063] The download link is sent to all clients, so that each client accesses the download link and downloads the target file from the database to the local.

[0064] In this embodiment, the server connects 20 clients and requests online preview of 100 target files in the database connected by the server (172.16.19.30). The parsing task of the 100 files is evenly distributed to the 20 clients, that is, each client needs to parse 5 files.

[0065] The server interacts with the database to download the download links of the 100 target files to all clients, and each client downloads the 100 target files.

[0066] In this embodiment, the server interacts with the database to provide an interface for the client, for example, an interface for updating the corresponding IP:

[0067] / server / onlinePreview / update;

[0068] Uuid, target file uuid;

[0069] Ip, an IP address of a target file resolution path, that is, an IP of a client.

[0070] Step S102: generating a plurality of addresses of resolution files according to the conversion addresses of the target files and the corresponding client IPs.

[0071] Further, the generating of the plurality of addresses of resolution files according to the conversion addresses of the target files and the corresponding client IPs is specifically:

[0072] When each client completes the downloading of the target files, selects the target files that need to be resolved as the to-be-resolved files, and calls the document resolution interface of the container service of kkFileView to resolve the to-be-resolved files, the conversion addresses of the to-be-resolved files are recorded.

[0073] The conversion addresses of the to-be-resolved files are combined with the corresponding client IPs to generate a plurality of addresses of resolution files.

[0074] In this embodiment, each client completes the downloading of 100 target files, and after learning that 5 target files need to be resolved, takes the 5 target files that need to be resolved as 5 to-be-resolved files, calls the document resolution interface of the container service of kkFileView to resolve the 5 to-be-resolved files, and the server records the conversion addresses of the to-be-resolved files.

[0075] For example, the conversion address of the target file is recorded as:

[0076] http: / / 172.16.19.30 / ftp / 10250 / temporary_data / 2.xls';

[0077] The converted client IP of the target file is 172.16.19.16.

[0078] The combination of the IP of the client and the conversion address of the target file generates a plurality of addresses of resolution files.

[0079] http: / / 172.16.19.16:8012 / onlinePreview?url='+encodeURIComponent(Base64.encode(previewUrl)))。

[0080] In this embodiment, 100 target files generate 100 corresponding addresses of resolution files, respectively, all links are distributed, and the mapping of distributed IPs is achieved to accelerate the access.

[0081] Step S103: send the address of each of the parsed files to the corresponding client, so that each of the clients accesses the address of each of the parsed files, calls the document parsing interface of the container service of kkFileView to parse each of the target files, and generates a preview picture of each of the target files.

[0082] Further, the address of the parsed file is sent to the corresponding client, so that the client accesses the address of the parsed file, calls the document parsing interface of the corresponding service to parse the corresponding target file, and generates a preview picture of the corresponding target file. Specifically,

[0083] The address of each of the parsed files is sent to the corresponding client, so that each of the clients stores the address of each of the parsed files in the redis queue, and the redis queue is periodically polled, so that the client accesses the address of each of the parsed files in turn, calls the document parsing interface of the corresponding service to parse the corresponding target file, and generates a preview picture of the corresponding target file.

[0084] In this embodiment, the service is periodically trained to access the queue at all times, simulating browser requests. Each client has 1 file in a group, and the queue is used for better data storage and can record the generated records. If the conversion fails, the conversion can continue.

[0085] In this embodiment, the server sends the addresses of the 100 generated parsed files to the corresponding clients through the tcp protocol, and each client sends the addresses of the corresponding 5 parsed files. Each client stores the addresses of the 5 parsed files in the redis queue, and periodically polls the redis queue, so that the client accesses the addresses of the 5 parsed files in the redis queue in turn, calls the document parsing interface of the corresponding service to parse the 5 parsed files in turn, and generates a preview picture of the corresponding target file.

[0086] In this embodiment, each client accesses the download link of the server, encrypts the download link of the original file through base64, and then accesses the service through 8012 to parse the file. In actual implementation, KkFileView relies on different file conversion tools, such as OpenOffice, LibreOffice, Google Docs Viewer, PDF.js, etc. to complete the conversion of the file. Originally, 1 server is needed to parse and convert 100 files. In this embodiment, 20 clients and 1 server are used to convert 100 files, achieving the effect of distributed transcoding, sharing the access pressure of the server, and better ensuring the stability of the module.

[0087] The embodiment of the present application has the following effects:

[0088] The present application starts the container service of the kkFileView by the client pulling the docker image of the server, realizes the automatic deployment of the container service of the kkFileView of the intranet client, and realizes the distributed mapping of the conversion address of the file and the client ip through the batch download of the file and the allocation of the parsing conversion task, realizes the parsing conversion of different files by multiple clients at the same time, speeds up the access and parsing of the file, and improves the parsing efficiency of the online preview of the intranet file.

[0089] Embodiment two

[0090] Please refer to Fig. 2, a kind of file online preview device based on intranet provided by the embodiment of the present application, it is applied to server, the server is connected with several clients, the server is connected with database;The database is used to store the download link of file;

[0091] The device comprises: download module 201 and parsing module 202;

[0092] The download module is used to if the server receives the online preview request to several target files, the download link of each target file is obtained in the database, the download link of each target file is sent to all clients, so that each client accesses each download link, and each target file is downloaded;

[0093] The parsing module is used to generate the address of several parsing files according to the conversion address of each target file and the corresponding client ip;

[0094] Each address of the parsing file is sent to the corresponding client, so that each client accesses each address of the parsing file, calls the document parsing interface of the container service of kkFileView to parse each target file, and generates the preview screen of each target file.

[0095] Further, the device based on intranet of the file online preview further comprises: deployment module;

[0096] The deployment module is used to install and deploy the container service of kkFileView in the preset software of client, and the client connects the server by the preset software and pulls the Docker image.

[0097] Further, the download module comprises a download unit;

[0098] The download unit is used to interact with the database to obtain the corresponding download link of the target file in the database;

[0099] The download link is sent to all clients to enable the clients to access the download link and download the target file from the database to the local.

[0100] Further, the parsing module comprises a parsing request unit and a parsing unit.

[0101] The parsing request unit is configured to, when each client completes downloading the target file, select a target file that each client needs to parse as a to-be-parsed file from all target files, record a conversion address of each to-be-parsed file when invoking a document parsing interface of a container service of kkFileView to parse the to-be-parsed file, and combine the conversion address of each to-be-parsed file with a corresponding client IP to generate addresses of a plurality of parsed files.

[0102] The parsing unit is configured to send each parsed file address to the corresponding client to enable each client to store each parsed file address in a redis queue, perform periodic polling on the redis queue, enable the client to access each parsed file address in turn, invoke a document parsing interface of a corresponding service to parse the corresponding target file, and generate a preview screen of the corresponding target file.

[0103] The above-described file online preview device based on an intranet can implement the file online preview method based on the intranet of the above-described method embodiment. The optional items in the above-described method embodiment are also applicable to the present embodiment, and will not be described in detail herein. The remaining content of the present embodiment can be referred to the content of the above-described method embodiment, and will not be described in detail herein.

[0104] Embodiment three

[0105] Correspondingly, the present application also provides a computer readable storage medium, which comprises a stored computer program, wherein the computer program controls a device where the computer readable storage medium is located to perform the file online preview method based on an intranet as described in any one of the above embodiments when the computer program is running.

[0106] Illustratively, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the terminal device.

[0107] The terminal device can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The terminal device can include, but is not limited to, a processor and a memory.

[0108] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, 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, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The processor is a control center of the terminal device, and connects all parts of the terminal device through various interfaces and lines.

[0109] The memory can be used to store the computer programs and / or modules, and the processor realizes various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function, etc.; and the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, for example, a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory device.

[0110] The modules / units integrated in the terminal device, if in the form of software function units and sold or used as independent products, can be stored in a computer readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms, etc. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0111] The above specific embodiments further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only for specific embodiments of the present application and is not intended to limit the protection scope of the present application. It is particularly pointed out that any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An intranet-based online file preview method, characterized in that, The application is applied to a server connected with a plurality of clients, and the server is connected with a database; The database is used for storing download links of files; The method comprises: If the server receives an online preview request for a plurality of target files, the download links of the target files are obtained in the database, and the download links of the target files are sent to all the clients, so that each client accesses the download links and downloads each target file; According to the conversion address of each target file and the corresponding client IP, a plurality of addresses of analysis files are generated; The addresses of the analysis files are sent to the corresponding clients, so that each client accesses the address of each analysis file, calls the document analysis interface of the container service of kkFileView to analyze each target file, and generates a preview screen of each target file.

2. The method of claim 1, wherein the method further comprises: Before the client requests online preview of the target file, it further comprises: kkFileView container service is installed and deployed in the preset software of the client, and the client connects the server through the preset software and pulls the Docker image.

3. The method of claim 2, wherein the method further comprises: If the server receives an online preview request for a plurality of target files, the download links of the target files are obtained in the database, and the download links of the target files are sent to all the clients, so that each client accesses the download links and downloads each target file, specifically: Data interaction is performed on the database to obtain the corresponding download link of the target file in the database; The download link is sent to all the clients, so that each client accesses the download link and downloads the target file from the database to the local.

4. The method of claim 2, wherein the method further comprises: According to the conversion address of each target file and the corresponding client IP, a plurality of addresses of analysis files are generated, specifically: When each client completes the download of the target file, the target file that needs to be analyzed is selected as the to-be-analyzed file in all target files, and the document analysis interface of the container service of kkFileView is called to analyze the to-be-analyzed file, and the conversion address of each to-be-analyzed file is recorded; The conversion address of each to-be-analyzed file is combined with the corresponding client IP to generate a plurality of addresses of analysis files.

5. The method of claim 4, wherein the method further comprises: The addresses of the analysis files are sent to the corresponding clients, so that each client accesses the address of each analysis file, calls the document analysis interface of the container service of kkFileView to analyze each target file, and generates a preview screen of each target file, specifically: The addresses of the analysis files are sent to the corresponding clients, so that each client stores the addresses of the analysis files in the redis queue, and the redis queue is polled regularly, so that the clients access the addresses of the analysis files in turn, call the document analysis interface of the corresponding service to analyze the corresponding target file, and generate a preview screen of the corresponding target file.

6. An apparatus for online previewing a file based on an intranet, characterized in that, The application is applied to a server connected with a plurality of clients, and the server is connected with a database; The database is used for storing download links of files; The device comprises a download module and an analysis module; The download module is used for obtaining the download links of the target files in the database and sending the download links to all the clients, so that each client accesses the download links and downloads each target file; The analysis module is used for generating a plurality of addresses of analysis files according to the conversion addresses of the target files and the corresponding client IPs; The addresses of the analysis files are sent to the corresponding clients, so that each client accesses the addresses of the analysis files, calls the document analysis interface of the container service of kkFileView to analyze each target file, and generates a preview screen of each target file.

7. The file online preview device based on intranet according to claim 6, wherein, Further comprising: a deployment module; The deployment module is used for installing and deploying the container service of kkFileView in the preset software of the client, so that the client connects the server through the preset software and pulls the Docker image.

8. The file online preview device based on intranet according to claim 6, wherein, The download module comprises a download unit; The download unit is used for interacting with the database to obtain the corresponding download links of the target files in the database; The download links are sent to all the clients, so that each client accesses the download links and downloads the target files from the database to the local.

9. The file online preview device based on intranet according to claim 6, wherein, The analysis module comprises an analysis request unit and an analysis unit: The analysis request unit is used for recording the conversion addresses of the target files when each client selects the target files that need to be analyzed as analysis files and calls the document analysis interface of the container service of kkFileView to analyze the analysis files, and combining the conversion addresses of the analysis files with the corresponding client IPs to generate a plurality of addresses of analysis files; The analysis unit is used for sending the addresses of the analysis files to the corresponding clients, so that each client stores the addresses of the analysis files in a redis queue, periodically polls the redis queue, so that the clients access the addresses of the analysis files in turn, call the document analysis interface of the corresponding service to analyze the corresponding target files, and generate a preview screen of the corresponding target files.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a stored computer program; wherein the computer program controls the device where the computer readable storage medium is located to execute the file online preview method based on the intranet as claimed in any one of claims 1 to 5 when running.

Citation Information

Patent Citations

  • Offline download method and system

    CN103428231A

  • Method for analyzing and downloading network file address of thin client

    CN103647841A

  • Method, system and device for distributed asynchronous analysis of Excel and storage medium

    CN114091409A

  • File online previewing method and device based on intranet and storage medium

    CN118550884A

  • Blockchain-based file processing method and apparatus, and device and storage medium

    WO2020248599A1