WO2016202236A1 - File sharing method and system - Google Patents
File sharing method and system Download PDFInfo
- Publication number
- WO2016202236A1 WO2016202236A1 PCT/CN2016/085691 CN2016085691W WO2016202236A1 WO 2016202236 A1 WO2016202236 A1 WO 2016202236A1 CN 2016085691 W CN2016085691 W CN 2016085691W WO 2016202236 A1 WO2016202236 A1 WO 2016202236A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- shared
- webpage
- picture
- parsing
- Prior art date
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Definitions
- the present invention relates to the field of network technologies, and in particular, to a file sharing method and system.
- the object of the present invention is to provide a file sharing method and system, which can improve sharing efficiency.
- a file sharing method includes the following steps:
- a file sharing method includes the following steps:
- a file sharing system comprising: a file sharing client, wherein the file sharing client comprises:
- a first parsing unit configured to perform local parsing of the shared file to obtain a file image
- transceiver unit configured to send the file picture to the server, and receive a webpage link corresponding to the webpage page returned by the server according to the file image, or send the file to be shared to the
- the server performs parsing to obtain the file picture, and receives a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image;
- a local sharing unit configured to display the webpage link, or share the webpage link.
- a file sharing system includes a server, the server including:
- a receiving unit configured to receive a file image obtained by the file sharing client to be locally parsed by the shared file, or receive the to-be-shared file sent by the sharing client;
- a generating unit configured to generate a webpage page according to the file image and a webpage link corresponding to the webpage page
- a sending unit configured to return the webpage link to the file sharing client to display or share the webpage link
- a second parsing unit configured to: when the receiving unit receives the to-be-shared file, the to-be-shared text The piece is parsed to obtain the file picture.
- the file sharing client (the client of the user who shares the file to be shared) locally parses the file to be shared
- the file image is sent to the server, or the file is directly
- the file to be shared is sent to the server, and the file is parsed by the server to obtain the file image, and the server generates a webpage page according to the file image and generates a webpage link corresponding to the webpage page, and
- the webpage link is returned to the client, and the webpage link is displayed or shared in the file sharing client. Since the file to be shared is converted into a webpage page and a webpage link corresponding to the webpage page is generated, the one-to-many can be conveniently realized.
- Sharing improving sharing efficiency, and at the same time, since the file to be shared is converted into a web page, the file obtaining terminal (pre-browsing the user's terminal of the file to be shared) can browse the file to be shared as long as the browser is loaded, and Unaffected by the terminal operating system, it also improves the convenience of file acquisition. Sex.
- FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a file sharing method according to the present invention
- Embodiment 2 is a schematic flowchart of Embodiment 2 of a file sharing method according to the present invention
- Embodiment 3 is a schematic flowchart of Embodiment 3 of a file sharing method according to the present invention.
- Embodiment 4 is a schematic flowchart of Embodiment 4 of a file sharing method according to the present invention.
- FIG. 5 is a schematic flowchart diagram of Embodiment 5 of a file sharing method according to the present invention.
- FIG. 6 is a schematic flowchart diagram of Embodiment 6 of a file sharing method according to the present invention.
- FIG. 7 is a schematic flowchart diagram of Embodiment 7 of a file sharing method according to the present invention.
- FIG. 8 is a schematic flowchart diagram of Embodiment 8 of a file sharing method according to the present invention.
- FIG. 9 is a schematic structural diagram of an embodiment of a file sharing system according to the present invention.
- FIG. 10 is a schematic structural diagram of another embodiment of a file sharing system according to the present invention.
- FIG. 11 is a schematic structural diagram of a third embodiment of a file sharing system according to the present invention.
- FIG. 12 is a schematic structural diagram of a fourth embodiment of a file sharing system according to the present invention.
- FIG. 13 is a schematic structural diagram of a fifth embodiment of a file sharing system according to the present invention.
- FIG. 14 is a schematic structural diagram of a sixth embodiment of a file sharing system according to the present invention.
- FIG. 15 is a schematic structural diagram of a seventh embodiment of a file sharing system according to the present invention.
- Figure 16 is a block diagram showing the structure of an eighth embodiment of the file sharing system of the present invention.
- Embodiments 1 to 4 are described by taking the processing procedure of the file sharing client as an example.
- FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a file sharing method of the present invention.
- the file sharing method in the first embodiment includes the following steps:
- Step S101 Perform local analysis on the shared file to obtain a file image, and send the file image to the server. Or sending the to-be-shared file to the server for parsing to obtain the file picture;
- the files to be shared may be files of various formats such as word, PDF, PPT;
- the file image here refers to a picture converted into a file page in the file to be shared by local parsing
- the process of locally parsing the file to be shared in the embodiment may be: converting the file page in the file to be shared into a file image according to a preset unit, where the preset unit may refer to one page or multiple pages.
- the preset unit may refer to one page or multiple pages.
- each page of the file is converted into a file image.
- the preset unit is multiple pages, for example, two pages, each two-page file page is converted into a file image;
- the method for obtaining the file to be shared by the file to be shared may be: parsing the file to be shared to obtain a file page of the file to be shared, and taking a screenshot or a snapshot of the file page to obtain The image corresponding to the file page is obtained according to the image corresponding to the file page; if the file page of the file to be shared is multiple pages, in order to improve the resolution efficiency, the file page may be screenshotd in parallel or Snapshot, and obtain a picture corresponding to each file page;
- the manner in which the file to be shared is locally parsed to obtain the file image may be: obtaining the file type of the file to be shared, and determining an analysis manner corresponding to the file type according to the preset association relationship, according to The parsing method parses the shared file to obtain the file image;
- the file type here may be equivalent to the file format, or may be attributed to a plurality of file formats to a file type.
- the solution in this embodiment is a method of converting to a picture in consideration of different file types (in this case).
- the file type of the file to be shared is obtained first, and then the parsing method corresponding to the file type is determined according to a preset association relationship, and finally And parsing the shared file according to the determined parsing manner to obtain the file image, wherein the association relationship refers to a correspondence between the file type and the parsing manner, and the parsing manner corresponding to the various file types may be an existing file parsing manner;
- the file picture may be packaged and compressed, and the compressed package after the compression process is sent to the server;
- the shared file may not be locally parsed, but the The shared file is sent to the server, and the file is parsed by the server to obtain the file image, where the server parses the to-be-shared file and locally performs the file to be shared.
- the analysis is in the same way and will not be repeated here;
- Step S102 Receive a webpage link corresponding to the webpage page returned by the server after generating a webpage page according to the file image;
- the webpage is a waterfall webpage
- the server generates a webpage page and a webpage link corresponding to the webpage page according to the file image.
- a specific process of generating a webpage page according to the file image and a two-dimensional code corresponding to the webpage page may be Adding the file image to the webpage container, and displaying, by the webpage container, the waterfall image of the file image to obtain the webpage page; wherein the webpage container displays the file image by waterfall
- the web page can be obtained in an existing manner, and will not be described here;
- the webpage link may be a two-dimensional code, or may be a URL (Uniform Resource Locator, The Uniform Resource Locator is the address of the web page);
- Step S103 displaying the webpage link or sharing the webpage link
- the file sharing client when displaying the link of the webpage, the user who pre-acquires or browses the file to be shared can obtain the link of the webpage through its terminal (hereinafter referred to as a file acquisition terminal) and browse
- the webpage page for example, when the webpage link is a two-dimensional code, the user who pre-acquires or browses the file to be shared can obtain the scan code function in the terminal through the file (the scan code function can be implemented in the social network application software) Function) can scan the two-dimensional code and enter the webpage page to obtain or browse the file to be shared;
- the social network tool can also share the webpage link to a social network such as a circle of friends, a group, etc., and the users in the social network can browse the webpage by accessing the webpage link in the terminal, for which,
- the process of sharing the webpage link in one embodiment may specifically be: sending the webpage link to the file acquisition terminal through a social network tool;
- the webpage page can be opened, and the user can browse the webpage page to realize the sharing of the file to be shared, and at the same time, in order to further improve the sharing efficiency.
- the file obtaining terminal enters the webpage through the webpage link
- the webpage link obtaining instruction is received, the webpage is displayed on the currently displayed webpage page. Link, in this way, not only the file sharing client can share the webpage page, but also the file obtaining terminal can share the webpage page;
- the file sharing client referred to in the present invention refers to one of a plurality of clients, and does not refer to a specific client;
- the file acquiring terminal is generally referred to as one of a plurality of clients, and is not Refers to a specific client; in actual applications, multiple clients can act as file sharing clients or file acquisition terminals according to different operations performed at different times;
- the file to be shared is locally parsed to obtain a file picture, and the file picture is sent to the server, or the file to be shared is sent to the server for parsing to obtain the file picture, and the receiving station Deriving a webpage link corresponding to the webpage page after the webpage is generated according to the file image, displaying the webpage link, or sharing the webpage link, converting the to-be-shared file into a webpage page, and generating a webpage
- the webpage link corresponding to the page can conveniently realize one-to-many sharing, improve the sharing efficiency, and at the same time, because the file to be shared is converted into a webpage, the file acquisition terminal (pre-browsing the client of the user who wants to share the file) As long as the browser is loaded, the browsing of the file to be shared can be realized without being affected by the terminal operating system, and the convenience of file acquisition is also improved.
- FIG. 2 it is a schematic flowchart of the second embodiment of the file sharing method of the present invention.
- the difference from the first embodiment is mainly that the file to be shared can be locally parsed to obtain a file image.
- the server sends the file picture, and the file to be shared is sent to the server for parsing to obtain the file picture, in order to determine when to process the shared file for local parsing, and when to send the file to be shared to the server for parsing.
- the step of determining whether the file to be shared can be parsed locally is added.
- the method in this embodiment includes the following steps:
- Step S201 determining whether the file to be shared can be parsed locally, if yes, proceeding to step S202, and if not, proceeding to step S203;
- Whether the file to be shared can be parsed locally can be determined according to the file format or the file type of the file to be shared;
- Step S202 Locally parsing the shared file to obtain a file picture, sending the file picture to the server, and proceeding to step S204;
- Step S203 The file to be shared is sent to the server for parsing to obtain the file picture, and the process proceeds to step S204;
- the file to be shared is sent to the server, and is parsed by the server;
- Step S204 receiving a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image, and proceeding to step S205;
- Step S205 Display the webpage link or share the webpage link.
- the sharing of the file to be shared can be performed.
- the server cannot be resolved only when the file to be shared cannot be parsed locally.
- the method of parsing the file to be shared, rather than all the files to be shared by the server can also alleviate the pressure on the server and improve the sharing efficiency.
- FIG. 3 it is a schematic flowchart of the third embodiment of the file sharing method of the present invention.
- the difference from the first embodiment is mainly because the file to be shared is a picture.
- the file to be shared is not required to be parsed.
- a step of determining whether the file format of the file to be shared is a picture format is added to improve sharing efficiency.
- the method in this embodiment includes the steps of:
- Step S301 determining whether the file format of the file to be shared is a picture format, if not, proceeding to step S302, and if yes, proceeding to step S303;
- Step S302 Locally parsing the shared file to obtain a file picture, sending the file picture to the server, or sending the file to be shared to the server for parsing to obtain the file picture, and proceeding to step S304;
- Step S303 Send the file to be shared to the server, and proceed to step S304;
- the file format of the file to be shared is an image format
- the file to be shared is directly sent to the server
- Step S304 receiving a webpage link corresponding to the webpage page returned by the server according to the file image or the to-be-shared file, and proceeding to step S505;
- the web page is generated according to the file image and the web page corresponding to the web page is sent. If the file to be shared is sent to the server, the file to be shared is to be shared. Whether the file format of the file is an image format, the received webpage is generated according to the file to be shared and the webpage corresponding to the webpage page;
- Step S305 Display the webpage link or share the webpage link.
- FIG. 3 it is a schematic flowchart of the third embodiment of the file sharing method of the present invention.
- the difference from the first embodiment is mainly as follows: Sending the file image to the server, and sending the file to be shared to the server for parsing To get the file image, it is necessary to determine when to treat the shared file for local parsing, when to send the file to be shared to the server for parsing, and second, consider that the file to be shared may be the image itself. In this case, it is not necessary.
- the file to be shared is parsed.
- the step of determining whether the file to be shared can be parsed locally and the step of determining whether the file format of the file to be shared is a picture format is added to ensure sharing. Smoothly improve sharing efficiency.
- the method in this embodiment includes the steps of:
- Step S401 determining whether the file format of the file to be shared is a picture format, if yes, proceeding to step S402, and if not, proceeding to step S403;
- Step S402 Send the file to be shared to the server, and proceed to step S406;
- the file format of the file to be shared is an image format
- the file to be shared is directly sent to the server
- Step S403 determining whether the file to be shared can be parsed locally, if yes, proceeding to step S404, and if not, proceeding to step S405;
- Step S404 The file to be shared is locally parsed to obtain a file picture, and the file picture is sent to the server, and the process proceeds to step S406;
- Step S405 The file to be shared is sent to the server for parsing to obtain the file picture, and the process proceeds to step S406;
- the file to be shared is sent to the server, and is parsed by the server;
- Step S406 receiving a webpage link corresponding to the webpage page returned by the server according to the file image or the to-be-shared file, and proceeding to step S407;
- the web page is generated according to the file image and the web page corresponding to the web page is sent. If the file to be shared is sent to the server, the file to be shared is to be shared. Whether the file format of the file is an image format, the received webpage is generated according to the file to be shared and the webpage corresponding to the webpage page;
- Step S407 Display the webpage link or share the webpage link.
- the method may further include the step of: saving the webpage link locally, and in this way, the webpage link may be called up as needed at any time.
- the method may further include the steps of: obtaining an operation instruction for the webpage page. And sending the operation instruction to the server to perform an operation corresponding to the webpage page and the operation instruction.
- the operation instruction may include a deletion instruction, a modification instruction, an encryption instruction, or an encryption instruction.
- the server For modifying the instruction, the server needs to receive the modified file to be shared before converting the web page to the new instruction, and convert the modified file to be shared into a new web page, and use the new The web page updates the original web page.
- the server needs to acquire the encryption password before performing the operation corresponding to the encryption instruction on the webpage page.
- the processing process of the server includes:
- Step S501 Receive a file image obtained by the file sharing client to be locally parsed by the shared file, or receive the file to be shared sent by the sharing client, and parse the file to be shared to obtain the file image. ;
- the file image obtained by the file sharing client to be locally parsed by the file sharing client can be received, but considering that the file sharing client may not be able to parse the file in a certain format, the file sharing client directly directly files the file.
- the sharing client sends the file to the server.
- the file to be shared sent by the sharing client may be received, and the file to be shared may be parsed to obtain the file.
- Step S502 Generate a webpage page according to the file image and a webpage link corresponding to the webpage page;
- Step S503 Return the webpage link to the file sharing client to display or share the webpage link.
- the file image obtained by the file sharing client to be locally parsed by the file sharing client is received, or the file to be shared sent by the sharing client is received, and the file to be shared is received.
- the file image obtained by the file sharing client to be locally parsed by the file sharing client is received, or the file to be shared sent by the sharing client is received, and the file to be shared is received.
- the file to be shared is converted into a webpage page and a webpage link corresponding to the webpage page is generated, the one-to-many sharing can be conveniently realized, the sharing efficiency is improved, and the file to be shared is converted into a webpage, a file.
- Obtaining the terminal pre-browsing the client of the user to share the file
- FIG. 6 it is a schematic flowchart of the sixth embodiment of the file sharing method of the present invention.
- the difference from the fifth embodiment is mainly that the file to be shared may be a picture itself.
- the file to be shared by the file sharing client is a file to be shared, but the file to be shared does not need to be parsed; for this reason, in this embodiment, the sending of the file sharing client is increased.
- the step of sharing the file generating a webpage page according to the to-be-shared file, and a webpage link corresponding to the webpage page.
- the file sharing method in the sixth embodiment includes the following steps:
- Step S601 receiving a file image obtained by the file sharing client to be locally parsed by the shared file, and proceeding to step S604;
- Step 602 Receive the file to be shared sent by the file sharing client, determine whether the file format of the file to be shared is a picture format, and if not, proceed to step S603, and if yes, proceed to step S604;
- step S601 and step 602 are performed;
- Step S603 parsing the file to be shared to obtain the file picture, and proceeding to step S604;
- Step S604 generating a webpage page and a webpage link corresponding to the webpage page according to the file image or the to-be-shared file, and proceeding to step S605;
- the web page is generated according to the file image and the webpage corresponding to the webpage is received.
- the file format of the file to be shared is a picture. The format generates a webpage page according to the file to be shared and a webpage link corresponding to the webpage page;
- Step S605 Return the webpage link to the file sharing client to display or share the webpage link.
- FIG. 7 The flowchart of the eighth embodiment of the file sharing method of the present invention is shown in FIG. 7 in combination with the solution in the first embodiment and the fifth embodiment.
- the two-way interaction process between the server and the client at the time of file sharing is taken as an example, and the description is not intended to limit the present invention.
- the method in this embodiment includes the following steps:
- Step S701 The file sharing client locally parses the shared file to obtain a file image, and sends the file image to the server, or the file sharing client sends the to-be-shared file to the server;
- Step S702 The server receives the file picture, or receives the to-be-shared file sent by the sharing client, and parses the file to be shared to obtain the file picture.
- Step S703 The server generates a webpage page and a webpage link corresponding to the webpage page according to the file image;
- Step S704 The server returns the webpage link to the file sharing client.
- Step S705 The file sharing client displays the webpage link or shares the webpage link.
- the file sharing client locally parses the shared file to obtain a file image, and sends the file image to the server, or the file sharing client sends the to-be-shared file to the server, the server Receiving the file image, or receiving the to-be-shared file sent by the sharing client, parsing the file to be shared, obtaining the file image, and generating a webpage page and the webpage page according to the file image Corresponding webpage link, returning the webpage link to the file sharing client, the file sharing client displaying the webpage link, or sharing the webpage link, converting the to-be-shared file into a webpage page, and generating
- the webpage link corresponding to the webpage page can conveniently realize one-to-many sharing, improve the sharing efficiency, and at the same time, convert the file to be shared into a webpage, and the file acquisition terminal (pre-browse the client of the user to share the file) ) as long as the browser is loaded, you can implement the file to be shared. Access to, and affected by terminal operating system, but also
- the solution in the first embodiment and the fifth embodiment is combined, but the two-way interaction process between the server and the client during file sharing is not limited thereto, and for example, The second embodiment is combined with the solution of the fifth embodiment, or the fourth embodiment is combined with the solution of the sixth embodiment, which will not be explained here.
- the file sharing method of the present invention can be applied to many scenarios, and several of the application scenarios are briefly described below.
- Scene 1 When the user is in normal use, the PC (Personal Computer) file can be converted into a smaller and more suitable mobile phone reading form by the solution of the present invention, and a two-dimensional code is generated, after scanning the two-dimensional code. Save the web page corresponding to the PC file to the mobile phone, and the user can use the fragmented time to read the file.
- PC Personal Computer
- Scenario 2 In an office environment, a user can quickly send work files to multiple users in a lighter form, improve the mobility and reading efficiency of work files, and remotely update the contents of the sent files without resending. To others.
- Scenario 3 In the teaching environment, a user can send a courseware or a blackboard book to a plurality of users in a more lightweight manner by using the solution of the present invention, thereby improving the learning effect of the courseware in the class and after class. .
- Scenario 4 In the conference environment, a user can place a two-dimensional code of a file in a place where a plurality of users can scan through the solution of the present invention, so that the user in the back row can also read the content of the conference file through the mobile phone.
- Scene 5 In the outdoor display or mall display environment, each user can place their own QR code, and the user can scan the mobile phone to learn about the activity and product information, and can simply share it into the social network.
- the teacher When the teacher (or user) finishes a lesson, he writes a lot of pages on the touch screen and saves the books on the touch screen.
- the teacher wants to distribute the blackboard (equivalent to the aforementioned file to be shared), he can directly Clicking the distribution button to trigger the software on the screen to execute the solution of the present invention (hereinafter referred to as distribution software) to perform a screenshot or snapshot operation on each of the blackboard files written by the teacher (corresponding to the aforementioned file to be shared) to generate a blackboard image (corresponding to the aforementioned file) Picture), the teacher can choose to distribute or only distribute some of the pictures of the board, and then distribute the software to upload the picture of the board selected by the teacher to the server through the network.
- distribution software to perform a screenshot or snapshot operation on each of the blackboard files written by the teacher (corresponding to the aforementioned file to be shared) to generate a blackboard image (corresponding to the aforementioned file) Picture
- the server After the upload is completed, the server will generate a waterfall in order according to the uploaded picture.
- the webpage page returns the webpage link of the waterfall webpage page to the distribution software.
- the webpage link is displayed on the touch screen or the screen connected to the touchscreen.
- the webpage connection is a two-dimensional code, the person who listens to the class can use the mobile
- the terminal scans the QR code to obtain the content of the lecturer's blackboard, and can also pass the QR code through the society.
- the media is shared into the circle of friends or groups, so that other people can also directly access the contents of the lecturer's board by directly clicking the QR code connection, thereby realizing the rapid distribution of the book.
- the present invention further provides a file sharing system, which will be described in detail below with reference to an embodiment of the file sharing system of the present invention.
- the file sharing system of the present invention may include only one of a file sharing client and a server, and may also include a file sharing client and a server.
- a schematic diagram of a file sharing embodiment of the present invention is shown in FIG. 8 in combination with a file sharing client and a server, and may include one of a first parsing unit 8011 and a second parsing unit 8024. Or two.
- the file sharing client 801 in the file sharing system in this embodiment includes:
- the first parsing unit 8011 is configured to perform local parsing of the shared file to obtain a file image.
- the transceiver unit 8012 is configured to send the file picture to the server, and receive a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image, or send the to-be-shared file to The server performs parsing to obtain the file picture, and receives a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image;
- the local sharing unit 8013 is configured to display the webpage link or share the webpage link.
- the file sharing client 801 may further include a first determining unit 8014, where:
- the first determining unit 8014 is configured to determine whether the file to be shared can be parsed locally;
- the first parsing unit 8011 is configured to perform local parsing of the file to be shared to obtain a file picture when the determination result of the first determining unit 8014 is YES;
- the transceiver unit 8012 is configured to send the file to be shared to the server for parsing to obtain the file picture when the determination result of the first determining unit 8014 is NO.
- the file sharing client 801 may further include a second determining unit 8015, where:
- the second determining unit 8015 is configured to determine whether the file format of the file to be shared is a picture format
- the first parsing unit 8011 is configured to perform local parsing of the file to be shared to obtain a file picture when the determination result of the second judging unit is no;
- the transceiver unit 8012 sends the file to be shared to the server when the determination result of the second determining unit is YES.
- the file sharing client 801 may further include a first determining unit 8014 and a second determining unit 8015, where:
- the second determining unit 8015 is configured to determine whether the file format of the file to be shared is a picture format
- the transceiver unit 8012 is configured to send the to-be-shared file to the server when the determination result of the second determining unit 8015 is YES;
- the first determining unit 8014 is configured to determine, when the determination result of the second determining unit 8015 is negative, whether the file to be shared can be parsed locally;
- the first parsing unit 8011 is configured to perform local parsing of the file to be shared to obtain a file picture when the determination result of the first determining unit 8014 is YES;
- the transceiver unit 8012 is configured to: when the determination result of the first determining unit 8014 is negative, send the file to be shared to the server, and parse the file to be shared by the server to obtain the file picture.
- the first parsing unit 8011 may parse the file to be shared to obtain the file page of the file to be shared, and take a screenshot or a snapshot of the file page to obtain a picture corresponding to the file page. Obtaining the file picture according to the file picture.
- the first parsing unit 8011 may obtain the file type of the file to be shared, determine an parsing manner corresponding to the file type according to the preset association relationship, and parse the shared file according to the parsing manner. Obtain the picture of the file.
- the local sharing unit 8013 may send the webpage link to the file acquisition terminal through a social network tool.
- the file sharing system of the present invention may further include:
- the other sharing unit 803 is configured to: when the file obtaining terminal enters the webpage through the webpage link, if the webpage link obtaining instruction is received, displaying the webpage link on the currently displayed webpage page
- the other sharing unit 803 is generally located on the file acquiring terminal.
- the file sharing client 801 may further include a saving unit 8016 for saving the webpage link locally.
- the file sharing client 801 may further include an instruction obtaining unit 8017;
- the instruction obtaining unit 8017 is configured to acquire an operation instruction for the webpage page
- the transceiver unit 8012 is further configured to send the operation instruction to the server to perform the The operation corresponding to the operation instruction.
- the web page link is a two-dimensional code or a URL.
- the server 802 in the file sharing system in this embodiment includes:
- the receiving unit 8021 is configured to receive a file image obtained by the file sharing client to be locally parsed by the file to be shared, or receive the to-be-shared file sent by the sharing client;
- a generating unit 8022 configured to generate a webpage page and a webpage link corresponding to the webpage page according to the file image
- the sending unit 8023 is configured to return the webpage link to the file sharing client to display or share the webpage link;
- the second parsing unit 8024 is configured to parse the to-be-shared file to obtain the file picture when the receiving unit 8021 receives the file to be shared.
- the server 802 may further include a third determining unit 8025, where:
- the third determining unit 8025 is configured to determine whether the file format of the file to be shared is a picture format.
- the second parsing unit 8024 is further configured to: when the determination result of the third determining unit 8025 is negative, parse the to-be-shared file to obtain the file picture;
- the generating unit 8022 is configured to generate a webpage page and a webpage link corresponding to the webpage page according to the to-be-shared file when the determination result of the third judging unit 8025 is YES.
- the second parsing unit 8024 may parse the file to be shared to obtain the file page of the file to be shared, and take a screenshot or a snapshot of the file page to obtain a picture corresponding to the file page. Obtaining the file picture according to the file picture.
- the second parsing unit 8024 may obtain the file type of the file to be shared, determine an parsing manner corresponding to the file type according to the preset association relationship, and parse the shared file according to the parsing manner. Obtain the picture of the file.
- the generating unit 8022 may add the file image to a webpage container, and the webpage container displays the file image in a waterfall manner to obtain the webpage page.
- the server 802 can also include an operating unit 8026, wherein:
- the receiving unit 8021 is further configured to receive an operation instruction of the file sharing client on the webpage page;
- the operation unit 8026 is configured to perform an operation corresponding to the operation instruction on the webpage page.
- the webpage link may be a two-dimensional code or a URL.
- the file sharing system of the present invention corresponds to the file sharing method of the present invention.
- the technical features and the beneficial effects described in the embodiments of the file sharing method are applicable to the embodiment of the file sharing system, and are hereby declared.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Disclosed are a file sharing method and system. The method comprises steps of: a file sharing client locally parsing a file to be shared to obtain a file picture, and sending the file picture to a server, or the file sharing client sending the file to be shared to the server (S701); the server receiving the file picture, or receiving the file to be shared sent by the file sharing client, and parsing the file to be shared to obtain the file picture (S702); the server generating a web page and a web page link corresponding to the web page according to the file picture (S703); returning the web page link to the file sharing client (S704); and the file sharing client displaying the web page link, or sharing the web page link (S705). The efficiency of file sharing can be increased.
Description
本发明涉及网络技术领域,特别是涉及一种文件分享方法和系统。The present invention relates to the field of network technologies, and in particular, to a file sharing method and system.
随着网络技术的发展,各种文件越来越多,内容也越来越丰富。越来越多的用户会希望能快捷的进行文件分享。例如,当老师讲完一堂课后,有时需要将很多页的板书或者上课时所用的PPT分享给学生。With the development of network technology, more and more files are being produced and content is becoming more and more abundant. More and more users will want to share files quickly. For example, when a teacher finishes a lesson, it is sometimes necessary to share a lot of pages of books or PPTs used during class.
然而,传统的文件分享往往是通过拷贝的方式实现,例如,老师将书写的板书保存成文件,再将文件拷贝给对方,这样在人数众多时,需要一一进行拷贝,分享效率极低。However, traditional file sharing is often achieved by copying. For example, the teacher saves the written book as a file and then copies the file to the other party. Therefore, when the number of people is large, it is necessary to copy one by one, and the sharing efficiency is extremely low.
发明内容Summary of the invention
本发明的目的在于提供一种文件分享方法和系统,可以提高分享效率。The object of the present invention is to provide a file sharing method and system, which can improve sharing efficiency.
本发明的目的通过如下技术方案实现:The object of the invention is achieved by the following technical solution:
一种文件分享方法,包括如下步骤:A file sharing method includes the following steps:
对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述待分享文件发送给所述服务器进行解析获得所述文件图片;Performing local parsing of the shared file to obtain a file image, sending the file image to the server, or sending the to-be-shared file to the server for parsing to obtain the file image;
接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;Receiving, by the server, a webpage link corresponding to the webpage page returned after the webpage is generated according to the file image;
显示所述网页链接,或者分享所述网页链接。Display the webpage link or share the webpage link.
一种文件分享方法,包括如下步骤:A file sharing method includes the following steps:
接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片;Receiving, by the file sharing client, a file image obtained by locally parsing the file to be shared, or receiving the file to be shared sent by the sharing client, and parsing the file to be shared to obtain the file image;
根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;Generating a webpage page and a webpage link corresponding to the webpage page according to the file image;
将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享。Returning the webpage link to the file sharing client for displaying or sharing the webpage link.
一种文件分享系统,其特征在于,包括文件分享客户端,所述文件分享客户端包括:A file sharing system, comprising: a file sharing client, wherein the file sharing client comprises:
第一解析单元,用于对待分享文件进行本地解析获得文件图片;a first parsing unit, configured to perform local parsing of the shared file to obtain a file image;
收发单元,用于向服务器发送所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,或者用于将所述待分享文件发送给所述服务器进行解析获得所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;a transceiver unit, configured to send the file picture to the server, and receive a webpage link corresponding to the webpage page returned by the server according to the file image, or send the file to be shared to the The server performs parsing to obtain the file picture, and receives a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image;
本地分享单元,用于显示所述网页链接,或者分享所述网页链接。a local sharing unit, configured to display the webpage link, or share the webpage link.
一种文件分享系统,包括服务器,所述服务器包括:A file sharing system includes a server, the server including:
接收单元,用于接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件;a receiving unit, configured to receive a file image obtained by the file sharing client to be locally parsed by the shared file, or receive the to-be-shared file sent by the sharing client;
生成单元,用于根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;a generating unit, configured to generate a webpage page according to the file image and a webpage link corresponding to the webpage page;
发送单元,用于将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享;a sending unit, configured to return the webpage link to the file sharing client to display or share the webpage link;
第二解析单元,用于在所述接收单元接收到的是所述待分享文件时,对所述待分享文
件进行解析获得所述文件图片。a second parsing unit, configured to: when the receiving unit receives the to-be-shared file, the to-be-shared text
The piece is parsed to obtain the file picture.
根据上述本发明的方案,其是在文件分享客户端(预分享待分享文件的用户的客户端)对待分享文件进行本地解析获得的文件图片后,将文件图片发送到服务器,或者直接将所述待分享文件发送给所述服务器,由所述服务器对所述待分享文件进行解析获得所述文件图片,并由服务器根据所述文件图片生成网页页面并生成与该网页页面对应的网页链接,将该网页链接返回给客户端,在文件分享客户端进行网页链接的显示或者分享,由于将待分享文件转换成了网页页面,并生成了网页页面对应的网页链接,这样可以便捷的实现一对多的分享,提高了分享效率,同时由于将待分享文件转换成了网页页面,文件获取终端(预浏览待分享文件的用户的终端)上只要装载有浏览器就可以实现对待分享文件的浏览,而不受终端操作系统的影响,也提高了文件获取的便捷性。According to the solution of the present invention, after the file sharing client (the client of the user who shares the file to be shared) locally parses the file to be shared, the file image is sent to the server, or the file is directly The file to be shared is sent to the server, and the file is parsed by the server to obtain the file image, and the server generates a webpage page according to the file image and generates a webpage link corresponding to the webpage page, and The webpage link is returned to the client, and the webpage link is displayed or shared in the file sharing client. Since the file to be shared is converted into a webpage page and a webpage link corresponding to the webpage page is generated, the one-to-many can be conveniently realized. Sharing, improving sharing efficiency, and at the same time, since the file to be shared is converted into a web page, the file obtaining terminal (pre-browsing the user's terminal of the file to be shared) can browse the file to be shared as long as the browser is loaded, and Unaffected by the terminal operating system, it also improves the convenience of file acquisition. Sex.
图1为本发明的文件分享方法实施例一的流程示意图;FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a file sharing method according to the present invention;
图2为本发明的文件分享方法实施例二的流程示意图;2 is a schematic flowchart of Embodiment 2 of a file sharing method according to the present invention;
图3为本发明的文件分享方法实施例三的流程示意图;3 is a schematic flowchart of Embodiment 3 of a file sharing method according to the present invention;
图4为本发明的文件分享方法实施例四的流程示意图;4 is a schematic flowchart of Embodiment 4 of a file sharing method according to the present invention;
图5为本发明的文件分享方法实施例五的流程示意图;FIG. 5 is a schematic flowchart diagram of Embodiment 5 of a file sharing method according to the present invention;
图6为本发明的文件分享方法实施例六的流程示意图FIG. 6 is a schematic flowchart diagram of Embodiment 6 of a file sharing method according to the present invention;
图7为本发明的文件分享方法实施例七的流程示意图;FIG. 7 is a schematic flowchart diagram of Embodiment 7 of a file sharing method according to the present invention;
图8为本发明的文件分享方法实施例八的流程示意图;FIG. 8 is a schematic flowchart diagram of Embodiment 8 of a file sharing method according to the present invention;
图9为本发明的文件分享系统的一个实施例的结构示意图;9 is a schematic structural diagram of an embodiment of a file sharing system according to the present invention;
图10为本发明的文件分享系统的另一个实施例的结构示意图;FIG. 10 is a schematic structural diagram of another embodiment of a file sharing system according to the present invention; FIG.
图11为本发明的文件分享系统的第三个实施例的结构示意图;11 is a schematic structural diagram of a third embodiment of a file sharing system according to the present invention;
图12为本发明的文件分享系统的第四个实施例的结构示意图;12 is a schematic structural diagram of a fourth embodiment of a file sharing system according to the present invention;
图13为本发明的文件分享系统的第五个实施例的结构示意图;FIG. 13 is a schematic structural diagram of a fifth embodiment of a file sharing system according to the present invention; FIG.
图14为本发明的文件分享系统的第六个实施例的结构示意图;14 is a schematic structural diagram of a sixth embodiment of a file sharing system according to the present invention;
图15为本发明的文件分享系统的第七个实施例的结构示意图;15 is a schematic structural diagram of a seventh embodiment of a file sharing system according to the present invention;
图16为本发明的文件分享系统的第八个实施例的结构示意图。Figure 16 is a block diagram showing the structure of an eighth embodiment of the file sharing system of the present invention.
为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the scope of the invention.
在下述说明中,首先针对本发明的文件分享方法的实施例进行说明,再对本发明的文件分享系统的实施例进行说明。In the following description, first, an embodiment of the file sharing method of the present invention will be described, and an embodiment of the file sharing system of the present invention will be described.
如下的实施例一~实施例四是以文件分享客户端的处理过程为例进行说明。The following Embodiments 1 to 4 are described by taking the processing procedure of the file sharing client as an example.
实施例一Embodiment 1
图1中示出了本发明的文件分享方法实施例一的流程示意图。参见图1所示,本实施例一的文件分享方法包括如下步骤:FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a file sharing method of the present invention. Referring to FIG. 1, the file sharing method in the first embodiment includes the following steps:
步骤S101:对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,
或者将所述待分享文件发送给所述服务器进行解析获得所述文件图片;Step S101: Perform local analysis on the shared file to obtain a file image, and send the file image to the server.
Or sending the to-be-shared file to the server for parsing to obtain the file picture;
这里,待分享文件可以是word、PDF、PPT等各种格式的文件;Here, the files to be shared may be files of various formats such as word, PDF, PPT;
这里的文件图片是指通过本地解析将待分享文件中的文件页面转换成的图片;The file image here refers to a picture converted into a file page in the file to be shared by local parsing;
本实施例中的对待分享文件进行本地解析获得文件图片的过程可以是:按照预设单位将待分享文件中文件页面转换成文件图片,这里的预设单位可以指一页也可以是多页,在预设单位为一页时,每一页文件页面转换成一张文件图片,在预设单元是多页时,例如两页,则每两页文件页面转换成一张文件图片;The process of locally parsing the file to be shared in the embodiment may be: converting the file page in the file to be shared into a file image according to a preset unit, where the preset unit may refer to one page or multiple pages. When the preset unit is one page, each page of the file is converted into a file image. When the preset unit is multiple pages, for example, two pages, each two-page file page is converted into a file image;
在其中一个实施例中,对待分享文件进行本地解析获得文件图片的方式可以是:解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据与所述文件页面对应的图片获得所述文件图片;如果待分享文件的文件页面是多页,为了提高解析效率,可以并行的对所述文件页面进行截图或者快照,得到与各文件页面分别对应的图片;In one embodiment, the method for obtaining the file to be shared by the file to be shared may be: parsing the file to be shared to obtain a file page of the file to be shared, and taking a screenshot or a snapshot of the file page to obtain The image corresponding to the file page is obtained according to the image corresponding to the file page; if the file page of the file to be shared is multiple pages, in order to improve the resolution efficiency, the file page may be screenshotd in parallel or Snapshot, and obtain a picture corresponding to each file page;
在其中一个实施例中,对待分享文件进行本地解析获得文件图片的方式也可以是:获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式,根据所述解析方式对待分享文件进行解析获得所述文件图片;In one embodiment, the manner in which the file to be shared is locally parsed to obtain the file image may be: obtaining the file type of the file to be shared, and determining an analysis manner corresponding to the file type according to the preset association relationship, according to The parsing method parses the shared file to obtain the file image;
这里的文件类型可以等同于文件格式,也可以是将多种文件格式归于一种文件类型,采用本实施例中的方案,是考虑到不同的文件类型,对应的转换成图片的方式(在本实施例中称为解析方式)也是不同的,因此,在本实施例中是先获取所述待分享文件的文件类型,再根据预设的关联关系确定与所述文件类型对应的解析方式,最后根据所确定的解析方式对待分享文件进行解析获得所述文件图片,其中,关联关系是指文件类型与解析方式的对应关系,各种文件类型对应的解析方式可以是现有的文件解析方式;The file type here may be equivalent to the file format, or may be attributed to a plurality of file formats to a file type. The solution in this embodiment is a method of converting to a picture in consideration of different file types (in this case). In the embodiment, the file type of the file to be shared is obtained first, and then the parsing method corresponding to the file type is determined according to a preset association relationship, and finally And parsing the shared file according to the determined parsing manner to obtain the file image, wherein the association relationship refers to a correspondence between the file type and the parsing manner, and the parsing manner corresponding to the various file types may be an existing file parsing manner;
在实际应用中,可以将上述两个实施例中的对待分享文件进行本地解析获得文件图片的方式进行结合,在此不予赘述;In an actual application, the manner in which the file to be shared in the above two embodiments is locally parsed to obtain a file image may be combined, and details are not described herein;
为了提高发送效率,在将所述文件图片发送给服务器之前,还可以对所述文件图片进行打包与压缩处理,将压缩处理之后的压缩包发送到服务器;In order to improve the transmission efficiency, before the file picture is sent to the server, the file picture may be packaged and compressed, and the compressed package after the compression process is sent to the server;
此外,考虑到文件分享客户端可能无法实现对某种格式的文件的解析,这种时候,为了仍能实现对待分享文件的分享,还可以不对待分享文件进行本地解析,而是将所述待分享文件发送给所述服务器,由所述服务器对所述待分享文件进行解析获得所述文件图片,其中在所述服务器对所述待分享文件进行解析可以与在本地对所述待分享文件进行解析采用相同的方式,在此不予赘述;In addition, considering that the file sharing client may not be able to parse the file in a certain format, in this case, in order to still share the file to be shared, the shared file may not be locally parsed, but the The shared file is sent to the server, and the file is parsed by the server to obtain the file image, where the server parses the to-be-shared file and locally performs the file to be shared. The analysis is in the same way and will not be repeated here;
步骤S102:接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;Step S102: Receive a webpage link corresponding to the webpage page returned by the server after generating a webpage page according to the file image;
为了便于用户对网页页面的浏览,提高浏览效率,在其中一个实施例中,该网页页面为瀑布式网页页面;In order to facilitate the user to browse the webpage and improve the browsing efficiency, in one embodiment, the webpage is a waterfall webpage;
由服务器根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,在其中一个实施例中,根据所述文件图片生成网页页面以及与该网页页面对应的二维码的具体过程可以是:将所述文件图片添加到网页容器中,由所述网页容器对所述文件图片进行瀑布式显示,得到所述网页页面;其中,由所述网页容器对各所述文件图片进行瀑布式显示得到所述网页页面可以采用现有的方式,在此不予赘述;The server generates a webpage page and a webpage link corresponding to the webpage page according to the file image. In one embodiment, a specific process of generating a webpage page according to the file image and a two-dimensional code corresponding to the webpage page may be Adding the file image to the webpage container, and displaying, by the webpage container, the waterfall image of the file image to obtain the webpage page; wherein the webpage container displays the file image by waterfall The web page can be obtained in an existing manner, and will not be described here;
其中,所述网页链接可以为二维码,或者也可以为URL(Uniform Resource Locator,
统一资源定位符,是网页页面的地址);The webpage link may be a two-dimensional code, or may be a URL (Uniform Resource Locator,
The Uniform Resource Locator is the address of the web page);
步骤S103:显示所述网页链接,或者分享所述网页链接;Step S103: displaying the webpage link or sharing the webpage link;
文件分享客户端(预分享待分享文件的用户的客户端)在显示该网页链接时,预获取或者浏览待分享文件的用户可以通过其终端(以下称为文件获取终端)获取该网页链接进而浏览所述网页页面,例如,该网页链接为二维码时,则预获取或者浏览待分享文件的用户可以通过文件获取终端中的扫码功能(该扫码功能可以是社交网络应用软件中实现的功能)就可以扫描二维码,进入所述网页页面进行待分享文件的获取或者浏览;The file sharing client (the client that pre-shares the user to share the file), when displaying the link of the webpage, the user who pre-acquires or browses the file to be shared can obtain the link of the webpage through its terminal (hereinafter referred to as a file acquisition terminal) and browse The webpage page, for example, when the webpage link is a two-dimensional code, the user who pre-acquires or browses the file to be shared can obtain the scan code function in the terminal through the file (the scan code function can be implemented in the social network application software) Function) can scan the two-dimensional code and enter the webpage page to obtain or browse the file to be shared;
也可以通过社交网络工具进行所述网页链接的分享到朋友圈、群组等社交网络,这些社交网络中的用户就可以通过其终端中获取该网页链接进而浏览所述网页页面,为此,在其中一个实施例中分享所述网页链接的过程具体可以是通过社交网络工具将所述网页链接发送给文件获取终端;The social network tool can also share the webpage link to a social network such as a circle of friends, a group, etc., and the users in the social network can browse the webpage by accessing the webpage link in the terminal, for which, The process of sharing the webpage link in one embodiment may specifically be: sending the webpage link to the file acquisition terminal through a social network tool;
文件获取终端获取到该网页链接后通过用户的操作触发的打开指令就可以打开所述网页页面,用户就可以浏览所述网页页面了,实现了待分享文件的分享,同时,为了进一步提高分享效率,在其中一个实施例中,在所述文件获取终端通过所述网页链接进入到所述网页页面时,若接收到网页链接获取指令,则在当前显示的所述网页页面之上显示所述网页链接,这样,不但文件分享客户端可以对网页页面进行分享,文件获取终端也可以对网页页面进行分享;After the file obtaining terminal obtains the link of the webpage and the opening command triggered by the user's operation, the webpage page can be opened, and the user can browse the webpage page to realize the sharing of the file to be shared, and at the same time, in order to further improve the sharing efficiency. In one embodiment, when the file obtaining terminal enters the webpage through the webpage link, if the webpage link obtaining instruction is received, the webpage is displayed on the currently displayed webpage page. Link, in this way, not only the file sharing client can share the webpage page, but also the file obtaining terminal can share the webpage page;
需要说明的是,本发明所指文件分享客户端是泛指多个客户端中的一个,而并非指某一特定的客户端;文件获取终端也是泛指多个客户端中的一个,而并非指某一特定的客户端;在实际应用中,多个客户端可以根据在不同时刻所进行的不同操作可以充当文件分享客户端或文件获取终端;It should be noted that the file sharing client referred to in the present invention refers to one of a plurality of clients, and does not refer to a specific client; the file acquiring terminal is generally referred to as one of a plurality of clients, and is not Refers to a specific client; in actual applications, multiple clients can act as file sharing clients or file acquisition terminals according to different operations performed at different times;
根据上述本实施例的方案,其是对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述待分享文件发送给所述服务器进行解析获得所述文件图片,接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,显示所述网页链接,或者分享所述网页链接,由于将待分享文件转换成了网页页面,并生成了网页页面对应的网页链接,这样可以便捷的实现一对多的分享,提高了分享效率,同时由于将待分享文件转换成了网页页面,文件获取终端(预浏览待分享文件的用户的客户端)上只要装载有浏览器就可以实现对待分享文件的浏览,而不受终端操作系统的影响,也提高了文件获取的便捷性。According to the solution of the foregoing embodiment, the file to be shared is locally parsed to obtain a file picture, and the file picture is sent to the server, or the file to be shared is sent to the server for parsing to obtain the file picture, and the receiving station Deriving a webpage link corresponding to the webpage page after the webpage is generated according to the file image, displaying the webpage link, or sharing the webpage link, converting the to-be-shared file into a webpage page, and generating a webpage The webpage link corresponding to the page can conveniently realize one-to-many sharing, improve the sharing efficiency, and at the same time, because the file to be shared is converted into a webpage, the file acquisition terminal (pre-browsing the client of the user who wants to share the file) As long as the browser is loaded, the browsing of the file to be shared can be realized without being affected by the terminal operating system, and the convenience of file acquisition is also improved.
实施例二Embodiment 2
如图2所示,是本发明的文件分享方法实施例二的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,可以对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,也可以将所述待分享文件发送给所述服务器进行解析获得所述文件图片,为了确定什么时候对待分享文件进行本地解析、什么时候将待分享文件发送到服务器进行解析,在本实施例中,增加了判断是否可以在本地解析所述待分享文件的步骤。As shown in FIG. 2, it is a schematic flowchart of the second embodiment of the file sharing method of the present invention. In this embodiment, the difference from the first embodiment is mainly that the file to be shared can be locally parsed to obtain a file image. The server sends the file picture, and the file to be shared is sent to the server for parsing to obtain the file picture, in order to determine when to process the shared file for local parsing, and when to send the file to be shared to the server for parsing. In this embodiment, the step of determining whether the file to be shared can be parsed locally is added.
如图2所示,本实施例中的方法包括步骤:As shown in FIG. 2, the method in this embodiment includes the following steps:
步骤S201:判断是否可以在本地解析待分享文件,若是,进入步骤S202,若否,进入到步骤S203;Step S201: determining whether the file to be shared can be parsed locally, if yes, proceeding to step S202, and if not, proceeding to step S203;
可以根据待分享文件的文件格式或者文件类型判断是否可以在本地解析待分享文件;
Whether the file to be shared can be parsed locally can be determined according to the file format or the file type of the file to be shared;
步骤S202:对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,进入到步骤S204;Step S202: Locally parsing the shared file to obtain a file picture, sending the file picture to the server, and proceeding to step S204;
步骤S203:将所述待分享文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S204;Step S203: The file to be shared is sent to the server for parsing to obtain the file picture, and the process proceeds to step S204;
也就是说,在本地不能解释所述待分享文件时,将该待分享文件发送到服务器,由服务器进行解析;That is, when the file to be shared cannot be explained locally, the file to be shared is sent to the server, and is parsed by the server;
步骤S204:接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S205;Step S204: receiving a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image, and proceeding to step S205;
步骤S205:显示所述网页链接,或者分享所述网页链接。Step S205: Display the webpage link or share the webpage link.
采用本实施例中的方案,即便在本地不能解释待分享文件时,也能进行待分享文件的分享,此外,采用本实施例中这种只有在本地无法解析所述待分享文件时才由服务器解析所述待分享文件的方式,而不是全部由服务器解析所述待分享文件,也可以减轻服务器的压力,提高分享效率。With the solution in this embodiment, even if the file to be shared cannot be interpreted locally, the sharing of the file to be shared can be performed. In addition, in the embodiment, the server cannot be resolved only when the file to be shared cannot be parsed locally. The method of parsing the file to be shared, rather than all the files to be shared by the server, can also alleviate the pressure on the server and improve the sharing efficiency.
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein.
实施例三Embodiment 3
如图3所示,是本发明的文件分享方法实施例三的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,考虑到若待分享文件本身就是图片,这种情况下,是不需要解析待分享文件,为此,在本实施例中,增加了判断所述待分享文件的文件格式是否是图片格式的步骤,以提高分享效率。As shown in FIG. 3, it is a schematic flowchart of the third embodiment of the file sharing method of the present invention. In this embodiment, the difference from the first embodiment is mainly because the file to be shared is a picture. In this case, the file to be shared is not required to be parsed. To this end, in this embodiment, a step of determining whether the file format of the file to be shared is a picture format is added to improve sharing efficiency.
如图3所示,本实施例中的方法包括步骤:As shown in FIG. 3, the method in this embodiment includes the steps of:
步骤S301:判断所述待分享文件的文件格式是否是图片格式,若否,进入步骤S302,若是,进入到步骤S303;Step S301: determining whether the file format of the file to be shared is a picture format, if not, proceeding to step S302, and if yes, proceeding to step S303;
步骤S302:对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述待分享文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S304;Step S302: Locally parsing the shared file to obtain a file picture, sending the file picture to the server, or sending the file to be shared to the server for parsing to obtain the file picture, and proceeding to step S304;
步骤S303:向所述服务器发送所述待分享文件,进入到步骤S304;Step S303: Send the file to be shared to the server, and proceed to step S304;
也就是说,在待分享文件的文件格式是图片格式时,直接将待分享文件发送给服务器;In other words, when the file format of the file to be shared is an image format, the file to be shared is directly sent to the server;
步骤S304:接收所述服务器根据所述文件图片或者所述待分享文件生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S505;Step S304: receiving a webpage link corresponding to the webpage page returned by the server according to the file image or the to-be-shared file, and proceeding to step S505;
其中,若向服务器发送的是文件图片时,则接收到是根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,若向服务器发送的是所述待分享文件且所述待分享文件的文件格式是否为图片格式,则接收到的是根据待分享文件生成网页页面以及与该网页页面对应的网页链接;If the file image is sent to the server, the web page is generated according to the file image and the web page corresponding to the web page is sent. If the file to be shared is sent to the server, the file to be shared is to be shared. Whether the file format of the file is an image format, the received webpage is generated according to the file to be shared and the webpage corresponding to the webpage page;
步骤S305:显示所述网页链接,或者分享所述网页链接。Step S305: Display the webpage link or share the webpage link.
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein.
实施例四Embodiment 4
如图3所示,是本发明的文件分享方法实施例三的流程示意图,在本实施例中,与上述实施例一的不同之处主要在于,其一,考虑可以对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,也可以将所述待分享文件发送给所述服务器进行解析获
得所述文件图片,就要确定什么时候对待分享文件进行本地解析、什么时候将待分享文件发送到服务器进行解析,其二,考虑待分享文件可能本身就是图片,这种情况下,是不需要解析待分享文件,为此,在本实施例中,增加了判断是否可以在本地解析所述待分享文件的步骤以及判断所述待分享文件的文件格式是否是图片格式的步骤,以保证分享的顺利进行提高分享效率。As shown in FIG. 3, it is a schematic flowchart of the third embodiment of the file sharing method of the present invention. In this embodiment, the difference from the first embodiment is mainly as follows: Sending the file image to the server, and sending the file to be shared to the server for parsing
To get the file image, it is necessary to determine when to treat the shared file for local parsing, when to send the file to be shared to the server for parsing, and second, consider that the file to be shared may be the image itself. In this case, it is not necessary. The file to be shared is parsed. In this embodiment, the step of determining whether the file to be shared can be parsed locally and the step of determining whether the file format of the file to be shared is a picture format is added to ensure sharing. Smoothly improve sharing efficiency.
如图4所示,本实施例中的方法包括步骤:As shown in FIG. 4, the method in this embodiment includes the steps of:
步骤S401:判断所述待分享文件的文件格式是否是图片格式,若是,进入步骤S402,若否,进入到步骤S403;Step S401: determining whether the file format of the file to be shared is a picture format, if yes, proceeding to step S402, and if not, proceeding to step S403;
步骤S402:向所述服务器发送所述待分享文件,进入到步骤S406;Step S402: Send the file to be shared to the server, and proceed to step S406;
也就是说,在待分享文件的文件格式是图片格式时,直接将待分享文件发送给服务器;In other words, when the file format of the file to be shared is an image format, the file to be shared is directly sent to the server;
步骤S403:判断是否可以在本地解析所述待分享文件,若是,进入步骤S404,若否,进入到步骤S405;Step S403: determining whether the file to be shared can be parsed locally, if yes, proceeding to step S404, and if not, proceeding to step S405;
步骤S404:对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,进入到步骤S406;Step S404: The file to be shared is locally parsed to obtain a file picture, and the file picture is sent to the server, and the process proceeds to step S406;
步骤S405:将所述待分享文件发送给所述服务器进行解析获得所述文件图片,进入到步骤S406;Step S405: The file to be shared is sent to the server for parsing to obtain the file picture, and the process proceeds to step S406;
也就是说,在本地不能解释所述待分享文件时,将该待分享文件发送到服务器,由服务器进行解析;That is, when the file to be shared cannot be explained locally, the file to be shared is sent to the server, and is parsed by the server;
步骤S406:接收所述服务器根据所述文件图片或者所述待分享文件生成网页页面后返回的与该网页页面对应的网页链接,进入到步骤S407;Step S406: receiving a webpage link corresponding to the webpage page returned by the server according to the file image or the to-be-shared file, and proceeding to step S407;
其中,若向服务器发送的是文件图片时,则接收到是根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,若向服务器发送的是所述待分享文件且所述待分享文件的文件格式是否为图片格式,则接收到的是根据待分享文件生成网页页面以及与该网页页面对应的网页链接;If the file image is sent to the server, the web page is generated according to the file image and the web page corresponding to the web page is sent. If the file to be shared is sent to the server, the file to be shared is to be shared. Whether the file format of the file is an image format, the received webpage is generated according to the file to be shared and the webpage corresponding to the webpage page;
步骤S407:显示所述网页链接,或者分享所述网页链接。Step S407: Display the webpage link or share the webpage link.
本实施例中的其他技术特征与上述实施例一中的相同,在此不予赘述。Other technical features in this embodiment are the same as those in the first embodiment, and are not described herein.
此外,考虑到一些想获得待分享文件的用户有时候并不能在同一个时间段内获取到该待分享文件(或者称为该待分享文件对应的网页页面),例如,待分享文件是同一个老师的板书文件,而这个老师的多个班级的学生由于上课时间是不同的,因此,不能固定在同一个时间段内获取到该板书文件,同时,又为了避免重复的进行文件分享的整个过程,在其中一个实施例中,还可以包括步骤:将所述网页链接保存在本地,采用这种方式,就可以随时根据需要调出所述网页链接。In addition, it is considered that some users who want to obtain a file to be shared sometimes cannot obtain the file to be shared (or a web page corresponding to the file to be shared) in the same time period, for example, the file to be shared is the same The teacher's blackboard file, and the teacher's multiple class students are different because of the class time. Therefore, it is not possible to obtain the board file in the same time period, and at the same time, to avoid the repeated process of file sharing. In one embodiment, the method may further include the step of: saving the webpage link locally, and in this way, the webpage link may be called up as needed at any time.
另一方面,考虑到,用户可能需要对自己分享的文件进行管理,例如,修改、删除、加密等,因此,在其中一个实施例中,还可以包括步骤:获取对所述网页页面的操作指令,将所述操作指令发送给所述服务器对所述网页页面与该进行操作指令对应的操作。On the other hand, it is considered that the user may need to manage the files that are shared by the user, for example, modify, delete, encrypt, etc., and therefore, in one embodiment, the method may further include the steps of: obtaining an operation instruction for the webpage page. And sending the operation instruction to the server to perform an operation corresponding to the webpage page and the operation instruction.
其中,操作指令可以包括删除指令、修改指令、加密指令或解除加密指令等。The operation instruction may include a deletion instruction, a modification instruction, an encryption instruction, or an encryption instruction.
对于修改指令,服务器在对所述网页页面进行与该修改指令对应的操作之前,还需要接收修改后的待分享文件,并将修改后的待分享文件转化成新的网页页面,用该新的网页页面更新原来的网页页面。
For modifying the instruction, the server needs to receive the modified file to be shared before converting the web page to the new instruction, and convert the modified file to be shared into a new web page, and use the new The web page updates the original web page.
对于加密指令,服务器在对所述网页页面进行与该加密指令对应的操作之前,还需要获取加密密码。For the encryption instruction, the server needs to acquire the encryption password before performing the operation corresponding to the encryption instruction on the webpage page.
如下的实施例五~实施例七是以服务器的处理过程为例进行说明。The following fifth embodiment to seventh embodiment are described by taking the processing procedure of the server as an example.
实施例五Embodiment 5
如图5所示,在该实施例五中,服务器的处理过程包括有:As shown in FIG. 5, in the fifth embodiment, the processing process of the server includes:
步骤S501:接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片;Step S501: Receive a file image obtained by the file sharing client to be locally parsed by the shared file, or receive the file to be shared sent by the sharing client, and parse the file to be shared to obtain the file image. ;
也就是说,可以接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,但考虑到文件分享客户端可能无法实现对某种格式的文件的解析,文件分享客户端会直接将文件分享客户端发送到服务器,这种时候,为了仍能实现对待分享文件的分享,也可以接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片;That is to say, the file image obtained by the file sharing client to be locally parsed by the file sharing client can be received, but considering that the file sharing client may not be able to parse the file in a certain format, the file sharing client directly directly files the file. The sharing client sends the file to the server. In this case, in order to still share the file to be shared, the file to be shared sent by the sharing client may be received, and the file to be shared may be parsed to obtain the file. image;
步骤S502:根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;Step S502: Generate a webpage page according to the file image and a webpage link corresponding to the webpage page;
步骤S503:将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享。Step S503: Return the webpage link to the file sharing client to display or share the webpage link.
根据上述本实施例的方案,其是接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片,根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享,由于将待分享文件转换成了网页页面,并生成了网页页面对应的网页链接,这样可以便捷的实现一对多的分享,提高了分享效率,同时由于将待分享文件转换成了网页页面,文件获取终端(预浏览待分享文件的用户的客户端)上只要装载有浏览器就可以实现对待分享文件的浏览,而不受终端操作系统的影响,也提高了文件获取的便捷性。According to the solution of the foregoing embodiment, the file image obtained by the file sharing client to be locally parsed by the file sharing client is received, or the file to be shared sent by the sharing client is received, and the file to be shared is received. Performing parsing to obtain the file image, generating a webpage page according to the file image and a webpage link corresponding to the webpage page, and returning the webpage link to the file sharing client to display or share the webpage link, Since the file to be shared is converted into a webpage page and a webpage link corresponding to the webpage page is generated, the one-to-many sharing can be conveniently realized, the sharing efficiency is improved, and the file to be shared is converted into a webpage, a file. Obtaining the terminal (pre-browsing the client of the user to share the file) can browse the file to be shared as long as the browser is loaded, without being affected by the terminal operating system, and the convenience of file acquisition is also improved.
本实施例中的各技术特征与上述实施例一中的相同,在此不予赘述。The technical features in this embodiment are the same as those in the first embodiment, and are not described herein.
实施例六Embodiment 6
如图6所示,是本发明的文件分享方法实施例六的流程示意图,在本实施例中,与上述实施例五的不同之处主要在于,考虑到待分享文件可能本身就是图片,这种情况下,由文件分享客户端发送到服务器的是待分享文件,但是这种待分享文件是不需要解析的;为此,在本实施例中,增加了接收所述文件分享客户端发送的所述待分享文件、根据所述待分享文件生成网页页面以及与该网页页面对应的网页链接的步骤。As shown in FIG. 6 , it is a schematic flowchart of the sixth embodiment of the file sharing method of the present invention. In this embodiment, the difference from the fifth embodiment is mainly that the file to be shared may be a picture itself. In this case, the file to be shared by the file sharing client is a file to be shared, but the file to be shared does not need to be parsed; for this reason, in this embodiment, the sending of the file sharing client is increased. The step of sharing the file, generating a webpage page according to the to-be-shared file, and a webpage link corresponding to the webpage page.
如图6所示,该实施例六中的文件分享方法包括如下步骤:As shown in FIG. 6, the file sharing method in the sixth embodiment includes the following steps:
步骤S601:接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,进入步骤S604;Step S601: receiving a file image obtained by the file sharing client to be locally parsed by the shared file, and proceeding to step S604;
步骤602:接收所述文件分享客户端发送的所述待分享文件,判断所述待分享文件的文件格式是否是图片格式,若否,进入步骤S603,若是,则进入步骤S604;Step 602: Receive the file to be shared sent by the file sharing client, determine whether the file format of the file to be shared is a picture format, and if not, proceed to step S603, and if yes, proceed to step S604;
其中,在某一次文件分享中,只执行步骤S601、步骤602中的一个步骤;Wherein, in a file sharing, only one step in step S601 and step 602 is performed;
步骤S603:解析所述待分享文件获得所述文件图片,进入步骤S604;
Step S603: parsing the file to be shared to obtain the file picture, and proceeding to step S604;
步骤S604:根据所述文件图片或者所述待分享文件生成网页页面以及与该网页页面对应的网页链接,进入步骤S605;Step S604: generating a webpage page and a webpage link corresponding to the webpage page according to the file image or the to-be-shared file, and proceeding to step S605;
其中,在接收到的是文件图片时,根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,若接收到的是所述待分享文件且所述待分享文件的文件格式为图片格式,则根据待分享文件生成网页页面以及与该网页页面对应的网页链接;When the file image is received, the web page is generated according to the file image and the webpage corresponding to the webpage is received. If the file to be shared is received, the file format of the file to be shared is a picture. The format generates a webpage page according to the file to be shared and a webpage link corresponding to the webpage page;
步骤S605:将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享。Step S605: Return the webpage link to the file sharing client to display or share the webpage link.
本实施例中的各技术特征与上述实施例一中的相同,在此不予赘述。The technical features in this embodiment are the same as those in the first embodiment, and are not described herein.
以下结合上述实施例一、实施例五中的方案,图7中示出了本发明的文件分享方法实施例八的流程示意图。在本实施例中,是以文件分享时服务器与客户端之间的双向交互过程为例进行说明,这种说明并不用以对本发明方案构成限定。The flowchart of the eighth embodiment of the file sharing method of the present invention is shown in FIG. 7 in combination with the solution in the first embodiment and the fifth embodiment. In this embodiment, the two-way interaction process between the server and the client at the time of file sharing is taken as an example, and the description is not intended to limit the present invention.
如图7所示,在该实施例七中,本实施例中的方法包括步骤:As shown in FIG. 7, in the seventh embodiment, the method in this embodiment includes the following steps:
步骤S701:文件分享客户端对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者文件分享客户端将所述待分享文件发送给所述服务器;Step S701: The file sharing client locally parses the shared file to obtain a file image, and sends the file image to the server, or the file sharing client sends the to-be-shared file to the server;
步骤S702:所述服务器接收所述文件图片,或者接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片;Step S702: The server receives the file picture, or receives the to-be-shared file sent by the sharing client, and parses the file to be shared to obtain the file picture.
步骤S703:所述服务器根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;Step S703: The server generates a webpage page and a webpage link corresponding to the webpage page according to the file image;
步骤S704:所述服务器将所述网页链接返回给所述文件分享客户端;Step S704: The server returns the webpage link to the file sharing client.
步骤S705:所述文件分享客户端显示所述网页链接,或者分享所述网页链接。Step S705: The file sharing client displays the webpage link or shares the webpage link.
根据上述本发明的方案,其是文件分享客户端对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者文件分享客户端将所述待分享文件发送给所述服务器,该服务器接收所述文件图片,或者接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片,并根据所述文件图片生成网页页面以及与该网页页面对应的网页链接,将所述网页链接返回给所述文件分享客户端,该文件分享客户端显示所述网页链接,或者分享所述网页链接,由于将待分享文件转换成了网页页面,并生成了网页页面对应的网页链接,这样可以便捷的实现一对多的分享,提高了分享效率,同时由于将待分享文件转换成了网页页面,文件获取终端(预浏览待分享文件的用户的客户端)上只要装载有浏览器就可以实现对待分享文件的浏览,而不受终端操作系统的影响,也提高了文件获取的便捷性。According to the solution of the present invention, the file sharing client locally parses the shared file to obtain a file image, and sends the file image to the server, or the file sharing client sends the to-be-shared file to the server, the server Receiving the file image, or receiving the to-be-shared file sent by the sharing client, parsing the file to be shared, obtaining the file image, and generating a webpage page and the webpage page according to the file image Corresponding webpage link, returning the webpage link to the file sharing client, the file sharing client displaying the webpage link, or sharing the webpage link, converting the to-be-shared file into a webpage page, and generating The webpage link corresponding to the webpage page can conveniently realize one-to-many sharing, improve the sharing efficiency, and at the same time, convert the file to be shared into a webpage, and the file acquisition terminal (pre-browse the client of the user to share the file) ) as long as the browser is loaded, you can implement the file to be shared. Access to, and affected by terminal operating system, but also improve the convenience of the documents obtained.
本实施例中的各技术特征与上述实施例一中的相同,在此不予赘述。The technical features in this embodiment are the same as those in the first embodiment, and are not described herein.
需要说明的是,在该实施例中七中是将实施例一、实施例五中的方案进行结合,但文件分享时服务器与客户端之间的双向交互过程并不限于此,例如还可以是将实施例二与实施例五的方案进行结合,或者将实施例四与实施例六的方案进行结合,在此不一一阐述。It should be noted that, in the seventh embodiment, the solution in the first embodiment and the fifth embodiment is combined, but the two-way interaction process between the server and the client during file sharing is not limited thereto, and for example, The second embodiment is combined with the solution of the fifth embodiment, or the fourth embodiment is combined with the solution of the sixth embodiment, which will not be explained here.
本发明的文件分享方法可以应用到很多场景中,以下对其中几种应用场景进行简单说明。The file sharing method of the present invention can be applied to many scenarios, and several of the application scenarios are briefly described below.
场景一:用户正常使用的时候,可以通过本发明的方案把PC(Personal Computer,个人电脑)文件转化成更小更合适手机阅读的形式,并生成二维码,通过扫描二维码之后
将PC文件对应的网页页面保存到手机,用户可以利用碎片化的时间去阅读文件。Scene 1: When the user is in normal use, the PC (Personal Computer) file can be converted into a smaller and more suitable mobile phone reading form by the solution of the present invention, and a two-dimensional code is generated, after scanning the two-dimensional code.
Save the web page corresponding to the PC file to the mobile phone, and the user can use the fragmented time to read the file.
场景二:在办公环境中,一个用户快速将工作文件以更轻量的形式发送给多个用户,提高工作文件的流动性与阅读效率,同时可以远程更新已发送的文件内容,不需要重新发送给其他人。Scenario 2: In an office environment, a user can quickly send work files to multiple users in a lighter form, improve the mobility and reading efficiency of work files, and remotely update the contents of the sent files without resending. To others.
场景三:在教学环境中,一个用户可以通过本发明的方案以非常简单的方式将课件或者板书以更轻量的形式发送给多个用户,提高课堂的课件在课中与课后的学习效果。Scenario 3: In the teaching environment, a user can send a courseware or a blackboard book to a plurality of users in a more lightweight manner by using the solution of the present invention, thereby improving the learning effect of the courseware in the class and after class. .
场景四:在会议环境中,一个用户可以通过本发明的方案把文件二维码放置在多个用户可以扫描的地方,让后排用户也可以通过手机阅读看清楚会议文件的内容。Scenario 4: In the conference environment, a user can place a two-dimensional code of a file in a place where a plurality of users can scan through the solution of the present invention, so that the user in the back row can also read the content of the conference file through the mobile phone.
场景五:在户外展示或者商场展示环境中,每个用户都可以放置自己的文件二维码,用户可以通过手机扫描了解活动与产品的相关信息,并可以简单分享到社交网络中。Scene 5: In the outdoor display or mall display environment, each user can place their own QR code, and the user can scan the mobile phone to learn about the activity and product information, and can simply share it into the social network.
以下对将所述文件分享方法应用于板书分发的过程进行详细阐述,以下是以在触摸屏上书写板书并进行分发为例进行说明。The process of applying the file sharing method to the blackboard distribution will be described in detail below. The following is an example of writing a book on a touch screen and distributing it.
当老师(或者称为用户)讲完一堂课后,在触摸屏上写了很多页的板书,并在触摸屏中保存了这些板书,老师想分发板书(相当于前述的待分享文件)时,可以直接点击分发按钮以触发屏上执行本发明方案的软件(以下称为分发软件)对老师书写的各板书文件(相当于前述的待分享文件)进行截图或者快照操作生成板书图片(相当于前述的文件图片),老师可以选择全部分发或只分发其中的某几页板书图片,然后分发软件将老师选择的板书图片通过网络上传至服务器,上传完成后由服务器会将上传的板书图片按顺序生成一个瀑布式网页页面,将瀑布式网页页面的网页链接返回到分发软件,此时网页链接会展示在触摸屏上或者触摸屏所连接的屏幕上,若该网页连接是二维码,听课的人就可以利用移动终端扫描二维码获取讲师的板书内容,同时也可将此二维码通过社交媒体分享到朋友圈或群组里,这样其它人也可以直接点击二维码连接就可以获取讲师的板书内容,从而实现了快速的板书分发效果。When the teacher (or user) finishes a lesson, he writes a lot of pages on the touch screen and saves the books on the touch screen. When the teacher wants to distribute the blackboard (equivalent to the aforementioned file to be shared), he can directly Clicking the distribution button to trigger the software on the screen to execute the solution of the present invention (hereinafter referred to as distribution software) to perform a screenshot or snapshot operation on each of the blackboard files written by the teacher (corresponding to the aforementioned file to be shared) to generate a blackboard image (corresponding to the aforementioned file) Picture), the teacher can choose to distribute or only distribute some of the pictures of the board, and then distribute the software to upload the picture of the board selected by the teacher to the server through the network. After the upload is completed, the server will generate a waterfall in order according to the uploaded picture. The webpage page returns the webpage link of the waterfall webpage page to the distribution software. At this time, the webpage link is displayed on the touch screen or the screen connected to the touchscreen. If the webpage connection is a two-dimensional code, the person who listens to the class can use the mobile The terminal scans the QR code to obtain the content of the lecturer's blackboard, and can also pass the QR code through the society. The media is shared into the circle of friends or groups, so that other people can also directly access the contents of the lecturer's board by directly clicking the QR code connection, thereby realizing the rapid distribution of the book.
根据上述本发明的文件分享方法,本发明还提供一种文件分享系统,以下就本发明的文件分享系统的实施例进行详细说明。According to the file sharing method of the present invention described above, the present invention further provides a file sharing system, which will be described in detail below with reference to an embodiment of the file sharing system of the present invention.
本发明的文件分享系统,可以只包括文件分享客户端、服务器中的一个,也可以同时包括文件分享客户端和服务器。为方便说明,图8中以结合文件分享客户端和服务器为例,示出了本发明的文件分享实施例的结构示意图,其中,可以包括第一解析单元8011、第二解析单元8024中的一个或者两个。The file sharing system of the present invention may include only one of a file sharing client and a server, and may also include a file sharing client and a server. For convenience of description, a schematic diagram of a file sharing embodiment of the present invention is shown in FIG. 8 in combination with a file sharing client and a server, and may include one of a first parsing unit 8011 and a second parsing unit 8024. Or two.
如图8所示,本实施例中的文件分享系统中的文件分享客户端801包括有:As shown in FIG. 8, the file sharing client 801 in the file sharing system in this embodiment includes:
第一解析单元8011,用于对待分享文件进行本地解析获得文件图片;The first parsing unit 8011 is configured to perform local parsing of the shared file to obtain a file image.
收发单元8012,用于向服务器发送所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,或者用于将所述待分享文件发送给所述服务器进行解析获得所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;The transceiver unit 8012 is configured to send the file picture to the server, and receive a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image, or send the to-be-shared file to The server performs parsing to obtain the file picture, and receives a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image;
本地分享单元8013,用于显示所述网页链接,或者分享所述网页链接。The local sharing unit 8013 is configured to display the webpage link or share the webpage link.
在其中一个实施例中,如图9所示,文件分享客户端801还可以包括第一判断单元8014,其中:In one embodiment, as shown in FIG. 9, the file sharing client 801 may further include a first determining unit 8014, where:
第一判断单元8014用于判断是否可以在本地解析所述待分享文件;
The first determining unit 8014 is configured to determine whether the file to be shared can be parsed locally;
第一解析单元8011用于在第一判断单元8014的判定结果为是时,对待分享文件进行本地解析获得文件图片;The first parsing unit 8011 is configured to perform local parsing of the file to be shared to obtain a file picture when the determination result of the first determining unit 8014 is YES;
收发单元8012用于在第一判断单元8014的判定结果为否时,将所述待分享文件发送给所述服务器进行解析获得所述文件图片。The transceiver unit 8012 is configured to send the file to be shared to the server for parsing to obtain the file picture when the determination result of the first determining unit 8014 is NO.
在其中一个实施例中,如图10所示,文件分享客户端801还可以包括第二判断单元8015,其中:In one embodiment, as shown in FIG. 10, the file sharing client 801 may further include a second determining unit 8015, where:
第二判断单元8015用于判断所述待分享文件的文件格式是否是图片格式;The second determining unit 8015 is configured to determine whether the file format of the file to be shared is a picture format;
第一解析单元8011用于在所述第二判断单元的判定结果为否时,对待分享文件进行本地解析获得文件图片;The first parsing unit 8011 is configured to perform local parsing of the file to be shared to obtain a file picture when the determination result of the second judging unit is no;
收发单元8012在所述第二判断单元的判定结果为是时,向所述服务器发送所述待分享文件。The transceiver unit 8012 sends the file to be shared to the server when the determination result of the second determining unit is YES.
在其中一个实施例中,如图11所示,文件分享客户端801还可以包括第一判断单元8014、第二判断单元8015,其中:In one embodiment, as shown in FIG. 11, the file sharing client 801 may further include a first determining unit 8014 and a second determining unit 8015, where:
第二判断单元8015用于判断所述待分享文件的文件格式是否是图片格式;The second determining unit 8015 is configured to determine whether the file format of the file to be shared is a picture format;
收发单元8012用于在第二判断单元8015的判定结果为是时,向所述服务器发送所述待分享文件;The transceiver unit 8012 is configured to send the to-be-shared file to the server when the determination result of the second determining unit 8015 is YES;
第一判断单元8014用于在第二判断单元8015的判定结果为否时,判断是否可以在本地解析所述待分享文件;The first determining unit 8014 is configured to determine, when the determination result of the second determining unit 8015 is negative, whether the file to be shared can be parsed locally;
第一解析单元8011用于在第一判断单元8014的判定结果为是时,对待分享文件进行本地解析获得文件图片;The first parsing unit 8011 is configured to perform local parsing of the file to be shared to obtain a file picture when the determination result of the first determining unit 8014 is YES;
收发单元8012用于在第一判断单元8014的判定结果为否时,向所述服务器发送所述待分享文件,在所述服务器解析所述待分享文件获得所述文件图片。The transceiver unit 8012 is configured to: when the determination result of the first determining unit 8014 is negative, send the file to be shared to the server, and parse the file to be shared by the server to obtain the file picture.
在其中一个实施例中,第一解析单元8011可以解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据所述文件图片获得所述文件图片。In one embodiment, the first parsing unit 8011 may parse the file to be shared to obtain the file page of the file to be shared, and take a screenshot or a snapshot of the file page to obtain a picture corresponding to the file page. Obtaining the file picture according to the file picture.
在其中一个实施例中,第一解析单元8011可以获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式,根据所述解析方式对待分享文件进行解析获得所述文件图片。In one embodiment, the first parsing unit 8011 may obtain the file type of the file to be shared, determine an parsing manner corresponding to the file type according to the preset association relationship, and parse the shared file according to the parsing manner. Obtain the picture of the file.
在其中一个实施例中,本地分享单元8013可以通过社交网络工具将所述网页链接发送给文件获取终端。In one of the embodiments, the local sharing unit 8013 may send the webpage link to the file acquisition terminal through a social network tool.
在其中一个实施例中,如图12所示,本发明的文件分享系统,还可以包括:In one embodiment, as shown in FIG. 12, the file sharing system of the present invention may further include:
其他分享单元803,用于在所述文件获取终端通过所述网页链接进入到所述网页页面时,若接收到网页链接获取指令,则在当前显示的所述网页页面之上显示所述网页链接,该其他分享单元803一般是位于所述文件获取终端上的。The other sharing unit 803 is configured to: when the file obtaining terminal enters the webpage through the webpage link, if the webpage link obtaining instruction is received, displaying the webpage link on the currently displayed webpage page The other sharing unit 803 is generally located on the file acquiring terminal.
在其中一个实施例中,如图13所示,文件分享客户端801还可以包括保存单元8016,该保存单元8016用于将所述网页链接保存在本地。In one embodiment, as shown in FIG. 13, the file sharing client 801 may further include a saving unit 8016 for saving the webpage link locally.
在其中一个实施例中,如图14所示,文件分享客户端801还可以包括指令获取单元8017;In one embodiment, as shown in FIG. 14, the file sharing client 801 may further include an instruction obtaining unit 8017;
指令获取单元8017用于获取对所述网页页面的操作指令;The instruction obtaining unit 8017 is configured to acquire an operation instruction for the webpage page;
收发单元8012还可以用于将所述操作指令发送给所述服务器对所述网页页面进行与
该操作指令对应的操作。The transceiver unit 8012 is further configured to send the operation instruction to the server to perform the
The operation corresponding to the operation instruction.
在其中一个实施例中,所述网页链接为二维码或者URL。In one of the embodiments, the web page link is a two-dimensional code or a URL.
如图8所示,本实施例中的文件分享系统中的服务器802包括有:As shown in FIG. 8, the server 802 in the file sharing system in this embodiment includes:
接收单元8021,用于接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件;The receiving unit 8021 is configured to receive a file image obtained by the file sharing client to be locally parsed by the file to be shared, or receive the to-be-shared file sent by the sharing client;
生成单元8022,用于根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;a generating unit 8022, configured to generate a webpage page and a webpage link corresponding to the webpage page according to the file image;
发送单元8023,用于将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享;The sending unit 8023 is configured to return the webpage link to the file sharing client to display or share the webpage link;
第二解析单元8024,用于在接收单元8021接收到的是所述待分享文件时,对所述待分享文件进行解析获得所述文件图片。The second parsing unit 8024 is configured to parse the to-be-shared file to obtain the file picture when the receiving unit 8021 receives the file to be shared.
在其中一个实施例中,如图15所示,服务器802还可以包括第三判断单元8025,其中:In one embodiment, as shown in FIG. 15, the server 802 may further include a third determining unit 8025, where:
第三判断单元8025用于判断所述待分享文件的文件格式是否是图片格式;The third determining unit 8025 is configured to determine whether the file format of the file to be shared is a picture format.
第二解析单元8024还可以用于在第三判断单元8025的判定结果为否时,解析所述待分享文件获得所述文件图片;The second parsing unit 8024 is further configured to: when the determination result of the third determining unit 8025 is negative, parse the to-be-shared file to obtain the file picture;
生成单元8022用于在第三判断单元8025的判定结果为是时,根据所述待分享文件生成网页页面以及与该网页页面对应的网页链接。The generating unit 8022 is configured to generate a webpage page and a webpage link corresponding to the webpage page according to the to-be-shared file when the determination result of the third judging unit 8025 is YES.
在其中一个实施例中,第二解析单元8024可以解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据所述文件图片获得所述文件图片。In one embodiment, the second parsing unit 8024 may parse the file to be shared to obtain the file page of the file to be shared, and take a screenshot or a snapshot of the file page to obtain a picture corresponding to the file page. Obtaining the file picture according to the file picture.
在其中一个实施例中,第二解析单元8024可以获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式,根据所述解析方式对待分享文件进行解析获得所述文件图片。In one embodiment, the second parsing unit 8024 may obtain the file type of the file to be shared, determine an parsing manner corresponding to the file type according to the preset association relationship, and parse the shared file according to the parsing manner. Obtain the picture of the file.
在其中一个实施例中,生成单元8022可以将所述文件图片添加到网页容器中,由所述网页容器对所述文件图片进行瀑布式显示,得到所述网页页面。In one embodiment, the generating unit 8022 may add the file image to a webpage container, and the webpage container displays the file image in a waterfall manner to obtain the webpage page.
在其中一个实施例中,如图16所示,服务器802还可以包括操作单元8026,其中:In one of the embodiments, as shown in FIG. 16, the server 802 can also include an operating unit 8026, wherein:
接收单元8021还用于接收文件分享客户端对所述网页页面的操作指令;The receiving unit 8021 is further configured to receive an operation instruction of the file sharing client on the webpage page;
操作单元8026用于对所述网页页面进行与所述操作指令对应的操作。The operation unit 8026 is configured to perform an operation corresponding to the operation instruction on the webpage page.
在其中一个实施例中,上述网页链接可以为二维码或者URL。In one embodiment, the webpage link may be a two-dimensional code or a URL.
本发明的文件分享系统与本发明的文件分享方法一一对应,在上述文件分享方法的实施例阐述的技术特征及其有益效果均适用于文件分享系统的实施例中,特此声明。The file sharing system of the present invention corresponds to the file sharing method of the present invention. The technical features and the beneficial effects described in the embodiments of the file sharing method are applicable to the embodiment of the file sharing system, and are hereby declared.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。
The above-mentioned embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.
Claims (32)
- 一种文件分享方法,其特征在于,包括如下步骤:A file sharing method, comprising the steps of:对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片,或者将所述待分享文件发送给所述服务器进行解析获得所述文件图片;Performing local parsing of the shared file to obtain a file image, sending the file image to the server, or sending the to-be-shared file to the server for parsing to obtain the file image;接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;Receiving, by the server, a webpage link corresponding to the webpage page returned after the webpage is generated according to the file image;显示所述网页链接,或者分享所述网页链接。Display the webpage link or share the webpage link.
- 根据权利要求1所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 1, further comprising the steps of:判断是否可以在本地解析所述待分享文件;Determining whether the file to be shared can be parsed locally;若是,进入所述对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片的步骤;If yes, the step of entering the file to be shared for local parsing to obtain a file picture, and sending the file picture to the server;若否,则进入所述将所述待分享文件发送给所述服务器进行解析获得所述文件图片的步骤。If not, the step of sending the file to be shared to the server for parsing to obtain the file picture is entered.
- 根据权利要求1所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 1, further comprising the steps of:判断所述待分享文件的文件格式是否是图片格式;Determining whether the file format of the file to be shared is a picture format;若否,进入所述对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片的步骤;If not, the step of entering the file to be shared for local parsing to obtain a file picture, and sending the file picture to the server;若是,则向所述服务器发送所述待分享文件。If yes, the file to be shared is sent to the server.
- 根据权利要求1所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 1, further comprising the steps of:判断所述待分享文件的文件格式是否是图片格式;Determining whether the file format of the file to be shared is a picture format;若是图片格式,则向所述服务器发送所述待分享文件;If the image format is, send the file to be shared to the server;若不是图片格式,则判断是否可以在本地解析所述待分享文件;If it is not the image format, it is determined whether the file to be shared can be parsed locally;若可以,则进入所述对待分享文件进行本地解析获得文件图片,向服务器发送所述文件图片的步骤;If yes, the step of entering the file to be shared for local parsing to obtain a file picture, and sending the file picture to the server;若不可以,则向所述服务器发送所述待分享文件,在所述服务器解析所述待分享文件获得所述文件图片。If not, the file to be shared is sent to the server, and the file is parsed by the server to obtain the file picture.
- 根据权利要求1所述的文件分享方法,其特征在于,所述对待分享文件进行本地解析获得文件图片的步骤包括如下步骤:The file sharing method according to claim 1, wherein the step of locally parsing the file to be shared to obtain a file picture comprises the following steps:解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据所述图片获得所述文件图片。Parsing the file to be shared to obtain the file page of the file to be shared, taking a screenshot or a snapshot of the file page, obtaining a picture corresponding to the file page, and obtaining the file picture according to the picture.
- 根据权利要求1所述的文件分享方法,其特征在于,所述对待分享文件进行本地解析获得文件图片的步骤包括如下步骤:The file sharing method according to claim 1, wherein the step of locally parsing the file to be shared to obtain a file picture comprises the following steps:获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式;Obtaining a file type of the file to be shared, and determining an analysis manner corresponding to the file type according to a preset association relationship;根据所述解析方式对待分享文件进行解析获得所述文件图片。The file to be shared is parsed according to the parsing manner to obtain the file picture.
- 根据权利要求1所述的文件分享方法,其特征在于,所述分享所述网页链接的步骤包括步骤:The file sharing method according to claim 1, wherein the step of sharing the webpage link comprises the steps of:通过社交网络工具将所述网页链接发送给文件获取终端。 The webpage link is sent to the file acquisition terminal through a social networking tool.
- 根据权利要求7所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 7, further comprising the steps of:所述文件获取终端在通过所述网页链接进入到所述网页页面时,若接收到网页链接获取指令,则在当前显示的所述网页页面之上显示所述网页链接。When the file obtaining terminal enters the webpage page through the webpage link, if the webpage link obtaining instruction is received, the webpage link is displayed on the currently displayed webpage page.
- 根据权利要求1所述的文件分享方法,其特征在于,还包括步骤:将所述网页链接保存在本地。The file sharing method according to claim 1, further comprising the step of: saving the webpage link locally.
- 根据权利要求1所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 1, further comprising the steps of:获取对所述网页页面的操作指令,将所述操作指令发送给所述服务器对所述网页页面进行与该操作指令对应的操作。Obtaining an operation instruction for the webpage page, and sending the operation instruction to the server to perform an operation corresponding to the operation instruction on the webpage page.
- 根据权利要求1-10任意一项所述的文件分享方法,其特征在于,所述网页链接为二维码或者URL。The file sharing method according to any one of claims 1 to 10, wherein the webpage link is a two-dimensional code or a URL.
- 一种文件分享方法,其特征在于,包括如下步骤:A file sharing method, comprising the steps of:接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件,并对所述待分享文件进行解析获得所述文件图片;Receiving, by the file sharing client, a file image obtained by locally parsing the file to be shared, or receiving the file to be shared sent by the sharing client, and parsing the file to be shared to obtain the file image;根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;Generating a webpage page and a webpage link corresponding to the webpage page according to the file image;将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享。Returning the webpage link to the file sharing client for displaying or sharing the webpage link.
- 根据权利要求12所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 12, further comprising the steps of:判断所述待分享文件的文件格式是否是图片格式;Determining whether the file format of the file to be shared is a picture format;若否,则解析所述待分享文件获得所述文件图片;If not, parsing the to-be-shared file to obtain the file picture;若是,则根据所述待分享文件生成网页页面以及与该网页页面对应的网页链接。If yes, generate a webpage page and a webpage link corresponding to the webpage page according to the to-be-shared file.
- 根据权利要求12或者13所述的文件分享方法,其特征在于,所述对所述待分享文件进行解析获得所述文件图片的步骤包括如下步骤:The file sharing method according to claim 12 or 13, wherein the step of parsing the file to be shared to obtain the file picture comprises the following steps:解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据所述文件图片获得所述文件图片。Parsing the file to be shared to obtain the file page of the file to be shared, taking a screenshot or a snapshot of the file page, obtaining a picture corresponding to the file page, and obtaining the file picture according to the file picture.
- 根据权利要求12或者13所述的文件分享方法,其特征在于,所述对所述待分享文件进行解析获得所述文件图片的步骤包括如下步骤:The file sharing method according to claim 12 or 13, wherein the step of parsing the file to be shared to obtain the file picture comprises the following steps:获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式;Obtaining a file type of the file to be shared, and determining an analysis manner corresponding to the file type according to a preset association relationship;根据所述解析方式对待分享文件进行解析获得所述文件图片。The file to be shared is parsed according to the parsing manner to obtain the file picture.
- 根据权利要求12所述的文件分享方法,其特征在于,所述根据所述文件图片生成网页页面包括如下步骤:The file sharing method according to claim 12, wherein the generating the webpage according to the file image comprises the following steps:将所述文件图片添加到网页容器中,由所述网页容器对所述文件图片进行瀑布式显示,得到所述网页页面。Adding the file image to a webpage container, and displaying, by the webpage container, the waterfall image by the waterfall to obtain the webpage page.
- 根据权利要求12所述的文件分享方法,其特征在于,还包括步骤:The file sharing method according to claim 12, further comprising the steps of:接收文件分享客户端对所述网页页面的操作指令,对所述网页页面进行与所述操作指令对应的操作。Receiving an operation instruction of the file sharing client on the webpage page, and performing an operation corresponding to the operation instruction on the webpage page.
- 根据权利要求12所述的文件分享方法,其特征在于,将所述文件分享方法应用于板书分发,在进行板书分发时,所述待分享文件为待分享板书文件。The file sharing method according to claim 12, wherein the file sharing method is applied to a board-book distribution, and the file to be shared is a to-be-shared board file when the board-book distribution is performed.
- 一种文件分享系统,其特征在于,包括文件分享客户端,所述文件分享客户端包括:A file sharing system, comprising: a file sharing client, wherein the file sharing client comprises:第一解析单元,用于对待分享文件进行本地解析获得文件图片; a first parsing unit, configured to perform local parsing of the shared file to obtain a file image;收发单元,用于向服务器发送所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接,或者用于将所述待分享文件发送给所述服务器进行解析获得所述文件图片,并接收所述服务器根据所述文件图片生成网页页面后返回的与该网页页面对应的网页链接;a transceiver unit, configured to send the file picture to the server, and receive a webpage link corresponding to the webpage page returned by the server according to the file image, or send the file to be shared to the The server performs parsing to obtain the file picture, and receives a webpage link corresponding to the webpage page returned by the server after generating the webpage page according to the file image;本地分享单元,用于显示所述网页链接,或者分享所述网页链接。a local sharing unit, configured to display the webpage link, or share the webpage link.
- 根据权利要求19所述的文件分享系统,其特征在于,所述文件分享客户端还包括第一判断单元,其中:The file sharing system according to claim 19, wherein the file sharing client further comprises a first determining unit, wherein:所述第一判断单元用于判断是否可以在本地解析所述待分享文件;The first determining unit is configured to determine whether the file to be shared can be parsed locally;所述第一解析单元用于在所述第一判断单元的判定结果为是时,对待分享文件进行本地解析获得文件图片;The first parsing unit is configured to: when the determination result of the first judging unit is yes, perform local parsing of the file to be shared to obtain a file image;所述收发单元用于在所述第一判断单元的判定结果为否时,将所述待分享文件发送给所述服务器进行解析获得所述文件图片。The transceiver unit is configured to send the file to be shared to the server for parsing to obtain the file picture when the determination result of the first determining unit is negative.
- 根据权利要求19所述的文件分享系统,其特征在于,所述文件分享客户端还包括第二判断单元,其中:The file sharing system according to claim 19, wherein the file sharing client further comprises a second determining unit, wherein:所述第二判断单元用于判断所述待分享文件的文件格式是否是图片格式;The second determining unit is configured to determine whether a file format of the file to be shared is a picture format;所述第一解析单元用于在所述第二判断单元的判定结果为否时,对待分享文件进行本地解析获得文件图片;The first parsing unit is configured to perform local parsing of the file to be shared to obtain a file picture when the determining result of the second judging unit is no;所述收发单元用于在所述第二判断单元的判定结果为是时,向所述服务器发送所述待分享文件。The transceiver unit is configured to send the to-be-shared file to the server when the determination result of the second determining unit is YES.
- 根据权利要求19所述的文件分享系统,其特征在于,所述文件分享客户端还包括第一判断单元和第二判断单元,其中:The file sharing system according to claim 19, wherein the file sharing client further comprises a first determining unit and a second determining unit, wherein:所述第二判断单元用于判断所述待分享文件的文件格式是否是图片格式;The second determining unit is configured to determine whether a file format of the file to be shared is a picture format;所述收发单元用于在所述第二判断单元的判定结果为是时,向所述服务器发送所述待分享文件;The transceiver unit is configured to send the to-be-shared file to the server when the determination result of the second determining unit is yes;所述第一判断单元用于在所述第二判断单元的判定结果为否时,判断是否可以在本地解析所述待分享文件;The first determining unit is configured to determine, when the determination result of the second determining unit is negative, whether the file to be shared can be parsed locally;所述第一解析单元用于在所述第一判断单元的判定结果为是时,对待分享文件进行本地解析获得文件图片;The first parsing unit is configured to: when the determination result of the first judging unit is yes, perform local parsing of the file to be shared to obtain a file image;所述收发单元用于在所述第一判断单元的判定结果为否时,向所述服务器发送所述待分享文件,在所述服务器解析所述待分享文件获得所述文件图片。The transceiver unit is configured to: when the determination result of the first determining unit is negative, send the file to be shared to the server, and parse the file to be shared by the server to obtain the file picture.
- 根据权利要求19所述的文件分享系统,其特征在于:A file sharing system according to claim 19, wherein:所述第一解析单元解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据所述文件图片获得所述文件图片。The first parsing unit parses the file to be shared to obtain a file page of the file to be shared, and performs a screenshot or a snapshot on the file page to obtain a picture corresponding to the file page, and obtains a picture according to the file picture. File picture.
- 根据权利要求19所述的文件分享系统,其特征在于:A file sharing system according to claim 19, wherein:所述第一解析单元获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式,根据所述解析方式对待分享文件进行解析获得所述文件图片。The first parsing unit acquires the file type of the file to be shared, determines an parsing manner corresponding to the file type according to the preset association relationship, and parses the shared file according to the parsing manner to obtain the file image.
- 根据权利要求19所述的文件分享系统,其特征在于,还包括:The file sharing system of claim 19, further comprising:其他分享单元,用于在文件获取终端通过所述网页链接进入到所述网页页面时,若接收到网页链接获取指令,则在当前显示的所述网页页面之上显示所述网页链接。 The other sharing unit is configured to: when the file obtaining terminal accesses the webpage through the webpage link, if the webpage link obtaining instruction is received, displaying the webpage link on the currently displayed webpage page.
- 根据权利要求19所述的文件分享系统,其特征在于,所述文件分享客户端还包括指令获取单元;The file sharing system according to claim 19, wherein the file sharing client further comprises an instruction acquiring unit;所述指令获取单元用于获取对所述网页页面的操作指令;The instruction obtaining unit is configured to acquire an operation instruction for the webpage page;所述收发单元还用于将所述操作指令发送给所述服务器对所述网页页面进行与该操作指令对应的操作。The transceiver unit is further configured to send the operation instruction to the server to perform an operation corresponding to the operation instruction on the webpage page.
- 一种文件分享系统,其特征在于,包括服务器,所述服务器包括:A file sharing system, comprising: a server, the server comprising:接收单元,用于接收文件分享客户端发送的对待分享文件进行本地解析获得的文件图片,或者接收所述分享客户端发送的所述待分享文件;a receiving unit, configured to receive a file image obtained by the file sharing client to be locally parsed by the shared file, or receive the to-be-shared file sent by the sharing client;生成单元,用于根据所述文件图片生成网页页面以及与该网页页面对应的网页链接;a generating unit, configured to generate a webpage page according to the file image and a webpage link corresponding to the webpage page;发送单元,用于将所述网页链接返回给所述文件分享客户端进行对所述网页链接的显示或者分享;a sending unit, configured to return the webpage link to the file sharing client to display or share the webpage link;第二解析单元,用于在所述接收单元接收到的是所述待分享文件时,对所述待分享文件进行解析获得所述文件图片。And a second parsing unit, configured to parse the to-be-shared file to obtain the file picture when the receiving unit receives the file to be shared.
- 根据权利要求27所述的文件分享系统,其特征在于,所述服务器还包括第三判断单元,其中:The file sharing system according to claim 27, wherein said server further comprises a third determining unit, wherein:所述第三判断单元用于判断所述待分享文件的文件格式是否是图片格式;The third determining unit is configured to determine whether a file format of the file to be shared is a picture format;所述第二解析单元用于在所述第三判断单元的判定结果为否时,解析所述待分享文件获得所述文件图片;The second parsing unit is configured to parse the to-be-shared file to obtain the file picture when the determining result of the third determining unit is negative;所述生成单元用于在所述第三判断单元的判定结果为是时,根据所述待分享文件生成网页页面以及与该网页页面对应的网页链接。The generating unit is configured to generate a webpage page and a webpage link corresponding to the webpage page according to the to-be-shared file when the determination result of the third judging unit is YES.
- 根据权利要求27或者28所述的文件分享系统,其特征在于:A file sharing system according to claim 27 or 28, wherein:所述第二解析单元解析所述待分享文件获得该所述待分享文件的文件页面,对所述文件页面进行截图或者快照,得到与所述文件页面对应的图片,根据所述文件图片获得所述文件图片。The second parsing unit parses the file to be shared to obtain a file page of the file to be shared, and performs a screenshot or a snapshot on the file page to obtain a picture corresponding to the file page, and obtains a picture according to the file picture. File picture.
- 根据权利要求27或者28所述的文件分享系统,其特征在于:A file sharing system according to claim 27 or 28, wherein:所述第二解析单元获取所述待分享文件的文件类型,根据预设的关联关系确定与所述文件类型对应的解析方式,根据所述解析方式对待分享文件进行解析获得所述文件图片。The second parsing unit acquires the file type of the file to be shared, determines an analysis manner corresponding to the file type according to the preset association relationship, and parses the shared file according to the parsing manner to obtain the file image.
- 根据权利要求27所述的文件分享系统,其特征在于:A file sharing system according to claim 27, wherein:所述生成单元将所述文件图片添加到网页容器中,由所述网页容器对所述文件图片进行瀑布式显示,得到所述网页页面。The generating unit adds the file image to a webpage container, and the webpage container displays the file image in a waterfall manner to obtain the webpage page.
- 根据权利要求27所述的文件分享系统,其特征在于,所述服务器还包括操作单元;The file sharing system according to claim 27, wherein said server further comprises an operation unit;所述接收单元还用于接收文件分享客户端对所述网页页面的操作指令;The receiving unit is further configured to receive an operation instruction of the file sharing client on the webpage page;所述操作单元用于对所述网页页面进行与所述操作指令对应的操作。 The operating unit is configured to perform an operation corresponding to the operation instruction on the webpage page.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510346610.1 | 2015-06-19 | ||
CN201510346610.1A CN104991911A (en) | 2015-06-19 | 2015-06-19 | File sharing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016202236A1 true WO2016202236A1 (en) | 2016-12-22 |
Family
ID=54303727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/085691 WO2016202236A1 (en) | 2015-06-19 | 2016-06-14 | File sharing method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104991911A (en) |
WO (1) | WO2016202236A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020294A (en) * | 2017-10-20 | 2019-07-16 | 腾讯科技(武汉)有限公司 | Sheet disposal method, apparatus, system, storage medium and computer equipment |
CN115017531A (en) * | 2022-08-09 | 2022-09-06 | 威海海洋职业学院 | Financial data sharing method and system |
CN116401489A (en) * | 2023-06-06 | 2023-07-07 | 深圳高益科技有限公司 | Web page screen sharing and bidirectional control method and system |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991911A (en) * | 2015-06-19 | 2015-10-21 | 广州视睿电子科技有限公司 | File sharing method and system |
CN105407153B (en) * | 2015-11-03 | 2019-07-16 | 广州视睿电子科技有限公司 | Document uploading method, system and client |
CN105450633B (en) * | 2015-11-03 | 2019-03-29 | 广州视睿电子科技有限公司 | Document uploading method and system and analysis server |
CN105635318B (en) * | 2016-03-02 | 2021-02-09 | 腾讯科技(深圳)有限公司 | Image acquisition method and system |
CN107231389B (en) * | 2016-03-23 | 2020-04-10 | 阿里巴巴集团控股有限公司 | Code scanning operation method and equipment |
CN107783996A (en) * | 2016-08-26 | 2018-03-09 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for sharing files |
CN108737482B (en) * | 2017-04-24 | 2020-11-27 | 腾讯科技(深圳)有限公司 | Document sharing method, device and system |
CN107454147B (en) * | 2017-07-06 | 2021-04-23 | 北京龙之心科技有限公司 | Information processing method and device |
CN107870997B (en) * | 2017-11-03 | 2021-03-23 | 广州视源电子科技股份有限公司 | Conference blackboard-writing file management method and device, display device and storage medium |
CN108173745A (en) * | 2017-12-26 | 2018-06-15 | 福建中金在线信息科技有限公司 | A kind of retransmission method and device based on instant messaging |
CN108388997A (en) * | 2018-03-09 | 2018-08-10 | 四川安信科创科技有限公司 | Task record selective examination system and method based on Quick Response Code |
CN110928977A (en) * | 2018-09-19 | 2020-03-27 | 上海擎感智能科技有限公司 | Voice information sharing method and system, readable storage medium and server |
CN112052377B (en) * | 2019-06-06 | 2023-09-15 | 百度在线网络技术(北京)有限公司 | Resource recommendation method, device, server and storage medium |
WO2021031623A1 (en) * | 2019-08-18 | 2021-02-25 | 海信视像科技股份有限公司 | Display apparatus, file sharing method, and server |
CN111291005B (en) * | 2020-01-19 | 2023-05-02 | Oppo(重庆)智能科技有限公司 | File viewing method, device, terminal equipment, system and storage medium |
CN115102949A (en) * | 2022-06-27 | 2022-09-23 | 长沙朗源电子科技有限公司 | File sharing method, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625701A (en) * | 2009-08-12 | 2010-01-13 | 中兴通讯股份有限公司 | Video sharing method and video sharing system |
CN102760170A (en) * | 2012-06-17 | 2012-10-31 | 上海琥智数码科技有限公司 | Electronic book note-taking method based on screenshot |
CN103092941A (en) * | 2013-01-10 | 2013-05-08 | 北京奇虎科技有限公司 | Method and device showing content on electronic equipment |
WO2014019478A1 (en) * | 2012-07-30 | 2014-02-06 | Tencent Technology (Shenzhen) Company Limited | Method and mobile terminal device for image operation |
CN104991911A (en) * | 2015-06-19 | 2015-10-21 | 广州视睿电子科技有限公司 | File sharing method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104216915A (en) * | 2013-06-04 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Webpage processing method, device and terminal equipment |
-
2015
- 2015-06-19 CN CN201510346610.1A patent/CN104991911A/en active Pending
-
2016
- 2016-06-14 WO PCT/CN2016/085691 patent/WO2016202236A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625701A (en) * | 2009-08-12 | 2010-01-13 | 中兴通讯股份有限公司 | Video sharing method and video sharing system |
CN102760170A (en) * | 2012-06-17 | 2012-10-31 | 上海琥智数码科技有限公司 | Electronic book note-taking method based on screenshot |
WO2014019478A1 (en) * | 2012-07-30 | 2014-02-06 | Tencent Technology (Shenzhen) Company Limited | Method and mobile terminal device for image operation |
CN103092941A (en) * | 2013-01-10 | 2013-05-08 | 北京奇虎科技有限公司 | Method and device showing content on electronic equipment |
CN104991911A (en) * | 2015-06-19 | 2015-10-21 | 广州视睿电子科技有限公司 | File sharing method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020294A (en) * | 2017-10-20 | 2019-07-16 | 腾讯科技(武汉)有限公司 | Sheet disposal method, apparatus, system, storage medium and computer equipment |
CN115017531A (en) * | 2022-08-09 | 2022-09-06 | 威海海洋职业学院 | Financial data sharing method and system |
CN115017531B (en) * | 2022-08-09 | 2022-11-01 | 威海海洋职业学院 | Financial data sharing method and system |
CN116401489A (en) * | 2023-06-06 | 2023-07-07 | 深圳高益科技有限公司 | Web page screen sharing and bidirectional control method and system |
CN116401489B (en) * | 2023-06-06 | 2023-08-01 | 深圳高益科技有限公司 | Web page screen sharing and bidirectional control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104991911A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016202236A1 (en) | File sharing method and system | |
US9215272B2 (en) | Method for securely distributing meeting data from interactive whiteboard projector | |
US20190361969A1 (en) | Method and system for annotation and connection of electronic documents | |
US8799765B1 (en) | Systems for sharing annotations and location references for same for displaying the annotations in context with an electronic document | |
WO2017041587A1 (en) | File display method and system | |
US10277546B2 (en) | Information processing system, information processing apparatus, and storage medium | |
JP2014075116A (en) | Information processor, program and conference system | |
CN104750372B (en) | A kind of file sharing method and device | |
CN103902662A (en) | Test question generating method based on browser | |
US9092533B1 (en) | Live, real time bookmarking and sharing of presentation slides | |
JP2022509501A (en) | Methods, equipment, and computer program products for group-based communication interfaces with email channeling | |
CN109145242B (en) | Office document online sharing method, system and computer readable storage medium | |
US10979598B2 (en) | Conference management apparatus, document registration method, program, and conference system | |
CN104469078A (en) | Interactive projection control method and system | |
JP2013210912A (en) | Data processing device, data processing system and program | |
US20170031947A1 (en) | Systems and methods for information presentation and collaboration | |
CN108353075B (en) | Multi-network mirroring system and method | |
JP2009187094A (en) | Conference system and program | |
US20160277476A1 (en) | Distributing content using a smartphone | |
US20190058756A1 (en) | Method, Terminal, and System for Sending Office Document | |
CN106294441A (en) | A kind of document conversion method and device | |
KR20140101190A (en) | System and method of replaying presentation using touch event information | |
US20150067056A1 (en) | Information processing system, information processing apparatus, and information processing method | |
CN104519224A (en) | Image forming apparatus | |
JP6150381B2 (en) | Cloud system, cloud server, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16810977 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16810977 Country of ref document: EP Kind code of ref document: A1 |