CN111291005A - File viewing method, device, terminal equipment, system and storage medium - Google Patents

File viewing method, device, terminal equipment, system and storage medium Download PDF

Info

Publication number
CN111291005A
CN111291005A CN202010068495.7A CN202010068495A CN111291005A CN 111291005 A CN111291005 A CN 111291005A CN 202010068495 A CN202010068495 A CN 202010068495A CN 111291005 A CN111291005 A CN 111291005A
Authority
CN
China
Prior art keywords
file
cloud server
locally
screenshot
viewing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010068495.7A
Other languages
Chinese (zh)
Other versions
CN111291005B (en
Inventor
郑健平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010068495.7A priority Critical patent/CN111291005B/en
Publication of CN111291005A publication Critical patent/CN111291005A/en
Application granted granted Critical
Publication of CN111291005B publication Critical patent/CN111291005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file viewing method, a file viewing device, terminal equipment, a file viewing system and a storage medium, wherein the method comprises the following steps: when detecting that a current file to be checked cannot be locally opened, sending the file to a cloud server, and analyzing the file by the cloud server; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Under the condition that the terminal such as a mobile phone does not support the file analysis in the specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, the experience of the user in the terminal file check is improved, and convenience is provided for the user.

Description

File viewing method, device, terminal equipment, system and storage medium
Technical Field
The present invention relates to the field of file browsing technologies, and in particular, to a file viewing method, apparatus, terminal device, system, and storage medium.
Background
At present, mobile phone software support corresponding to a suffix name needs to be installed on a mobile phone for checking a file, for example, a mobile phone version word is opened, a doc file, a mobile phone version browser is opened, an html webpage and the like.
Disclosure of Invention
The invention mainly aims to provide a file viewing method, a file viewing device, terminal equipment, a file viewing system and a storage medium, which can achieve the purpose of enabling a user to view a file and provide convenience for the user under the condition that the terminal does not support file parsing.
In order to achieve the above object, the present invention provides a file viewing method, including:
when detecting that a current file to be checked cannot be locally opened, sending the file to a cloud server, and analyzing the file by the cloud server;
receiving a file content screenshot returned by the cloud server after the file is analyzed;
and displaying the screenshot of the file content locally.
Optionally, before the step of sending the file to the cloud server, the method further includes:
when detecting that the current file to be checked cannot be opened locally, acquiring a suffix format of the current file to be checked;
initiating format inquiry to the cloud server to determine whether the file in the suffix format is supported to be checked;
if a confirmation instruction of the cloud server is received, executing the following steps: and sending the file to a cloud server.
Optionally, after the step of sending the file to the cloud server, the method further includes:
the method comprises the steps of displaying a cloud analysis display page locally;
the step of displaying the screenshot of the file content locally comprises:
and displaying the file content screenshot on the cloud analysis display page.
Optionally, the file viewing method further includes:
when an operation event of a user on a page where the file content screenshot is located is detected, reporting the operation event to the cloud server;
receiving a new file content screenshot correspondingly returned after the cloud server responds to the operation event;
and displaying the new file content screenshot corresponding to the operation event on the page.
Optionally, the operational event includes: a page flip event or a slide event, the slide event comprising: up-down slide events and left-right slide events.
Optionally, when it is detected that the current file to be viewed cannot be locally opened, the step of sending the file to the cloud server further includes:
detecting the suffix format of the current file to be viewed;
locally searching whether software matched with a suffix format of the file exists;
and if software matched with the suffix format of the file does not exist locally, judging that the current file to be checked cannot be opened locally.
Optionally, after the step of locally searching whether software matching a suffix format of the file exists, the method further includes:
if software matched with the suffix format of the file exists locally, judging whether the software is installed;
and if the software is not installed, judging that the current file to be checked cannot be locally opened.
In addition, an embodiment of the present invention further provides a file viewing apparatus, where the file viewing apparatus includes:
the file checking module is used for checking whether a file to be checked cannot be locally opened or not according to the file to be checked;
the receiving module is used for receiving a file content screenshot returned by the cloud server after the file is analyzed;
and the display module is used for displaying the screenshot of the file content locally.
In addition, an embodiment of the present invention further provides a file viewing system, including a terminal and a server connected to the terminal through a network, where:
the terminal comprises the file viewing device;
and the server is used for receiving the file sent by the terminal, analyzing the file and returning a corresponding file content screenshot to the terminal according to an analysis result.
Optionally, the server is further configured to receive an operation event reported by the terminal, respond to the operation event, obtain a new file content screenshot, and return the new file content screenshot to the terminal.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a file viewing program that is stored in the memory and can be run on the processor, and when the file viewing program is executed by the processor, the steps of the file viewing method described above are implemented.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a file viewing program is stored on the computer-readable storage medium, and when executed by a processor, the file viewing program implements the steps of the file viewing method described above.
According to the file viewing method, the file viewing device, the terminal device, the system and the storage medium, when it is detected that a current file to be viewed cannot be locally opened, the file is sent to the cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support file analysis in a specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the user experience in the process of checking the file of the terminal is improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a file viewing apparatus of the present invention belongs;
FIG. 2 is a flowchart of an exemplary embodiment of a file viewing method of the present invention;
FIG. 3 is a schematic flow chart diagram illustrating another exemplary embodiment of a file viewing method according to the present invention;
FIG. 4 is a schematic view of a scenario flow according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a file viewing method according to still another exemplary embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when detecting that a current file to be checked cannot be locally opened, sending the file to a cloud server, and analyzing the file by the cloud server; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support file analysis in a specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the user experience in the process of checking the file of the terminal is improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
The embodiment of the invention considers that the mobile phone software support corresponding to the suffix name needs to be installed on the mobile phone when the mobile phone checks the file at present, such as the opening of a mobile phone version word, a doc file, the opening of a mobile phone version browser, an html webpage and the like, and when the processing software corresponding to the suffix is not installed, such as the file with the xmind format, the file cannot be opened.
Based on this, the embodiment of the invention provides a solution, which can optimize user experience, and achieve the purpose that a user can check files through the processing of the cloud service under the condition that a mobile phone does not support parsing, thereby providing convenience for the user. The specific implementation mode is that a cloud analysis display page can be entered, a file is transmitted to a cloud server (the cloud server installs software supporting the format), the cloud server returns a content screenshot of the file, meanwhile, when a user conducts up-down page turning or sliding operation on the cloud analysis display page, an operation event is transmitted to the cloud server for operation (page turning or sliding), and then the cloud server transmits the page turning or sliding page for mobile phone end display. Therefore, as long as the internet can be accessed, the cloud server can analyze the type of file, and the mobile phone user can be brought with the convenient experience of viewing the file.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the file viewing apparatus of the present invention belongs. The file viewing device can be a device which is independent of the terminal equipment and can browse files and process corresponding data, and the file viewing device can be borne on the terminal equipment in a hardware or software mode. The terminal equipment can be an intelligent mobile terminal such as a mobile phone and a tablet personal computer, and can also be a fixed terminal.
In this embodiment, the terminal device to which the file viewing apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a file viewing program, and the file viewing device can store data such as a current file to be viewed, a file content screenshot received from the cloud server, and the like in the memory 130; the output module 110 may be a display screen, a speaker, etc. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the file viewer in the memory 130 when executed by the processor performs the steps of:
when detecting that a current file to be checked cannot be locally opened, sending the file to a cloud server, and analyzing the file by the cloud server;
receiving a file content screenshot returned by the cloud server after the file is analyzed;
and displaying the screenshot of the file content locally.
Further, the file viewer in memory 130 when executed by the processor also performs the steps of:
when detecting that the current file to be checked cannot be opened locally, acquiring a suffix format of the current file to be checked;
initiating format inquiry to the cloud server to determine whether the file in the suffix format is supported to be checked;
if a confirmation instruction of the cloud server is received, executing the following steps: and sending the file to a cloud server.
Further, the file viewer in memory 130 when executed by the processor also performs the steps of:
the method comprises the steps of displaying a cloud analysis display page locally;
the step of displaying the screenshot of the file content locally comprises:
and displaying the file content screenshot on the cloud analysis display page.
Further, the file viewer in memory 130 when executed by the processor also performs the steps of:
when an operation event of a user on a page where the file content screenshot is located is detected, reporting the operation event to the cloud server;
receiving a new file content screenshot correspondingly returned after the cloud server responds to the operation event;
and displaying the new file content screenshot corresponding to the operation event on the page.
Further, the file viewer in memory 130 when executed by the processor also performs the steps of:
detecting the suffix format of the current file to be viewed;
locally searching whether software matched with a suffix format of the file exists;
and if software matched with the suffix format of the file does not exist locally, judging that the current file to be checked cannot be opened locally.
Further, the file viewer in memory 130 when executed by the processor also performs the steps of:
if software matched with the suffix format of the file exists locally, judging whether the software is installed;
and if the software is not installed, judging that the current file to be checked cannot be locally opened.
According to the scheme, when the situation that the current file to be checked cannot be locally opened is detected, the file is sent to the cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support file analysis in a specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the user experience in the process of checking the file of the terminal is improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
Based on the above terminal device architecture but not limited to the above architecture, embodiments of the method of the present invention are presented.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of a file viewing method according to the present invention. The file viewing method comprises the following steps:
step S101, when detecting that a current file to be checked cannot be locally opened, sending the file to a cloud server, and analyzing the file by the cloud server;
the execution main body of the method in this embodiment may be a file viewing device, and the file viewing device may be disposed on a mobile terminal such as a mobile phone, or may be disposed on a fixed terminal such as a PC, and in addition, the execution main body of the method may also be directly a mobile terminal such as a mobile phone, or a fixed terminal such as a PC.
This embodiment is exemplified by a mobile phone.
Various files can be browsed on the mobile phone, wherein the format of the file needs to be a format which can be opened by software installed on the mobile phone, that is, when the file is opened, software which can open the suffix of the file on the mobile phone is firstly searched, and if the software which can open the suffix of the file is not found, the scheme of the embodiment can be checked through the cloud server.
Specifically, as an implementation manner, when it is detected that a current file to be viewed cannot be locally opened, the file is sent to a cloud server, and the cloud server analyzes the file.
As another embodiment, when it is detected that a current file to be viewed cannot be locally opened, first, a suffix format of the current file to be viewed is obtained; then, format inquiry is sent to the cloud server, and whether the cloud server supports checking the file in the suffix format or not is inquired;
and if a confirmation instruction of the cloud server is received, the file is sent to the cloud server, and the cloud server analyzes the file.
Further, as another implementation manner, after the file is sent to the cloud server, a cloud analysis display page may be displayed locally on the mobile phone, where the cloud analysis display page may show a process in an analysis process of the cloud server, that is, a current file opening execution state, such as "file in analysis", "file in opening", and the like, may be shown to the user through the cloud analysis display page. Subsequently, the cloud analysis display page can display a file content screenshot returned by the cloud server.
Certainly, in the process of analyzing the file by the cloud server, the user at the mobile phone end can also switch to other pages, and then the user can select to switch back to the cloud analysis display page to check the content of the file to be opened.
The process of analyzing the file by the cloud server can be that software in the format can be opened on the search server according to the format of the current file to be opened, the current file to be opened is opened through the searched software, screenshot is conducted on the content of the file, and the screenshot of the content of the file is fed back to a cloud analysis display page of the mobile phone to be displayed. In general, the cloud server captures the content of the file for the first time as an initial screenshot interface of the file.
Step S102, receiving a file content screenshot returned by the cloud server after the file is analyzed;
and step S103, locally displaying the screenshot of the file content.
And at the mobile phone end, receiving a file content screenshot returned by the cloud server after the file is analyzed, and displaying the file content screenshot locally, so that a user can check the file which cannot be opened by the mobile phone end conveniently.
According to the scheme, when the situation that the current file to be checked cannot be locally opened is detected, the file is sent to the cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support file analysis in a specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the user experience in the process of checking the file of the terminal is improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
Referring to fig. 3, fig. 3 is a flowchart illustrating another exemplary embodiment of the file viewing method according to the present invention. Based on the embodiment shown in fig. 2, in this embodiment, on the basis of the embodiment, the file viewing method further includes:
step S104, when an operation event of a user on a page where the file content screenshot is located is detected, reporting the operation event to the cloud server;
the operational events include: a page flip event or a slide event, the slide event comprising: up-down slide events and left-right slide events.
Step S105, receiving a new file content screenshot correspondingly returned after the cloud server responds to the operation event;
and step S106, displaying the new file content screenshot corresponding to the operation event on the page.
Compared with the embodiment shown in fig. 2, the scheme of the present embodiment further includes a scheme of updating the content of the display file.
Specifically, in this embodiment, it is considered that a plurality of pages of a file to be viewed by a user may need to be displayed, or a page of file content needs to be slid left and right to display all the content, and the cloud server can only return one screenshot of the file content at a time, so that the corresponding screenshot of the file content can be returned to the server by a page turning operation, a vertical sliding operation, or a horizontal sliding operation of the user, thereby displaying all the content of the viewed file.
During specific implementation, taking a mobile phone as an example, a user can perform up-down sliding or left-right sliding operation on a cloud analysis display page at a mobile phone end, the mobile phone transmits an operation event of the user to a cloud server, the cloud server performs up-down sliding, left-right sliding and other operations on a file, and a screenshot of the content of the file after sliding is transmitted to the mobile phone end, so that the user can browse the required file content conveniently.
According to the scheme, when the situation that the current file to be checked cannot be locally opened is detected, the file is sent to the cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support the analysis of the file with the specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the experience of the user in the process of checking the file of the terminal is improved; in addition, the user can also perform operations such as page turning, up-and-down sliding or left-and-right sliding on the page where the file content screenshot is located according to needs, the terminal reports the operation event to the cloud server, and the cloud server correspondingly returns a new file content screenshot to the terminal after responding to the operation event; and the terminal displays a new file content screenshot corresponding to the operation event on the page, so that a user can browse the required file content conveniently, and the flexibility of file browsing is further improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
The scheme of the embodiment is described in detail by the following specific examples:
as shown in fig. 4, the xmnd mind map file is taken as an example, and the specific processing procedure is as follows:
first, opening a certain file (such as example. xmind mind map file) on the mobile phone fails because there is no apk installed on the mobile phone that can view this format;
then, the mobile phone sends a format inquiry to a cloud (cloud server), and the cloud responds to support the analysis of the format (.xmnd) file;
then, the mobile phone uploads the example. xmnd file to a cloud server, and meanwhile, the mobile phone enters a cloud analysis display page;
then, the cloud server analyzes the example. xmnd file and transmits the screenshot to the mobile phone terminal;
and then, the mobile phone analyzes and displays the screenshot of the file content transmitted by the page display server at the cloud end, so that the user can check the file content.
Then, the user can perform operations such as up-down sliding, left-right sliding and the like on the cloud analysis display page, and the mobile phone transmits the user operation event to the server; the server responds to the file to the operations of the user such as up-down sliding, left-right sliding and the like, and the content screenshot of the file after sliding is transmitted to the mobile phone terminal.
The mobile phone analyzes and displays the slid file content screenshot transmitted by the page display server at the cloud end, so that the user can view the slid content.
Compared with the prior art, for terminal users such as mobile phones, when the mobile phones look over files which cannot be identified by suffixes, the file browsing operation can be obtained through the file analysis and event processing capacity of the cloud server, and therefore the experience of the mobile phone users in file looking over is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a file viewing method according to still another exemplary embodiment of the present invention. Based on the embodiment shown in fig. 3, in step S101, when it is detected that the current file to be viewed cannot be locally opened, before sending the file to the cloud server, the method further includes:
step S1001, detecting a suffix format of a current file to be checked;
step S1002, whether software matched with the suffix format of the file exists is searched locally;
step S1003, if software matching with the suffix format of the file does not exist locally, determining that it is detected that the current file to be checked cannot be opened locally.
Compared with the embodiment shown in fig. 3, the present embodiment further includes: and detecting whether the current file to be viewed can be opened locally.
Specifically, when a user browses a file on the mobile phone, the mobile phone firstly searches software capable of opening the file suffix locally, if the software capable of opening the file suffix is not found, the file is uploaded to the cloud server, and the file is checked through the cloud server.
When detecting whether a current file to be checked can be locally opened, the following scheme is specifically adopted:
as one way, detecting the suffix format of the current file to be viewed; locally searching whether software matched with a suffix format of the file exists;
and if software matched with the suffix format of the file does not exist locally, judging that the current file to be checked cannot be opened locally, uploading the file to a cloud server, and checking through the cloud server.
If software matched with the suffix format of the file exists locally, judging whether the software is installed; if the software matched with the suffix format of the file is installed locally, the software is directly called to open the file, if the software is not installed, it is judged that the current file to be checked cannot be opened locally, the file is uploaded to a cloud server, and checking is carried out through the cloud server.
According to the scheme, whether the current file to be checked can be locally opened is detected, when the current file to be checked is detected to be incapable of being locally opened, the file is sent to the cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support the analysis of the file with the specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the experience of the user in the process of checking the file of the terminal is improved; in addition, the user can also perform operations such as page turning, up-and-down sliding or left-and-right sliding on the page where the file content screenshot is located according to needs, the terminal reports the operation event to the cloud server, and the cloud server correspondingly returns a new file content screenshot to the terminal after responding to the operation event; and the terminal displays a new file content screenshot corresponding to the operation event on the page, so that a user can browse the required file content conveniently, and the flexibility of file browsing is further improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
In addition, an embodiment of the present invention further provides a file viewing apparatus, where the file viewing apparatus includes:
the file checking module is used for checking whether a file to be checked cannot be locally opened or not according to the file to be checked;
the receiving module is used for receiving a file content screenshot returned by the cloud server after the file is analyzed;
and the display module is used for displaying the screenshot of the file content locally.
For the principle and implementation process for implementing file viewing in this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, an embodiment of the present invention further provides a file viewing system, including a terminal and a server connected to the terminal through a network, where:
the terminal comprises the file viewing device in the embodiment;
and the server is used for receiving the file sent by the terminal, analyzing the file and returning a corresponding file content screenshot to the terminal according to an analysis result.
Further, the server is further configured to receive an operation event reported by the terminal, respond to the operation event, obtain a new file content screenshot, and return the new file content screenshot to the terminal.
In this embodiment, please refer to the above embodiments, which are not described herein again.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a file viewing program that is stored in the memory and can be run on the processor, and when the file viewing program is executed by the processor, the steps of the file viewing method described above are implemented.
Since the viewer program in this document adopts all the technical solutions of all the foregoing embodiments when being executed by the processor, at least all the advantages brought by all the technical solutions of all the foregoing embodiments are provided, and no further description is provided herein.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a file viewing program is stored on the computer-readable storage medium, and when executed by a processor, the file viewing program implements the steps of the file viewing method described above.
Since the viewer program in this document adopts all the technical solutions of all the foregoing embodiments when being executed by the processor, at least all the advantages brought by all the technical solutions of all the foregoing embodiments are provided, and no further description is provided herein.
Compared with the prior art, according to the file viewing method, the file viewing device, the terminal device, the system and the storage medium provided by the embodiment of the invention, when the current file to be viewed is detected to be incapable of being locally opened, the file is sent to the cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after the file is analyzed; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminal such as a mobile phone does not support file analysis in a specific format, the file is analyzed through the cloud server, and the screenshot of the content of the file is returned, so that the purpose that a user can check the file is achieved, and the user experience in the process of checking the file of the terminal is improved. And the analysis software of the cloud server can not be limited by mobile terminal platforms such as mobile phones, for example, the analysis software can be on a pc platform, so that the flexibility and operability of file checking are improved, and convenience is provided for users.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. A method for viewing a file, comprising:
when detecting that a current file to be checked cannot be locally opened, sending the file to a cloud server, and analyzing the file by the cloud server;
receiving a file content screenshot returned by the cloud server after the file is analyzed;
and displaying the screenshot of the file content locally.
2. The method of viewing a file of claim 1, wherein the step of sending the file to a cloud server is preceded by the step of:
when detecting that the current file to be checked cannot be opened locally, acquiring a suffix format of the current file to be checked;
initiating format inquiry to the cloud server to determine whether the file in the suffix format is supported to be checked;
if a confirmation instruction of the cloud server is received, executing the following steps: and sending the file to a cloud server.
3. The method of viewing a file of claim 1, wherein the step of sending the file to a cloud server is followed by the step of:
the method comprises the steps of displaying a cloud analysis display page locally;
the step of displaying the screenshot of the file content locally comprises:
and displaying the file content screenshot on the cloud analysis display page.
4. The file viewing method of claim 1, further comprising:
when an operation event of a user on a page where the file content screenshot is located is detected, reporting the operation event to the cloud server;
receiving a new file content screenshot correspondingly returned after the cloud server responds to the operation event;
and displaying the new file content screenshot corresponding to the operation event on the page.
5. The file viewing method of claim 4, wherein the operational event comprises: a page flip event or a slide event, the slide event comprising: up-down slide events and left-right slide events.
6. The file viewing method according to any one of claims 1 to 5, wherein the step of sending the file to be viewed to the cloud server when detecting that the file cannot be locally opened further comprises:
detecting the suffix format of the current file to be viewed;
locally searching whether software matched with a suffix format of the file exists;
and if software matched with the suffix format of the file does not exist locally, judging that the current file to be checked cannot be opened locally.
7. The file viewing method of claim 6, wherein said step of locally finding whether software matching a suffix format of said file exists further comprises:
if software matched with the suffix format of the file exists locally, judging whether the software is installed;
and if the software is not installed, judging that the current file to be checked cannot be locally opened.
8. A file viewing apparatus, characterized in that the file viewing apparatus comprises:
the file checking module is used for checking whether a file to be checked cannot be locally opened or not according to the file to be checked;
the receiving module is used for receiving a file content screenshot returned by the cloud server after the file is analyzed;
and the display module is used for displaying the screenshot of the file content locally.
9. A file viewing system comprising a terminal and a server connected to the terminal via a network, wherein:
the terminal comprises the file viewing device of claim 8;
and the server is used for receiving the file sent by the terminal, analyzing the file and returning a corresponding file content screenshot to the terminal according to an analysis result.
10. A document viewing system according to claim 9,
and the server is also used for receiving the operation event reported by the terminal, responding to the operation event, acquiring a new file content screenshot, and returning the new file content screenshot to the terminal.
11. A terminal device, characterized in that the terminal device comprises a memory, a processor and a file viewer stored on the memory and executable on the processor, the file viewer when executed by the processor implementing the steps of the file viewing method according to any one of claims 1-7.
12. A computer-readable storage medium, having stored thereon a file viewing program which, when executed by a processor, implements the steps of the file viewing method of any one of claims 1-7.
CN202010068495.7A 2020-01-19 2020-01-19 File viewing method, device, terminal equipment, system and storage medium Active CN111291005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010068495.7A CN111291005B (en) 2020-01-19 2020-01-19 File viewing method, device, terminal equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010068495.7A CN111291005B (en) 2020-01-19 2020-01-19 File viewing method, device, terminal equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN111291005A true CN111291005A (en) 2020-06-16
CN111291005B CN111291005B (en) 2023-05-02

Family

ID=71023463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010068495.7A Active CN111291005B (en) 2020-01-19 2020-01-19 File viewing method, device, terminal equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN111291005B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116361847A (en) * 2023-02-20 2023-06-30 海道(深圳)教育科技有限责任公司 Mobile device-based screen capturing prevention method and system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1325415A2 (en) * 2000-10-04 2003-07-09 Network Appliance Corporation Recovery of file system data in file servers with mirrored file system volumes
US6886013B1 (en) * 1997-09-11 2005-04-26 International Business Machines Corporation HTTP caching proxy to filter and control display of data in a web browser
US20080084470A1 (en) * 2006-09-27 2008-04-10 Tandberg Telecom As System, method and computer program for providing scalability in two or more streaming and/or archiving systems for video conference calls
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
CN103838799A (en) * 2012-11-27 2014-06-04 北京金山云科技有限公司 Method, terminal device, cloud server and system for recommending installing software
CN104991911A (en) * 2015-06-19 2015-10-21 广州视睿电子科技有限公司 File sharing method and system
CN105120109A (en) * 2015-09-11 2015-12-02 广州视睿电子科技有限公司 File displaying method and system
CN105426532A (en) * 2015-12-17 2016-03-23 百度在线网络技术(北京)有限公司 File operation method and device
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN106411721A (en) * 2016-11-22 2017-02-15 腾讯科技(深圳)有限公司 Instant message method, device and system
CN108010571A (en) * 2017-12-26 2018-05-08 苏州麦迪斯顿医疗科技股份有限公司 Method, system, equipment and the storage medium that a kind of medical image is shown
CN108763416A (en) * 2018-05-23 2018-11-06 广州视源电子科技股份有限公司 Multimedia file methods of exhibiting, device, computer equipment and storage medium
CN110290393A (en) * 2019-07-23 2019-09-27 北京达佳互联信息技术有限公司 File acquisition method and device, server and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6886013B1 (en) * 1997-09-11 2005-04-26 International Business Machines Corporation HTTP caching proxy to filter and control display of data in a web browser
EP1325415A2 (en) * 2000-10-04 2003-07-09 Network Appliance Corporation Recovery of file system data in file servers with mirrored file system volumes
US20080084470A1 (en) * 2006-09-27 2008-04-10 Tandberg Telecom As System, method and computer program for providing scalability in two or more streaming and/or archiving systems for video conference calls
CN103838799A (en) * 2012-11-27 2014-06-04 北京金山云科技有限公司 Method, terminal device, cloud server and system for recommending installing software
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
CN104991911A (en) * 2015-06-19 2015-10-21 广州视睿电子科技有限公司 File sharing method and system
CN105120109A (en) * 2015-09-11 2015-12-02 广州视睿电子科技有限公司 File displaying method and system
CN105426532A (en) * 2015-12-17 2016-03-23 百度在线网络技术(北京)有限公司 File operation method and device
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN106411721A (en) * 2016-11-22 2017-02-15 腾讯科技(深圳)有限公司 Instant message method, device and system
CN108010571A (en) * 2017-12-26 2018-05-08 苏州麦迪斯顿医疗科技股份有限公司 Method, system, equipment and the storage medium that a kind of medical image is shown
CN108763416A (en) * 2018-05-23 2018-11-06 广州视源电子科技股份有限公司 Multimedia file methods of exhibiting, device, computer equipment and storage medium
CN110290393A (en) * 2019-07-23 2019-09-27 北京达佳互联信息技术有限公司 File acquisition method and device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈景岩;迟学芬;郑春雨;崔慧娟;汪志兵;: "视频会议软件中文档共享的实现方案及比较" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116361847A (en) * 2023-02-20 2023-06-30 海道(深圳)教育科技有限责任公司 Mobile device-based screen capturing prevention method and system
CN116361847B (en) * 2023-02-20 2024-03-12 海道(深圳)教育科技有限责任公司 Mobile device-based screen capturing prevention method and system

Also Published As

Publication number Publication date
CN111291005B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN107368487B (en) Dynamic layout method, device and client for page components
US10733259B2 (en) Web page access method and apparatus
RU2522103C2 (en) Update notification method and browser
US8700006B2 (en) Method and system for recommending content among mobile phone users
US9367403B2 (en) Terminal and application restoring method
US9372885B2 (en) System and methods thereof for dynamically updating the contents of a folder on a device
EP2642412A1 (en) System and method for managing browsing histories of web browser
JP2016522483A (en) Page rollback control method, page rollback control device, terminal, program, and recording medium
CN111753064B (en) Man-machine interaction method and device
EP2866158A1 (en) Method for reader to provide service, reader, terminal and computer storage medium
CN101960452B (en) Methods, apparatuses and computer program products for providing a search form
KR20130059738A (en) System and method for recommending application using contents analysis
CN117390330A (en) Webpage access method and device
CN103581706A (en) Method and system for installing applications of smart television
CN107124477A (en) Processing method, terminal and the server of web site contents
CN114065080B (en) Page rendering method, device, equipment and computer readable storage medium
US20190073428A1 (en) Method, system and terminal for performing search in a browser
US20140165212A1 (en) System and methods thereof for tracking and preventing execution of restricted applications
KR101777035B1 (en) Method and device for filtering address, program and recording medium
CN109740014B (en) Screenshot management method, terminal device and storage medium
CN111291005B (en) File viewing method, device, terminal equipment, system and storage medium
CN110674444A (en) Method and terminal for downloading dynamic webpage
US20140074814A1 (en) Method and apparatus for switching search engine to repeat search
EP2998885A1 (en) Method and device for information search
CN105701231A (en) Network resource search system and 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
GR01 Patent grant
GR01 Patent grant