CN111291005B - 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
CN111291005B
CN111291005B CN202010068495.7A CN202010068495A CN111291005B CN 111291005 B CN111291005 B CN 111291005B CN 202010068495 A CN202010068495 A CN 202010068495A CN 111291005 B CN111291005 B CN 111291005B
Authority
CN
China
Prior art keywords
file
cloud server
locally
event
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010068495.7A
Other languages
Chinese (zh)
Other versions
CN111291005A (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 device, a terminal device, a system and a storage medium, wherein the method comprises the following steps: when detecting that a current file to be checked cannot be opened locally, 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 analyzing the file; and displaying the screenshot of the file content locally. According to the method and the device, under the condition that the terminals such as the mobile phone do not support file analysis in a specific format, the cloud server analyzes the file, and returns the file content screenshot, so that the purpose that a user can view the file is achieved, the experience of the user in terminal file viewing 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 method, an apparatus, a terminal device, a system, and a storage medium for viewing a file.
Background
At present, mobile phones need to be provided with mobile phone software support corresponding to suffix names on mobile phones, such as mobile phone version word opening, doc files, mobile phone version browser opening, html webpages and the like, when processing software corresponding to the suffix is not provided, such as files with the suffix of the form of xmind, the files are prompted to be incapable of being opened, failed to be opened or not supported, so that the existing scheme depends on local processing of the files, and analysis fails on the files which are not provided with the processing software on the mobile phones, or the files which are not provided with the processing software at all on the mobile phones, thereby causing inconvenience to mobile phone users in viewing the files.
Disclosure of Invention
The invention mainly aims to provide a file viewing method, a device, terminal equipment, a system and a storage medium, which can achieve the purpose of enabling a user to view a file under the condition that the terminal does not support analysis of the file, and provide convenience for the user.
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 opened locally, 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 analyzing the file;
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 a format query to the cloud server, and judging whether the file in the suffix format is supported;
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:
locally displaying a cloud analysis display page;
the step of locally displaying the file content screenshot comprises the following steps:
and displaying the file content screenshot on the cloud end analysis display page.
Optionally, the file viewing method further includes:
when detecting an operation event of a user on a page where the file content screenshot is located, reporting the operation event to the cloud server;
receiving a new file content screenshot returned correspondingly 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 operation event includes: a page flip event or a slide event, the slide event comprising: an up-down sliding event and a left-right sliding event.
Optionally, before the step of sending the file to the cloud server when detecting that the file to be currently viewed cannot be opened locally, the method further includes:
detecting the suffix format of the current file to be checked;
locally searching whether software matched with the suffix format of the file exists;
if the software matched with the suffix format of the file does not exist locally, judging that the file to be checked currently cannot be opened locally.
Optionally, after the step of locally searching whether the software matching the suffix format of the file exists, the method further includes:
if the software matched with the suffix format of the file exists locally, judging whether the software is installed or not;
and if the software is not installed, judging that the current file to be checked cannot be opened locally.
In addition, the embodiment of the invention also provides a file viewing device, which comprises:
the sending module is used for sending the file to the cloud server when detecting that the current file to be checked cannot be opened locally, and the cloud server analyzes the file;
the receiving module is used for receiving a file content screenshot returned by the cloud server after analyzing the file;
and the display module is used for locally displaying the screenshot of the file content.
In addition, the embodiment of the invention also provides a file viewing system, which comprises a terminal and a server connected with the terminal through a network, wherein:
the terminal comprises the file viewing device;
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 screenshot of file content, and return the screenshot to the terminal.
In addition, the embodiment of the invention also provides a terminal device, which comprises a memory, a processor and a file view program stored on the memory and capable of running on the processor, wherein the file view program realizes the steps of the file view method when being executed by the processor.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a file view program, and the file view program realizes the steps of the file view method when being executed by a processor.
According to the file viewing method, device, terminal equipment, system and storage medium, when the fact that the current file to be viewed cannot be opened locally is detected, the file is sent to a cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after analyzing the file; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminals such as mobile phones and the like do not support file analysis in a specific format, the cloud server analyzes the files and returns the file content screenshot, so that the purpose that a user can view the files is achieved, and the experience of the user in terminal file viewing is improved. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing 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 device of the present invention belongs;
FIG. 2 is a flow chart of an exemplary embodiment of a file viewing method of the present invention;
FIG. 3 is a flow chart of another exemplary embodiment of a file view method of the present invention;
FIG. 4 is a schematic view of a scene flow according to an embodiment of the present invention;
FIG. 5 is a flow chart of a still further exemplary embodiment of a document viewing method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: when detecting that a current file to be checked cannot be opened locally, 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 analyzing the file; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminals such as mobile phones and the like do not support file analysis in a specific format, the cloud server analyzes the files and returns the file content screenshot, so that the purpose that a user can view the files is achieved, and the experience of the user in terminal file viewing is improved. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing are improved, and convenience is provided for users.
According to the embodiment of the invention, the fact that mobile phone software support corresponding to the suffix name is required to be installed on a mobile phone to view the file at present, such as opening a doc file by a mobile phone version word, opening an html webpage and the like by a mobile phone version browser, and prompting that the file cannot be opened when processing software corresponding to the suffix is not installed, such as a file with the suffix of an xmind format.
Based on the above, the embodiment of the invention provides a solution, which can optimize user experience, and can achieve the purpose of enabling a user to view a file through the processing of cloud service under the condition that the mobile phone does not support analysis, thereby providing convenience for the user. The cloud server can enter a cloud analysis display page, transmit a file to the cloud server (the cloud server installs software supporting a format), return a content screenshot of the file, transmit an operation event to the cloud server for operation (page turning or sliding) when a user performs page turning or sliding operation on the cloud analysis display page, and then transmit the page after page turning or sliding for mobile phone end display. Therefore, as long as surfing the Internet is enabled, the cloud server can analyze the file of the type, and the convenient experience of viewing the file is brought to the mobile phone user.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the file viewing device of the present invention belongs. The file viewing device may be a device independent of the terminal device, capable of performing file browsing and corresponding data processing, and may be carried on the terminal device in the form of hardware or software. The terminal equipment can be an intelligent mobile terminal such as a mobile phone, a tablet personal computer and the like, and can also be a fixed terminal.
In this embodiment, the terminal device to which the file viewing apparatus belongs includes at least 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 the current file to be viewed, the file content screenshot received from the cloud server and other data 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 view program in the memory 130 when executed by the processor performs the steps of:
when detecting that a current file to be checked cannot be opened locally, 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 analyzing the file;
and displaying the screenshot of the file content locally.
Further, the file viewer program in the 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 a format query to the cloud server, and judging whether the file in the suffix format is supported;
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 program in the memory 130 when executed by the processor also performs the steps of:
locally displaying a cloud analysis display page;
the step of locally displaying the file content screenshot comprises the following steps:
and displaying the file content screenshot on the cloud end analysis display page.
Further, the file viewer program in the memory 130 when executed by the processor also performs the steps of:
when detecting an operation event of a user on a page where the file content screenshot is located, reporting the operation event to the cloud server;
receiving a new file content screenshot returned correspondingly 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 program in the memory 130 when executed by the processor also performs the steps of:
detecting the suffix format of the current file to be checked;
locally searching whether software matched with the suffix format of the file exists;
if the software matched with the suffix format of the file does not exist locally, judging that the file to be checked currently cannot be opened locally.
Further, the file viewer program in the memory 130 when executed by the processor also performs the steps of:
if the software matched with the suffix format of the file exists locally, judging whether the software is installed or not;
and if the software is not installed, judging that the current file to be checked cannot be opened locally.
According to the method, when the fact that the file to be checked cannot be opened locally 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 analyzing the file; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminals such as mobile phones and the like do not support file analysis in a specific format, the cloud server analyzes the files and returns the file content screenshot, so that the purpose that a user can view the files is achieved, and the experience of the user in terminal file viewing is improved. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing are improved, and convenience is provided for users.
The method embodiment of the invention is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
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 opened locally, sending the file to a cloud server, and analyzing the file by the cloud server;
the method execution body of the embodiment may be a file viewing device, where 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 the method execution body may also be directly a mobile terminal such as a mobile phone or a fixed terminal such as a PC.
The present embodiment is exemplified by a mobile phone.
Various files can be browsed on the mobile phone, wherein the format of the files needs to be in a format which can be opened by software installed on the mobile phone, namely when the files are opened, firstly searching software which can be opened by the file suffix on the mobile phone, and if the software which can be opened by the file suffix is not found, checking through the cloud server.
Specifically, as an implementation manner, when it is detected that a file to be currently checked cannot be opened locally, the file is sent to a cloud server, and the cloud server analyzes the file.
As another implementation mode, when detecting that the current file to be checked cannot be opened locally, firstly, acquiring a suffix format of the current file to be checked; then, a format query is initiated to the cloud server, and whether the cloud server supports checking the file in the suffix format is queried;
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 can be displayed locally on the mobile phone, and the cloud analysis display page can display a process in the analysis process of the cloud server, that is, can display the current file opening execution state to the user through the cloud analysis display page, for example, display "file is in analysis", "file is in opening", and the like. Subsequently, the cloud analysis display page can display a file content screenshot returned by the cloud server.
Of course, in the process of analyzing the file by the cloud server, the mobile phone end user can also switch to other pages, and then the user can select to switch back to the cloud analysis display page to check the file content to be opened.
The process of analyzing the file by the cloud server may be that according to the format of the file to be opened currently, software in the format can be opened on the search server, the file to be opened currently is opened through the searched software, screenshot is performed 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 first screenshot content of the cloud server is an initial screenshot interface of the file.
Step S102, receiving a file content screenshot returned by the cloud server after analyzing the file;
and step S103, locally displaying the screenshot of the file content.
And at the mobile phone end, receiving the file content screenshot returned by the cloud server after analyzing the file, and displaying the file content screenshot locally, so that a user can conveniently check the file which cannot be opened by the mobile phone end.
According to the method, when the fact that the file to be checked cannot be opened locally 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 analyzing the file; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminals such as mobile phones and the like do not support file analysis in a specific format, the cloud server analyzes the files and returns the file content screenshot, so that the purpose that a user can view the files is achieved, and the experience of the user in terminal file viewing is improved. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing are improved, and convenience is provided for users.
Referring to fig. 3, fig. 3 is a flow chart illustrating another exemplary embodiment of a file viewing method according to the present invention. The embodiment is based on the embodiment shown in fig. 2, and based on the embodiment, the file viewing method further includes:
step S104, when detecting an operation event of a user on a page where the file content screenshot is located, reporting the operation event to the cloud server;
the operational event includes: a page flip event or a slide event, the slide event comprising: an up-down sliding event and a left-right sliding event.
Step S105, receiving a new file content screenshot returned correspondingly by the cloud server after responding 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 present embodiment further includes a scheme of updating the content of the display file.
Specifically, in this embodiment, it is considered that, in a file that a user needs to view, multiple pages may need to be displayed, or one page of file content needs to slide left and right to display all the content, and the cloud server can only return one file content screenshot at a time, so that the corresponding file content screenshot can be requested to be returned to the server through a page turning operation, a vertical sliding operation or a horizontal sliding operation of the user, thereby realizing the display of all the content of the viewed file.
In specific implementation, taking a mobile phone as an example, a user can analyze a display page at the cloud end of the mobile phone to perform up-and-down sliding or left-and-right sliding operation, the mobile phone transmits an operation event of the user to the cloud server, the cloud server performs up-and-down sliding, left-and-right sliding and other operations on a file, and the sliding file content screenshot is transmitted to the mobile phone end, so that the user can browse the required file content conveniently.
According to the method, when the fact that the file to be checked cannot be opened locally 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 analyzing the file; and displaying the screenshot of the file content locally. Under the condition that terminals such as mobile phones and the like do not support file analysis in a specific format, analyzing the files through a cloud server, returning file content screenshots, and achieving the purpose that a user can view the files, so that the experience of the user in terminal file viewing is improved; in addition, the user can turn pages, slide up and down or slide left and right and the like on the page where the file content screenshot is located according to the need, 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, thereby facilitating the user to browse the required file content and further improving the flexibility of file browsing. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing are improved, and convenience is provided for users.
The following details of the embodiment scheme by specific examples:
as shown in FIG. 4, the example is shown in the form of an xmind mind guide file for browsing on a mobile phone, and the specific processing procedure is as follows:
firstly, a certain file (such as an example. Xmind mind map file) is failed to be opened on the mobile phone, because the apk capable of viewing the format is not installed on the mobile phone;
then, the mobile phone initiates a format query to a cloud (cloud server), and the cloud responds to support the format (. Xmind) file analysis;
then, the mobile phone uploads the example. Xmind file to the cloud server, and enters a cloud analysis display page;
then, the cloud server analyzes the example. Xmind file and transmits the screenshot to the mobile phone terminal;
and then, the mobile phone analyzes and displays the file content screenshot transmitted by the page display server at the cloud, so that the user can view the file content.
Then, the user can analyze the display page at the cloud to perform operations such as sliding up and down, sliding left and right, and the like, and the mobile phone transmits a user operation event to the server; and the server responds to the operations of up-and-down sliding, left-and-right sliding and the like of the user on the file, and the screen shots of the file contents after sliding are transmitted to the mobile phone terminal.
The mobile phone analyzes and displays the sliding file content screenshot transmitted by the page display server at the cloud, so that a user views the sliding content.
Compared with the prior art, according to the scheme, for terminal users such as mobile phones, when the mobile phones view files with unidentifiable suffixes, browsing operation on the files can be obtained through file analysis and event processing capacity of the cloud server, so that experience of the mobile phone users in file viewing 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 detecting that the file to be currently viewed cannot be opened locally, the method further includes, before sending the file to the cloud server:
step S1001, detecting a suffix format of a current file to be checked;
step S1002, searching locally whether software matched with the suffix format of the file exists;
in step S1003, if there is no software matching the suffix format of the file locally, it is determined that the current file to be checked cannot be opened locally.
Compared to the embodiment shown in fig. 3, this embodiment further includes: and detecting whether the file to be checked can be opened locally or not.
Specifically, when a user browses a file on a mobile phone, the mobile phone searches for software capable of opening the file suffix locally, and if the software capable of opening the file suffix is not found, the file is uploaded to a cloud server and is checked through the cloud server.
When detecting whether the current file to be checked can be opened locally, the following scheme is adopted:
as a way, detecting the suffix format of the current file to be checked; locally searching whether software matched with the suffix format of the file exists;
if the software matched with the suffix format of the file does not exist locally, judging that the file to be checked currently cannot be opened locally, uploading the file to a cloud server, and checking through the cloud server.
If the software matched with the suffix format of the file exists locally, judging whether the software is installed or not; 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, the fact that the file to be checked currently cannot be opened locally is judged, the file is uploaded to a cloud server, and the file is checked through the cloud server.
According to the method, whether the current file to be checked can be opened locally is detected, and when the fact that the current file to be checked cannot be opened locally is detected, the file is sent to a cloud server, and the cloud server analyzes the file; receiving a file content screenshot returned by the cloud server after analyzing the file; and displaying the screenshot of the file content locally. Under the condition that terminals such as mobile phones and the like do not support file analysis in a specific format, analyzing the files through a cloud server, returning file content screenshots, and achieving the purpose that a user can view the files, so that the experience of the user in terminal file viewing is improved; in addition, the user can turn pages, slide up and down or slide left and right and the like on the page where the file content screenshot is located according to the need, 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, thereby facilitating the user to browse the required file content and further improving the flexibility of file browsing. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing are improved, and convenience is provided for users.
In addition, the embodiment of the invention also provides a file viewing device, which comprises:
the sending module is used for sending the file to the cloud server when detecting that the current file to be checked cannot be opened locally, and the cloud server analyzes the file;
the receiving module is used for receiving a file content screenshot returned by the cloud server after analyzing the file;
and the display module is used for locally displaying the screenshot of the file content.
The present embodiment realizes the principle and implementation process of file viewing, please refer to the above embodiments, and the description thereof is omitted herein.
In addition, the embodiment of the invention also provides a file viewing system, which comprises a terminal and a server connected with the terminal through a network, wherein:
the terminal comprises the file viewing device according to the embodiment;
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 screenshot of file content, and return the screenshot to the terminal.
In this embodiment, the principle and implementation process of file viewing are implemented by interaction between the terminal and the server, please refer to the above embodiments, and are not described herein again.
In addition, the embodiment of the invention also provides a terminal device, which comprises a memory, a processor and a file view program stored on the memory and capable of running on the processor, wherein the file view program realizes the steps of the file view method when being executed by the processor.
Because all the technical solutions of all the embodiments are adopted when the file checking program is executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and the detailed description is omitted.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a file view program, and the file view program realizes the steps of the file view method when being executed by a processor.
Because all the technical solutions of all the embodiments are adopted when the file checking program is executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments are provided, and the detailed description is omitted.
Compared with the prior art, the file viewing method, the device, the terminal equipment, the system and the storage medium provided by the embodiment of the invention have the advantages that when the fact that the current file to be viewed cannot be opened locally 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 analyzing the file; and displaying the screenshot of the file content locally. Therefore, under the condition that the terminals such as mobile phones and the like do not support file analysis in a specific format, the cloud server analyzes the files and returns the file content screenshot, so that the purpose that a user can view the files is achieved, and the experience of the user in terminal file viewing is improved. And the analysis software of the cloud server is not limited by mobile terminal platforms such as mobile phones and the like, for example, the analysis software on a pc platform, so that the flexibility and operability of file viewing 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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method for viewing a document, comprising:
when detecting that a current file to be checked cannot be opened locally, 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 analyzing the file;
locally displaying the file content screenshot;
the file viewing method further comprises the following steps:
when detecting an operation event of a user on a page where the file content screenshot is located, reporting the operation event to the cloud server; the operational event includes: a page flip event or a slide event, the slide event comprising: an up-down sliding event and a left-right sliding event;
receiving a new file content screenshot returned correspondingly after the cloud server responds to the operation event;
and displaying the new file content screenshot corresponding to the operation event on the page.
2. The method of claim 1, wherein the step of sending the file to a cloud server further comprises:
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 a format query to the cloud server, and judging whether the file in the suffix format is supported;
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 claim 1, wherein the step of sending the file to a cloud server further comprises:
locally displaying a cloud analysis display page;
the step of locally displaying the file content screenshot comprises the following steps:
and displaying the file content screenshot on the cloud end analysis display page.
4. A method for viewing a file according to any one of claims 1 to 3, wherein, before the step of sending the file to the cloud server when it is detected that the file to be currently viewed cannot be opened locally, the method further comprises:
detecting the suffix format of the current file to be checked;
locally searching whether software matched with the suffix format of the file exists;
if the software matched with the suffix format of the file does not exist locally, judging that the file to be checked currently cannot be opened locally.
5. The method of claim 4, wherein the step of locally searching for whether there is software matching the suffix format of the file further comprises:
if the software matched with the suffix format of the file exists locally, judging whether the software is installed or not;
and if the software is not installed, judging that the current file to be checked cannot be opened locally.
6. A document viewing device, the document viewing device comprising:
the sending module is used for sending the file to the cloud server when detecting that the current file to be checked cannot be opened locally, and the cloud server analyzes the file;
the receiving module is used for receiving a file content screenshot returned by the cloud server after analyzing the file;
the display module is used for locally displaying the file content screenshot;
the sending module is further used for reporting the operation event to the cloud server when the operation event of the user on the page where the file content screenshot is located is detected; the operational event includes: a page flip event or a slide event, the slide event comprising: an up-down sliding event and a left-right sliding event;
the receiving module is also used for receiving a new file content screenshot returned correspondingly after the cloud server responds to the operation event;
the display module is further used for displaying the new file content screenshot corresponding to the operation event on the page.
7. A document viewing system comprising a terminal and a server in network connection with the terminal, wherein:
the terminal comprising the file viewing device of claim 6;
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.
8. The file viewing system of claim 7, wherein the file viewing system,
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 to the terminal.
9. A terminal device comprising a memory, a processor and a file view program stored on the memory and executable on the processor, the file view program when executed by the processor implementing the steps of the file view method according to any of claims 1-5.
10. A computer readable storage medium, wherein a file view program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the file view method according to any of claims 1-5.
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 CN111291005A (en) 2020-06-16
CN111291005B true 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)

