CN108388659B - File browsing method and device - Google Patents
File browsing method and device Download PDFInfo
- Publication number
- CN108388659B CN108388659B CN201810187997.4A CN201810187997A CN108388659B CN 108388659 B CN108388659 B CN 108388659B CN 201810187997 A CN201810187997 A CN 201810187997A CN 108388659 B CN108388659 B CN 108388659B
- Authority
- CN
- China
- Prior art keywords
- file
- browsing
- equipment
- browsed
- opened
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/168—Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a file browsing method and device. The file browsing method comprises the following steps: the second equipment receives a broadcast message sent by the first equipment, wherein the broadcast message comprises the file type of a file to be browsed; the second equipment confirms that the file to be browsed can be opened according to the file type of the file to be browsed; and the second equipment receives the file to be browsed sent by the first equipment, opens the file to be browsed and sends the opened file content to the first equipment in a picture format. The method provided by the embodiment of the invention can realize the mutual browsing of the files among the mobile devices, and improves the convenience and flexibility of the mobile terminal when browsing the files.
Description
Technical Field
The present application relates to, but not limited to, the field of communications technologies, and in particular, to a method and an apparatus for browsing a file.
Background
With the continuous development of communication technology, mobile devices are widely used, and the intellectualization and networking of the mobile devices make the mobile devices quite popular in the requirements of processing files, such as displaying documents like WORD, PDF, CAJ, etc. However, for some relatively small file formats, a file cannot be opened without installing a corresponding program on the mobile device; in addition, when the user does not know how to open the file, or which application to open the file, or does not wish to download the required application for browsing the file only once, it is difficult to implement the function of browsing the file through the mobile device, and the current requirement of browsing the file by the user cannot be satisfied.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention provide a method and an apparatus for browsing files, which can implement mutual browsing of files between mobile devices, and improve convenience and flexibility of a mobile terminal when browsing files.
The embodiment of the invention provides a file browsing method, which comprises the following steps:
the method comprises the steps that a second device receives a broadcast message sent by a first device, wherein the broadcast message comprises a file type of a file to be browsed;
the second equipment confirms that the file to be browsed can be opened according to the file type of the file to be browsed;
and the second equipment receives the file to be browsed sent by the first equipment, opens the file to be browsed and sends the opened file content to the first equipment in a picture format.
Optionally, in the file browsing method described above, the opening, by the second device, the file to be browsed includes:
the second device opens the file to be browsed through a background application program;
the method further comprises the following steps:
and the second equipment receives a page turning browsing request sent by the first equipment, performs page turning processing on the currently opened file, and sends the content of the file subjected to page turning processing to the first equipment in a picture format.
Optionally, in the file browsing method described above, the determining, by the second device, that the file to be browsed can be opened according to the file type of the file to be browsed includes:
the second equipment confirms that the equipment is provided with a corresponding application program according to the file type;
and the second equipment confirms that the file to be browsed is a file conforming to the display format according to the file type.
Optionally, in the file browsing method described above, before the second device receives the file to be browsed sent by the first device, the method further includes:
and the second equipment sends a response message to the first equipment, and the second equipment is the sending equipment of the first response message received by the first equipment.
Optionally, in the file browsing method described above, the method further includes:
the second equipment receives a browsing ending request sent by the first equipment;
and the second equipment closes the currently opened file according to the browsing ending request and deletes the currently opened file.
An embodiment of the present invention further provides a file browsing apparatus, including:
the communication module is used for receiving a first broadcast message, wherein the first broadcast message comprises a file type of a first file;
the confirming module is used for confirming that the first file can be opened according to the file type of the first file;
the communication module is further used for receiving the first file;
the processing module is used for opening the first file;
the communication module is further configured to send the first file content opened by the processing module to the sending device of the first broadcast message in a picture format.
Alternatively, in the file browsing apparatus as described above,
the processing module opens the first file, including: opening the first file through a background application program;
the communication module is further configured to receive a first page turning browsing request sent by the sending device of the first broadcast message;
the processing module is further used for performing page turning processing on the first file;
the communication module is further configured to send the first file content after the page turning processing to the sending device of the first broadcast message in a picture format.
Optionally, in the file browsing apparatus as described above, the determining module determines that the first file can be opened according to the file type of the first file, including:
confirming that the equipment to which the file browsing device belongs is provided with a corresponding application program according to the file type;
and confirming that the first file is a file conforming to the display format according to the file type.
Alternatively, in the file browsing apparatus as described above,
the communication module is further configured to receive a first browsing end request sent by the sending device of the first broadcast message;
the processing module is further configured to close the first file according to the first browsing end request, and delete the first file.
Alternatively, in the file browsing apparatus as described above,
the communication module is further configured to send one or more of a second broadcast message, a second file, a second page turning browsing request, and a second browsing end request, where the second broadcast message includes a file type of the second file;
the communication module is further configured to receive the second file content sent by the device for opening the second file in the picture format and the second file content after the page turning process.
According to the file browsing method and device provided by the embodiment of the invention, the second device confirms that the file to be browsed which cannot be opened by the first device can be opened according to the file type in the received broadcast message, and then when the second device receives the file to be browsed, the second device opens the file and sends the content of the opened file to the first device in a picture format; according to the file browsing method provided by the embodiment of the invention, the file is browsed in a mutual-aid manner by using a local area network communication manner and a cross-device operation manner, so that the convenience and flexibility of the mobile terminal in browsing the file are improved.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a file browsing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another file browsing method according to an embodiment of the present invention;
fig. 3 is a flowchart of another file browsing method according to an embodiment of the present invention;
fig. 4 is a signaling interaction flowchart of a file browsing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a file browsing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an application scenario of the file browsing apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The following specific embodiments of the present invention may be combined, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a flowchart of a file browsing method according to an embodiment of the present invention. The file browsing method provided by the embodiment of the invention can comprise the following steps:
s110, the second equipment receives a broadcast message sent by the first equipment, wherein the broadcast message comprises the file type of a file to be browsed;
and S120, the second device confirms that the file to be browsed can be opened according to the file type of the file to be browsed.
In the file browsing method provided by the embodiment of the invention, in order to realize a mutual browsing mode of files between mobile devices, the first device and the second device in the embodiment of the invention are devices which can communicate through a local area network, and a point-to-point communication mode can be realized between the two devices, that is, only the two devices participate in the communication process of the file browsing method provided by the embodiment of the invention, and the forwarding of a server is not needed.
In the embodiment of the present invention, a first device is a device having a file browsing requirement, and when a file to be browsed by the first device cannot be opened, a broadcast message may be sent to multiple devices that can establish a communication connection with the first device in a local area network, where the broadcast message may be transmitted through bluetooth or sent through a User Datagram Protocol (UDP) in the local area network, and the broadcast message is used to seek for mutual browsing of the device that can open the file to be browsed, and a precondition for browsing the file is that the device has an application program that can open the file, so that the broadcast message includes a file type of the file to be browsed, and the device that receives the broadcast message may instruct, according to the file type, whether the file requested to be browsed by the first device can be opened. The second device in the embodiment of the present invention is a device that receives the broadcast message and determines that a file to be browsed can be opened, and after receiving the broadcast message, the second device acquires a file type of the file to be browsed and can identify which application program the file of the type is opened through, and determines that the second device itself has the application program for opening the file to be browsed, that is, determines that the second device has the capability of opening the file to be browsed.
It should be noted that, in the embodiment of the present invention, the broadcast message sent by the first device may be received not only by the second device in the network, but also by other devices in the network, and these devices may receive the broadcast message, but determine that they cannot open the file of the type according to the file type.
And S130, the second equipment receives the file to be browsed sent by the first equipment, opens the file to be browsed, and sends the opened file content to the first equipment in a picture format.
In the embodiment of the present invention, after the second device confirms that it can open the file to be browsed, it may respond to the first device, and is configured to instruct the first device to send the file to be browsed to the second device, and after the second device receives the file to be browsed sent by the first device, execute an operation of opening the file to be browsed; because the file has the browsing requirement and is the first device, the second device can also return the file to the first device after opening the file to be browsed. Based on the actual situation that the first device cannot browse files and the mobile terminal has a conventional function of browsing pictures, when the second device returns the file content, the opened file content can be sent to the first device in a picture format, so that a user can browse the file content on the first device in the picture format, namely, a mutual browsing mode of the files is realized.
The second device in the embodiment of the present invention is a device that actually opens a file, and also returns the content of the opened file to the first device in a picture format, so that a user of the first device can browse the content in a relatively convenient manner.
It should be noted that, in the file browsing method in the embodiment of the present invention, when a certain file cannot be opened by the first device, there is no need to search and install a corresponding application program, and there is no need to find another person to help solve the problem of opening the file, and there is no need to forward the file that cannot be opened by the first device through the server, and there is no need to upload the file to some online software of the browser for reference. According to the file browsing method provided by the embodiment of the invention, only through the interactive operation among the mobile devices, the operation is simpler when the cross-device opening of the file is realized, and the convenience and the flexibility are higher.
According to the file browsing method provided by the embodiment of the invention, the second device confirms that the file to be browsed which cannot be opened by the first device can be opened according to the file type in the received broadcast message, and then when the second device receives the file to be browsed, the second device opens the file and sends the content of the opened file to the first device in a picture format; according to the file browsing method provided by the embodiment of the invention, the file is browsed in a mutual-aid manner by using a local area network communication manner and a cross-device operation manner, so that the convenience and flexibility of the mobile terminal in browsing the file are improved.
Optionally, fig. 2 is a flowchart of another file browsing method according to an embodiment of the present invention, and on the basis of the embodiment shown in fig. 1, in the method according to the embodiment of the present invention, an implementation manner of opening the file to be browsed by the second device may be to open the file to be browsed by using a background application program.
The method provided by the embodiment of the invention can also comprise the following steps:
and S140, the second device receives the page turning browsing request sent by the first device, performs page turning processing on the currently opened file, and sends the content of the file subjected to page turning processing to the first device in a picture format.
In the embodiment of the present invention, when the second device opens the file to be browsed received from the first device side, the file may be opened in the background, that is, an application program for opening the file is installed in the second device, and when the second device receives the file to be browsed, the file may be opened through the background application program, and the content of the file is not displayed on the display screen of the second device in the whole process of file browsing executed by the second device, so that normal use of the device by a user of the second device is not affected, and security when the first device requests the file to browse for assistance is also ensured.
In an implementation manner of the embodiment of the present invention, in the actual operation of opening a file, the second device may open the file all at once, generate a picture file for each page of the file, and send all the picture files to the first device for browsing at one time, which is more convenient when the content of the file is less, but when the content of the file is more and the user finds that the user does not need to continue to view the file after seeing several pages, more time and resources are wasted for performing invalidation processing.
In another implementation manner of the embodiment of the present invention, in the actual operation of opening the file performed by the second device, the first page content of the file may be opened first, and the first page content is returned to the first device in the picture format, after the user of the first device confirms that the file is to be browsed continuously, that is, after sending the page-turning browsing request, the page-turning processing is performed on the currently opened file continuously, and then, the file content after the page-turning processing is sent to the first device in the picture format continuously.
It should be noted that S140 in the embodiment of the present invention may be repeatedly executed, where each time the first device sends a page-turning browsing request, the second device turns a page and generates a picture file of a current page, and sends a file in a picture format once; in addition, when the first device sends a page turning browsing request, a user can perform page turning browsing through common page turning operation, and the first device sends the request.
Optionally, in this embodiment of the present invention, the determining, by the second device, an implementation manner that the file to be browsed, which is requested to be opened by the first device, can be opened by the first device may include:
the first device and the second device confirm that the device is provided with corresponding application programs according to the file type;
and the second equipment confirms that the file to be browsed is the file conforming to the display format according to the file type.
In the embodiment of the present invention, the second device has a condition for opening a file, and includes not only an application program on the second device for opening the file, but also a file in a displayable type, where if the file to be browsed is a file in a format such as WORD, PDF, or CAJ, the file conforms to the display format, if the file to be browsed is a dynamic picture or video format, the file content cannot be sent in the picture format, that is, the file does not conform to the display format, and if the file to be browsed is a file that needs to be interacted, for example, the file is in a question and answer format and requires a user to fill in the interactive content, the file does not conform to the display format, and the files that do not conform to the display format cannot be returned by the second device in the form of a picture file.
Further, the user of the second device may set an enable switch in the device, the switch being used to control the function of the second device as a volunteer device, and when the switch is open, the switch is provided as a precondition for the volunteer device to open a file to be browsed.
It should be noted that, in the foregoing embodiment, it has been described that after the second device confirms that it can open the file to be browsed, the second device may respond to the first device, and optionally, the responding manner may be: and sending a response message with the content of 'consent' to the first device. In practical applications, a plurality of devices may receive a broadcast message and confirm that a file to be browsed can be opened, and send a response message to a first device, and on the side of the first device, a sending device of a received first response message may be regarded as a voluntary device (i.e., a second device in the embodiment of the present invention), that is, the second device in the embodiment of the present invention is a sending device of a first response message received by the first device.
Optionally, fig. 3 is a flowchart of another file browsing method according to an embodiment of the present invention, and on the basis of the foregoing embodiments, the method according to the embodiment of the present invention may further include:
s150, the second equipment receives a browsing ending request sent by the first equipment;
and S160, the second device closes the currently opened file according to the browsing ending request and deletes the currently opened file.
In the embodiment of the present invention, when the first device implements the mutual browsing of files in a cross-device manner, in order to ensure the security of the files, after receiving and browsing the files in the picture format, the first device may send a browsing end request to the second device to instruct the second device to delete the currently opened files after closing the currently opened files, that is, destroy the files in the second device, so that, in the file browsing manner provided by the embodiment of the present invention, the files requested to be opened by the first device are opened by the second device, but are deleted immediately after finishing browsing, and are not stored in the second device, thereby maximally ensuring the security when browsing the files.
The following describes the file browsing method according to the embodiment of the present invention in detail with reference to an actual application scenario, and as shown in fig. 4, is a signaling interaction flowchart of the file browsing method according to the embodiment of the present invention, where a first device in fig. 4 is a device that requests to browse a file, a second device is a volunteer device, and a third device and a fourth device are other devices in a network, the method according to the embodiment of the present invention includes:
s201, when a file to be browsed is opened by first equipment, judging whether the file can be opened or not; if the mobile terminal can be opened, S202 is executed, and the mobile terminal is directly opened; if the mobile phone cannot be opened, S203 is executed;
s203, the first equipment sends a broadcast message, wherein the broadcast message comprises the file type of a file to be browsed; the broadcast message may be transmitted over bluetooth or sent over UDP within the local area network, and the second, third and fourth devices in the network all receive the broadcast message;
s204, the second device, the third device, and the fourth device determine whether the file to be browsed can be opened according to the file type, in this embodiment, the implementation manner of determining whether the file to be browsed can be opened and the type of the manner in the above embodiment are not described herein again; in this embodiment, the second device and the third device confirm that the file to be browsed can be opened, and the fourth device confirms that the file to be browsed cannot be opened, at this time, the fourth device ends the process;
s205, the second device and the third device send response messages to the first device, wherein the response messages may include 'consent' content, and indicate that the device can open files; it should be noted that, the first device receives the response message sent by the second device first, and uses the second device as a volunteer device for opening a file;
s206, the first equipment sends the file to be browsed to the second equipment; because the first device first receives the response message sent by the second device, and the operation of browsing the file can be realized only with the assistance of one volunteer device, the sending device of the received first response message can be selected as the volunteer device, that is, the second device in this embodiment is the volunteer device;
s207, the second equipment background opens the file to be browsed;
s208, the second device sends the opened file content to the first device in a picture format;
s209, the first equipment displays the received file;
optionally, in this embodiment, the file in the picture format in S208 and S209 may be all the content of the file, or may also be the first page content of the file, and when the file is the first page content of the file, the method provided in this embodiment may further include:
s210, the first device sends a page turning browsing request to the second device;
s211, the second device judges whether the currently opened page is the last page of the file; when it is the last page, S212 is executed; when it is not the last page, S213 is executed;
s212, the second device sends a browsing ending instruction to the first device to indicate that all file contents are browsed; subsequently, S216 is executed;
s213, the second equipment performs page turning processing on the currently opened file;
s214, the second device sends the file content after page turning to the first device in a picture format;
s215, displaying the page turning processed file by the first device; s210 may then be repeatedly performed;
s216, the first device sends a browsing ending request to the second device;
s217, the second device closes the currently opened file and deletes the file.
The file browsing method provided by the embodiment of the invention realizes the mutual browsing of files among different mobile devices by using a local area network communication mode, namely, one mobile device can request the device capable of opening the file to open the file at a background by using the local area network under the condition that the local device cannot open the file, and transmits the content of the file back to the requesting device, so that the trouble of program searching and installation of a user is avoided, and the safety of the file is ensured by deleting the file after browsing.
Based on the file browsing method provided by each of the above embodiments of the present invention, an embodiment of the present invention further provides a file browsing apparatus, where the file browsing apparatus is configured to execute the file browsing method provided by any of the above embodiments of the present invention.
Fig. 5 is a schematic structural diagram of a file browsing apparatus according to an embodiment of the present invention. The file browsing apparatus 30 provided in this embodiment may include: a communication module 31, a confirmation module 32 and a processing module 33.
The communication module 31 is configured to receive a first broadcast message, where the first broadcast message includes a file type of a first file;
a confirming module 32, configured to confirm that the first file can be opened according to the file type of the first file.
The file browsing device 30 provided in the embodiment of the present invention is disposed in a mobile device in a network, and is configured to implement mutual browsing of files between the mobile devices, the mobile device provided with the file browsing device 30 in the embodiment of the present invention is a device that can communicate via a local area network, and a peer-to-peer communication mode can be implemented between the mobile devices, that is, the file browsing device 30 provided in the embodiment of the present invention implements a communication process of file browsing by only two devices, and does not need forwarding by a server.
In this embodiment of the present invention, the sending device of the first broadcast message is a device having a file browsing requirement, and in a case that a file to be browsed by the device (i.e. a first file) cannot be opened, the sending device may send, within a range of a local area network, a first broadcast message to a plurality of devices with which a communication connection is established, where the first broadcast message may be transmitted through bluetooth or sent through UDP within the local area network, and the first broadcast message is used for seeking mutual browsing of devices that can open the first file, and browsing the file is performed on the premise that the devices have an application program that can open the first file, so that the file type of the first file is included in the first broadcast message, and the device that receives the first broadcast message may be instructed to determine whether the first file can be opened according to the file type. The device to which the file browsing apparatus 30 in the embodiment of the present invention belongs is a device that receives the first broadcast message and confirms that the first file can be opened, after receiving the first broadcast message, the communication module 31 of the device acquires the file type of the first file and can identify which application program the file of the type is opened by, and the confirmation module 32 confirms that the device has the application program that opens the first file, that is, confirms that the device has the capability of opening the first file.
It should be noted that, the first broadcast message in the embodiment of the present invention may be received not only by the device to which the file browsing apparatus 30 in the network belongs, but also by other devices in the network, and these devices may receive the first broadcast message, but determine that they cannot open the file of the type according to the file type.
A communication module 31, further configured to receive a first file;
a processing module 33 for opening the first file;
the communication module 31 is further configured to send the first file content opened by the processing module 33 to a sending device of the first broadcast message in a picture format.
In this embodiment of the present invention, after the confirming module 32 confirms that the device to which it belongs can open the first file, the sending device may respond to the first broadcast message, and is configured to instruct the device to send the first file to the sending device, and after the communication module 31 receives the first file, the processing module 33 executes an operation of opening the first file; since the sending device of the first broadcast message has a browsing requirement for the first file, the processing module 33 may also return the content of the first file to the sending device of the first broadcast message after opening the first file. Based on the actual situation that the device cannot browse files and the situation that the mobile terminal has a conventional function of browsing pictures, when returning the file content, the communication module 31 may send the opened first file content to the sending device of the first broadcast message in a picture format, so that the user can browse the file content on the device in the picture format, that is, a mutual browsing manner of the files is realized.
The device to which the file browsing apparatus 30 belongs in the embodiment of the present invention is a device that actually opens a file, and also returns the content of the opened first file to the sending device of the first broadcast message in a picture format, so that a user of the device can browse in a relatively convenient manner, and the device to which the file browsing apparatus 30 belongs may be regarded as a volunteer device in the embodiment of the present invention, that is, the file browsing apparatus 30 may be disposed in the second device in any one of the embodiments shown in fig. 1 to fig. 4 of the present invention.
It should be noted that, in the file browsing apparatus 30 in the embodiment of the present invention, when a device that sends the first broadcast message cannot open a certain file, there is no need to search and install a corresponding application program, and there is no need to find other people to help solve the problem of opening the file, and there is no need to forward the file that cannot be opened by itself through the server, and there is no need to upload the file to some online software of the browser for reference. According to the file browsing method provided by the embodiment of the invention, only through the interactive operation among the mobile devices, the operation is simpler when the cross-device opening of the file is realized, and the convenience and the flexibility are higher.
According to the file browsing device provided by the embodiment of the invention, the confirmation module confirms the first file which can not be opened by the sending equipment capable of opening the first broadcast message according to the file type in the first broadcast message received by the communication module, then the processing module opens the first file received by the communication module and sends the content of the opened first file to the sending equipment of the first broadcast message in a picture format; the file browsing device provided by the embodiment of the invention realizes the mutual browsing of files in a cross-device operation mode by utilizing a local area network communication mode, and improves the convenience and flexibility of the mobile terminal when browsing the files.
Optionally, in the embodiment of the present invention, an implementation manner of the processing module 33 opening the first file may be to open the first file through a background application.
In the file browsing apparatus 30 provided in the embodiment of the present invention, the communication module 31 is further configured to receive a first page-turning browsing request sent by a sending device of a first broadcast message; the processing module 33 is further configured to perform page turning processing on the first file; the communication module 31 is further configured to send the first file content after the page turning processing to a sending device of the first broadcast message in a picture format.
In the embodiment of the present invention, when the processing module 33 opens the first file received from the sending device side of the first broadcast message, the first file may be opened in the background, that is, the file browsing apparatus 30 may open a file requested to be browsed by another device as a volunteer device for an application installed in the second device, when the communication module 31 receives the first file, the processing module 33 may open the first file in the background, and the whole process of file browsing is executed without displaying the content of the file on the display screen of the device used for opening the file, so that the normal use of the device by a user of the device used for opening the file is not affected, and the security when the sending device of the first broadcast message requests the file to browse for assistance is also ensured.
In an implementation manner of the embodiment of the present invention, in the actual operation of opening the file, the processing module 33 may open all the first files at one time, generate the picture files of each page of the file, and then the communication module 31 sends all the picture files to the sending device of the first broadcast message at one time for browsing, which is more convenient when the content of the file is less, but when the content of the file is more and the user finds that the user does not need to continue to view the file after seeing several pages, more time and resources are wasted for performing invalidation processing.
In another implementation manner of the embodiment of the present invention, in the actual operation of opening the file, the processing module 3 may open the home page content of the first file first, and the communication module 31 returns the home page content to the sending device of the first broadcast message in the picture format, after the user of the device confirms that the first file is to be browsed continuously, that is, after the first page-turning browsing request is sent, page-turning processing is continuously performed on the first file, and then, the page-turned first file content is continuously sent to the sending device of the first broadcast message in the picture format.
It should be noted that, in the embodiment of the present invention, the communication module 31 receives the first page turning browsing request, the processing module 33 performs page turning processing on the first file, and a process that the communication module 31 sends the page-turned first file content in the picture format may be repeatedly executed, that is, each time the sending device of the first broadcast message sends the first page turning browsing request, the processing module 33 executes page turning operation and generates a picture file of a current page, and the communication module 31 sends the picture file in the picture format once; in addition, when the sending device of the first broadcast message sends the first page turning browsing request, the user can perform page turning browsing through common page turning operation.
Optionally, in this embodiment of the present invention, the confirming module 32 confirms an implementation manner that the first file can be opened, which may include:
firstly, confirming that the equipment to which the file browsing device 30 belongs is provided with a corresponding application program according to the file type;
and secondly, confirming that the file to be browsed is the file conforming to the display format according to the file type.
In the embodiment of the present invention, the device to which the file browsing apparatus 30 belongs has a condition for opening a file, and includes not only an application program on the device for opening a first file, but also a file in which the first file is a displayable type, if the first file is a file in a format such as WORD, PDF, or CAJ, the file conforms to the display format, if the first file is a dynamic picture and video format, the file content cannot be sent in the picture format, that is, the file does not conform to the display format, if the first file is a file that needs to be interacted, for example, the first file is in a question and answer format and requires a user to fill in the interactive content, the file does not conform to the display format, and the files that do not conform to the display format cannot be returned in the picture file form by the device to which the file browsing apparatus 30 belongs.
Further, the user of the device to which the document browsing apparatus 30 belongs may set an enabling switch in the device, the enabling switch is used for controlling the function of the device as a volunteer device, and when the enabling switch is turned on, the enabling switch is provided as a precondition for the volunteer device to open the first document.
It should be noted that, in the above embodiment, it has been described that after the confirmation module 32 confirms that it can open the first file, the sending device may respond to the first broadcast message, and optionally, the responding mode may be: the communication module 31 is further configured to send a first reply message with "consent" content to the sending device of the first broadcast message. In practical applications, there may be a plurality of devices that receive the first broadcast message and confirm that the first file can be opened, and that have sent the first reply message to the sending device of the first broadcast message, and on the sending device side of the first broadcast message, the sending device of the first received first reply message may be regarded as a volunteer device, that is, a device to which the file browsing apparatus 30 in the embodiment of the present invention belongs, that is, a second device in any one of the implementations shown in fig. 1 to 4.
Optionally, in the file browsing apparatus provided in the embodiment of the present invention, the communication module 31 is further configured to receive a first browsing end request sent by a sending device of a first broadcast message; the processing module 33 is further configured to close the first file according to the first browsing end request, and delete the first file.
In the embodiment of the present invention, when the sending device of the first broadcast message realizes the mutual browsing of files in a cross-device manner, in order to ensure the security of the files, after receiving and browsing the files in a picture format, the device may send a first browsing completion request to the volunteer device to instruct the volunteer device to delete the first file after closing the first file, that is, destroy the first file in the volunteer device.
It should be noted that the file browsing apparatus 30 provided in the above-mentioned embodiment of the present invention may be an application program installed in a volunteer device (a second device in any one of the embodiments shown in fig. 1 to fig. 4), and like a "universal agent" installed inside the volunteer device, the "universal agent" has functions of identifying a file type, identifying an application program, transmitting a file, opening a file, pushing a display, destroying a file, and the like; optionally, the device provided with the file browsing apparatus 30 may not only be a volunteer device for opening a file, but also be configured to send a broadcast message in a local area network when the device has a requirement for opening a file, that is, in the file browsing apparatus 30 provided in the embodiment of the present invention, the communication module 31 is further configured to send one or more of a second broadcast message, a second file, a second page turning browsing request, and a second browsing end request (the second broadcast message and the second file are necessarily sent), where the second broadcast message includes a file type of the second file; in addition, the communication module 31 is further configured to receive the second file content sent by the device for opening the second file in the picture format and the second file content after the page turning process. Further, the communication module 31 is further configured to receive a second response message sent by a device capable of opening a second file, and treat a sending device of the first received second response message as a volunteer device for opening the second file.
In practical applications, when the mobile device to which the file browsing apparatus 30 belongs needs to open the second file and cannot open the second file, the following operations are performed by the modules in the file browsing apparatus 30:
the communication module 31 sends a second broadcast message, where the second broadcast message includes a file type of the second file;
when receiving a second response message sent by a device capable of opening a second file, the communication module 31 regards the sending device of the first received second response message as a volunteer device for opening the second file, and sends the second file to the volunteer device;
the communication module 31 receives the second file content transmitted in the picture format by the volunteer device.
Optionally, the communication module 31 sends a second page-turning browsing request according to a page-turning operation of the user to instruct the volunteer device to perform page-turning processing on the second file, and then receives the page-turning processed second file content sent by the volunteer device in the picture format.
Optionally, the communication module 31 sends a second browse end request to instruct the volunteer device to close and delete the second file.
The file browsing device 30 provided by the embodiment of the present invention can be arranged in a volunteer device in a network, and can also be arranged in a device requesting to browse files, that is, between devices in the network provided with the file browsing device 30, so that the mutual browsing of files can be realized. As shown in fig. 6, which is a schematic diagram of an application scenario of a file browsing apparatus according to an embodiment of the present invention, a file browsing apparatus 30 is disposed in each of first, second, and third devices in fig. 6, where the first device sends a first broadcast message through a built-in file browsing apparatus 30 for a first file that cannot be opened by itself, and requests other devices in a network to open, the second device is a volunteer device that opens the first file, the file browsing apparatus 30 of the second device opens the first file at a background and returns the first file to the first device, and during executing the file browsing process, the second device always opens and transmits the first file at the background, and the foreground of the second device can normally run its current application program, for example, open the second file; the second device sends a second broadcast message to the second file which cannot be opened by itself through the built-in file browsing device 30, requests other devices in the network to open, the third device is a volunteer device for opening the second file, and the file browsing device 30 of the third device opens the second file at the background and returns the second file to the second device. In the specific application scenario shown in fig. 6, the second device acts as a volunteer device to open the first file and also acts as a requesting device to request browsing of the second file.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (6)
1. A method for browsing files, comprising:
the method comprises the steps that a second device receives a broadcast message sent by a first device, wherein the broadcast message comprises a file type of a file to be browsed;
the second equipment confirms that the file to be browsed can be opened according to the file type of the file to be browsed;
the second device receives the file to be browsed sent by the first device, opens the file to be browsed through a background application program, and sends the opened file content to the first device in a picture format; the whole process of file browsing executed by the second device does not display the content of the file on the display screen of the second device;
the second device opens the browsing file, first opens the home page content of the browsing file, and returns the home page content to the first device in a picture format, after a user of the first device confirms that the file is to be browsed continuously and sends a page turning browsing request, the second device receives the page turning browsing request sent by the first device, turns over the page of the currently opened file, and sends the page turning processed file content to the first device in the picture format;
after receiving the file in the picture format and receiving browsing, the first device sends a browsing ending request to the second device to indicate the second device to delete the currently opened file after closing the file; the second equipment receives a browsing ending request sent by the first equipment, closes a currently opened file according to the browsing ending request and deletes the currently opened file;
and the interactive operation between the first equipment and the second equipment is not forwarded through the server.
2. The method according to claim 1, wherein the second device confirms that the file to be browsed can be opened according to the file type of the file to be browsed, and the method comprises the following steps:
the second equipment confirms that the equipment is provided with a corresponding application program according to the file type;
and the second equipment confirms that the file to be browsed is a file conforming to the display format according to the file type.
3. The method according to claim 1, wherein before the second device receives the file to be browsed sent by the first device, the method further comprises:
and the second equipment sends a response message to the first equipment, and the second equipment is the sending equipment of the first response message received by the first equipment.
4. A file browsing apparatus, applied to a second device, includes:
the communication module is used for receiving a first broadcast message sent by first equipment, wherein the first broadcast message comprises a file type of a first file;
the confirming module is used for confirming that the first file can be opened according to the file type of the first file;
the communication module is further configured to receive a first file sent by the first device;
the processing module is used for opening the first file through a background application program, and the content of the file is not displayed on a display screen of the second device in the whole process of executing file browsing;
the communication module is further configured to send the content of the first file opened by the processing module to the first device in a picture format;
the interactive operation between the first equipment and the second equipment is not forwarded through a server;
the second device opens the browsing file, first opens the home page content of the browsing file, and returns the home page content to the first device in a picture format, after a user of the first device confirms that the file is to be browsed continuously and sends a page turning browsing request, the second device receives the page turning browsing request sent by the first device, turns over the page of the currently opened file, and sends the page turning processed file content to the first device in the picture format;
after receiving the file in the picture format and receiving browsing, the first device sends a browsing ending request to the second device to indicate the second device to delete the currently opened file after closing the file; and the second equipment receives a browsing ending request sent by the first equipment, closes the currently opened file according to the browsing ending request and deletes the currently opened file.
5. The apparatus of claim 4, wherein the confirmation module confirms that the first file can be opened according to the file type of the first file, and comprises:
confirming that the equipment to which the file browsing device belongs is provided with a corresponding application program according to the file type;
and confirming that the first file is a file conforming to the display format according to the file type.
6. The apparatus according to claim 4 or 5,
the communication module is further configured to send one or more of a second broadcast message, a second file, a second page turning browsing request, and a second browsing end request, where the second broadcast message includes a file type of the second file;
the communication module is further configured to receive the second file content sent by the device for opening the second file in the picture format and the second file content after the page turning process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810187997.4A CN108388659B (en) | 2018-03-07 | 2018-03-07 | File browsing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810187997.4A CN108388659B (en) | 2018-03-07 | 2018-03-07 | File browsing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108388659A CN108388659A (en) | 2018-08-10 |
CN108388659B true CN108388659B (en) | 2021-11-16 |
Family
ID=63066837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810187997.4A Active CN108388659B (en) | 2018-03-07 | 2018-03-07 | File browsing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108388659B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110097A (en) * | 2007-08-17 | 2008-01-23 | 南京新模式软件集成有限公司 | Method for safely dispensing electronic document |
CN101360118A (en) * | 2007-08-02 | 2009-02-04 | 广东新支点技术服务有限公司 | Method and protocol suitable for mobile terminal multimedia file sharing and searching |
CN101697612A (en) * | 2009-09-18 | 2010-04-21 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and file conversion method thereof |
CN102819392A (en) * | 2012-07-25 | 2012-12-12 | 广州视睿电子科技有限公司 | Method and system for controlling PPT |
CN103488954A (en) * | 2013-10-16 | 2014-01-01 | 武汉理工大学 | File encryption system |
CN103488394A (en) * | 2013-09-03 | 2014-01-01 | 上海骋娱传媒技术有限公司 | Method and equipment for executing application operation |
CN106777184A (en) * | 2016-12-22 | 2017-05-31 | 北京猎豹移动科技有限公司 | A kind of page loading method, device and electronic equipment |
CN107730074A (en) * | 2017-09-12 | 2018-02-23 | 国网福建省电力有限公司 | Based on tearing the quality supervision and control platform that moves back intelligent meter flow-line equipment open |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1529262A (en) * | 2003-10-17 | 2004-09-15 | 深圳市卓然科技开发有限公司 | Method for realizing web page on-line browse and display |
CN100399252C (en) * | 2005-09-23 | 2008-07-02 | 联想(北京)有限公司 | Document browsing and positioning method and system |
CN101996194B (en) * | 2009-08-14 | 2012-08-29 | 北京大学 | On-line browsing method and system of electronic file |
JP5554954B2 (en) * | 2009-09-01 | 2014-07-23 | 富士フイルム株式会社 | Document link conversion server, document link conversion system, and document link conversion method |
JP5570942B2 (en) * | 2010-10-27 | 2014-08-13 | 株式会社日立製作所 | File transmission device, file transmission method, and file transmission program |
CN102164147A (en) * | 2011-04-27 | 2011-08-24 | 苏州阔地网络科技有限公司 | Method and system for converting document into picture in on-line manner |
US20120323975A1 (en) * | 2011-06-15 | 2012-12-20 | Microsoft Corporation | Presentation software automation services |
CN102761843B (en) * | 2012-08-10 | 2015-06-17 | 上海洲信信息技术有限公司 | System and method for mobile terminal user to obtain mails and based on full-text search and WAPPUSH |
CN102982144A (en) * | 2012-11-22 | 2013-03-20 | 东莞宇龙通信科技有限公司 | Method and system for sharing webpage information |
US9762516B2 (en) * | 2014-04-23 | 2017-09-12 | Cellco Partnership | Variable image acquisition and processing techniques based on image data type |
CN104391739A (en) * | 2014-11-05 | 2015-03-04 | 刘帅 | Communication method for sharing file in real-time interactive communication platform and following operation of opposite side |
CN107707450A (en) * | 2017-08-22 | 2018-02-16 | 努比亚技术有限公司 | A kind of method, apparatus and computer-readable recording medium for transmitting file |
-
2018
- 2018-03-07 CN CN201810187997.4A patent/CN108388659B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101360118A (en) * | 2007-08-02 | 2009-02-04 | 广东新支点技术服务有限公司 | Method and protocol suitable for mobile terminal multimedia file sharing and searching |
CN101110097A (en) * | 2007-08-17 | 2008-01-23 | 南京新模式软件集成有限公司 | Method for safely dispensing electronic document |
CN101697612A (en) * | 2009-09-18 | 2010-04-21 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and file conversion method thereof |
CN102819392A (en) * | 2012-07-25 | 2012-12-12 | 广州视睿电子科技有限公司 | Method and system for controlling PPT |
CN103488394A (en) * | 2013-09-03 | 2014-01-01 | 上海骋娱传媒技术有限公司 | Method and equipment for executing application operation |
CN103488954A (en) * | 2013-10-16 | 2014-01-01 | 武汉理工大学 | File encryption system |
CN106777184A (en) * | 2016-12-22 | 2017-05-31 | 北京猎豹移动科技有限公司 | A kind of page loading method, device and electronic equipment |
CN107730074A (en) * | 2017-09-12 | 2018-02-23 | 国网福建省电力有限公司 | Based on tearing the quality supervision and control platform that moves back intelligent meter flow-line equipment open |
Also Published As
Publication number | Publication date |
---|---|
CN108388659A (en) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7752272B2 (en) | System and method for filter content pushed to client device | |
CN108476165B (en) | Information interaction method, client and device | |
US20050038874A1 (en) | System and method for downloading data using a proxy | |
KR20140122000A (en) | Method for tranmitting information using drag input based on mobile messenger, and mobile terminal for tranmitting information using drag input based on mobile messenger | |
EP2933982A1 (en) | Media stream transfer method and user equipment | |
CN109525652B (en) | Information sharing method, device, equipment and storage medium | |
CN112165449B (en) | Control method of real-time authority of web application, electronic device and storage medium | |
CN114666306B (en) | WebRTC network connection establishment method, server, electronic device and computer readable storage medium | |
CN107835445B (en) | MQTT protocol-based television control method, mobile terminal and television | |
JPH11306067A (en) | Proxy system | |
JP2000298634A (en) | Information distribution system | |
CN104980481B (en) | Method and system, the electric terminal of data are transmitted between electric terminal | |
CN111565382B (en) | Transmission method and electronic equipment | |
CN108388659B (en) | File browsing method and device | |
WO2023109045A1 (en) | Webrtc connection method and system | |
US11979405B2 (en) | Method and system for processing network resource access requests, and computer device | |
CN108268640A (en) | A kind of striding equipment file open method, device and system | |
CN109600452B (en) | Server cluster, message pushing method and related server | |
EP1679844A1 (en) | System and method for filtering pushed content | |
CN111885101A (en) | Data storage method | |
CN104767667A (en) | Method for sharing WEB page by multiple screens, terminal equipment and web server | |
CN104683419A (en) | Communicating method and system based on android system and m2m (machine to machine) | |
CN113824625B (en) | Information interaction method and device | |
US20240089137A1 (en) | Integrating meeting data between an im application and a conferencing application | |
KR20190098398A (en) | Method for providing image communicaiton service |
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 |