Families Citing this family (1)

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

Citations (4)

* 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
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
CN106411721A (en) * 2016-11-22 2017-02-15 腾讯科技(深圳)有限公司 Instant message method, device and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO324754B1 (en) * 2006-09-27 2007-12-10 Tandberg Telecom As System and method of providing scalability in two or more streaming and / or archiving systems for conference calls
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
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 (4)

* 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
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
CN106411721A (en) * 2016-11-22 2017-02-15 腾讯科技(深圳)有限公司 Instant message method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈景岩 ; 迟学芬 ; 郑春雨 ; 崔慧娟 ; 汪志兵 ; .视频会议软件中文档共享的实现方案及比较.吉林大学学报(信息科学版).2006,(第03期),全文. *

Also Published As

Publication number Publication date
CN111291005A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
JP5947459B2 (en) Method, apparatus, program and recording medium for displaying push message
CN107368487B (en) Dynamic layout method, device and client for page components
US10733259B2 (en) Web page access method and apparatus
US9367403B2 (en) Terminal and application restoring method
RU2522103C2 (en) Update notification method and browser
EP2642412A1 (en) System and method for managing browsing histories of web browser
US20140325323A1 (en) Online video playing method and apparatus and computer readable medium
CN102968427A (en) Context-related data handling
CN109639749B (en) Cloud desktop access method, device, equipment and storage medium
US20150296015A1 (en) Method for synchronizing application and background server
WO2010051563A1 (en) Methods and systems for providing navigation bars in a browser
CN107124477A (en) Processing method, terminal and the server of web site contents
US11157576B2 (en) Method, system and terminal for performing search in a browser
WO2014176906A1 (en) Online video playing method and apparatus and computer readable 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
CN102323937A (en) Method and equipment for providing search result
CN108763297B (en) Webpage resource processing method and device and mobile terminal
CN110674444B (en) Method and terminal for downloading dynamic webpage
CN111291005B (en) File viewing method, device, terminal equipment, system and storage medium
CN109740014B (en) Screenshot management method, terminal device and storage medium
US20140074814A1 (en) Method and apparatus for switching search engine to repeat search
EP2998885A1 (en) Method and device for information search
US9306884B2 (en) Computer-based method and system for processing a file request in response to a message received from a user mobile device
CN109446451B (en) Webpage display method, device, medium and computing 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
GR01 Patent grant
GR01 Patent grant