WO2015027430A1 - 服务器和文件分享方法 - Google Patents

服务器和文件分享方法 Download PDF

Info

Publication number
WO2015027430A1
WO2015027430A1 PCT/CN2013/082558 CN2013082558W WO2015027430A1 WO 2015027430 A1 WO2015027430 A1 WO 2015027430A1 CN 2013082558 W CN2013082558 W CN 2013082558W WO 2015027430 A1 WO2015027430 A1 WO 2015027430A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
terminal
application
shared
format
Prior art date
Application number
PCT/CN2013/082558
Other languages
English (en)
French (fr)
Inventor
赵浩
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Priority to PCT/CN2013/082558 priority Critical patent/WO2015027430A1/zh
Priority to CN201380069030.1A priority patent/CN104885432A/zh
Publication of WO2015027430A1 publication Critical patent/WO2015027430A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Definitions

  • the present invention relates to the field of data processing technologies, and in particular, to a server and a file sharing method. Background technique
  • data transmission and sharing between multiple terminals can be realized by a server or a cloud server, for example, one party transmits data to a server or a cloud server, and the server or the cloud server forwards the data to another party.
  • the server or cloud server can also implement other functions such as data storage and backup recovery.
  • data shared by one party to another such as documents, pictures, videos, etc.
  • the data obtained by the user is actually shared by the other party, and the ability of the shared party to process the shared data is not available, for example, To install the corresponding application, you need to download the corresponding application or convert the format of the file. The cumbersome operation seriously affects the user experience. Summary of the invention
  • the present invention is based on at least one of the above technical problems, and proposes a new file sharing scheme, which can format and convert data such as shared files, so that the recipient of the file does not install the application for processing the shared file. It is also possible to know the contents of the shared file by viewing the converted file.
  • the present invention provides a server, including: a file obtaining unit, configured to acquire a file that the first terminal needs to share to the second terminal; a determining unit, configured to determine whether the format of the file needs to be converted; a unit, configured to perform format conversion on the file to obtain a converted file when the format of the file needs to be converted, and a file transmission unit, configured to transmit the converted file to the second terminal .
  • the file is shared by the first terminal to the file of the second terminal.
  • the file shared by the first terminal to the second terminal is referred to as a shared file in the present application, so that the second terminal is used.
  • the application that processes the shared file is not installed, the corresponding processing operation can also be implemented through the converted file, such as viewing or editing the content in the shared file.
  • the method further includes: an information acquiring unit, configured to acquire information about an installed application in the second terminal; wherein the determining unit is configured to determine, according to the information of the application, Whether the second terminal can process the file shared by the first terminal, if not, determining that the format of the file needs to be converted, and converting, by the format conversion unit, the format of the file into a common file format, Otherwise, it is determined that the format of the file does not need to be converted, and the file is directly transmitted by the file transfer unit to the second terminal.
  • an information acquiring unit configured to acquire information about an installed application in the second terminal
  • the determining unit is configured to determine, according to the information of the application, Whether the second terminal can process the file shared by the first terminal, if not, determining that the format of the file needs to be converted, and converting, by the format conversion unit, the format of the file into a common file format, Otherwise, it is determined that the format of the file does not need to be converted, and the file is directly transmitted by the file transfer unit to the
  • the method for judging whether the installed application in the second terminal can process the shared file is judged
  • the shared file can be directly downloaded and processed, and the shared file can be converted without blindly, which is beneficial to reducing the computing load of the server and shortening the waiting time of the user.
  • the second terminal can directly process the shared file without installing special tools or software, thereby avoiding the time and the user downloading the application for processing the shared file. Waste of traffic.
  • the second terminal processes the original file, errors that may occur during the conversion process of the shared file are avoided, and the accuracy of the data in the shared file is improved.
  • the information acquiring unit requests the second terminal to acquire according to a preset period or when it is known that the first terminal needs to share the file with the second terminal.
  • the information of the installed application wherein, if the request fails, the determining unit uses the historical application information of the second terminal stored by the server to determine; if the request is successful, the server will The historical application information is replaced with the information of the newly acquired installed application.
  • acquiring the installed application in the second terminal according to a preset period helps to periodically update the historical application information, and ensures the accuracy of the judgment on whether the format conversion is needed;
  • the information of the installed application is actively requested on a regular basis, so that even if the information acquisition of the second terminal is sometimes impossible, the stored history application information can be used to perform the judgment operation.
  • the capability of the second terminal to process the shared file can be more accurately determined to determine whether the sharing is needed.
  • the file is converted to avoid the application update in the second terminal, resulting in inaccurate judgment results.
  • the information of the application can be saved to the corresponding database.
  • the historical data information stored in the database can be used to ensure the flexibility of the system.
  • the format conversion unit is further configured to: convert, according to the information of the application, the file shared by the first terminal into a file format supported by the specified application in the second terminal .
  • the shared file when the shared file can be converted into a plurality of formats that can be supported by the second terminal, the shared file can be converted into a more-translated file by converting the shared file into a file format supported by the specified application in the second terminal.
  • the format of the processing of the second terminal is facilitated, thereby ensuring optimal processing of the file.
  • the file transmission unit directly uses an application for processing the file if the determining unit determines that the second terminal cannot process the file shared by the first terminal. Transmitting to the second terminal; or the server further includes: a prompting unit, configured to prompt the second if the determining unit determines that the second terminal cannot process the file shared by the first terminal.
  • the terminal downloads an application for processing the file.
  • the second terminal when it is determined that the second terminal cannot process the shared file, the second terminal is prompted to download the corresponding application, which saves the user's search time for the application, and the user can select to download or not to download, which is beneficial to the user. Increase user operability.
  • a network such as a wireless local area network
  • the server can directly transfer the converted file in the universal format to the second terminal, so that it does not need to wait, immediately Corresponding processing operations; the shared file can also be directly transmitted to the second terminal, thereby reducing data errors or deviations that may result from file format conversion.
  • the information of the application includes at least one of the following or a combination thereof: a name of the application, a version of the application, and/or version information, a type of the file format supported by the application, and an application The permission information of the program.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be understood according to the application name, which ensures the accuracy of calling the application and obtaining the application information.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be understood according to the application name, which ensures the accuracy of calling the application and obtaining the application information.
  • there may be different versions of the same application and different versions may exist in the same version, resulting in the same name, but may still cause the shared file to be processed correctly.
  • high version/version applications can open files created by the corresponding lower version/version application, but lower version/version applications cannot open files created by high version/version applications.
  • An application may support multiple file formats, so obtaining the file format type supported by the application can more fully determine whether the second terminal can process the shared file. Some applications can be used to process shared files. However, based on security and other factors, the application may not have the right to process shared files, so the application's permission information can also be processed. The restriction is made. By obtaining the permission information, it can be ensured that the application directly converts the shared file when the application does not have permission to process the shared file, thereby avoiding the application having no permission to process the shared file and blindly downloading the shared file, thereby improving the second The comprehensiveness and accuracy of terminal processing capability judgment.
  • the method further includes: a detecting unit, configured to detect whether the file shared by the first terminal and/or the sub file of the file is a compressed package; wherein the format converting unit is further configured to The format of each file in the compressed package is converted.
  • the compressed package may be decompressed, and each of the sub-files is converted, so that the second terminal cannot open the compressed package after receiving the compressed package and decompressing the compressed file.
  • One or more subfiles ensure that each subfile in the shared file can be processed by the second terminal.
  • the subfile of the shared file may also be a compressed package, so that the subfiles can be further decompressed and formatted.
  • the file in the compressed package may still be compressed. The package can decompress and format all the compressed packages to ensure that the second terminal can process all of these files efficiently.
  • the method further includes: a file packaging unit, configured to repackage all the converted files according to a content structure of the file shared by the first terminal; wherein, the file transmission unit is further used to: Transmitting the compressed package generated by the file packing unit to the second terminal as a converted file.
  • the file transmission unit is further configured to: transmit, by the format conversion unit, the file that the first terminal needs to share to the second terminal.
  • the second terminal can be made by transmitting the shared file before the conversion to the second terminal.
  • the original shared file is saved after being saved to another terminal or after the second terminal has installed an application for processing the shared file. Since the format conversion process may cause data loss, damage, etc., the download of the original shared file helps the second terminal to better process.
  • the method further includes: an instruction receiving unit, configured to receive a file obtaining instruction sent by the second terminal, where the second terminal displays the corresponding information displayed on the screen interface of the second terminal If the identifier of the file shared by the first terminal is a preset operation, the file obtaining instruction is issued; wherein the format converting unit is further configured to: when the instruction receiving unit receives the file obtaining instruction , performing the conversion operation on the corresponding file.
  • the server can not convert and transfer the shared file first, and display the corresponding identifier (for example, the name of the shared file can be highlighted, or the bubble box prompt can be displayed at the corresponding position of the shared file)
  • the preset operation for the identification is detected (such as a touch screen click, a preset operation gesture is performed on the screen interface of the second terminal, and the pressing terminal is specified)
  • the physical buttons, etc., and then the conversion of shared files is conducive to the control of the sharing file conversion timing, improve the flexibility of the system, and avoid wasting traffic and time.
  • a file sharing method including: acquiring a file that the first terminal needs to share to the second terminal; determining whether the format of the file needs to be converted, and if necessary, the file Performing format conversion to obtain the converted file; transmitting the converted file to the second terminal.
  • the file is shared by the first terminal to the file of the second terminal.
  • the file shared by the first terminal to the second terminal is referred to as a shared file in the present application, so that the second terminal is used.
  • the application that processes the shared file is not installed, the corresponding processing operation can also be implemented through the converted file, such as viewing or editing the content in the shared file.
  • the common file format can be a format that all terminals, such as text and pictures, must be able to process.
  • the converted file format can be selected according to the content of the shared file (the selected process can be automatically executed by the system, or the terminal can make a corresponding prompt, and the user selects), for example, for an article only PDF documents containing text content can be converted directly into text (such as .txt or .doc) to save conversion time.
  • PDF documents containing a large number of tables PDF documents can be converted to image format. For the user's view.
  • the method further includes: acquiring information about an installed application in the second terminal; and determining, by the device, whether the format of the file needs to be converted, including: information according to the application Determining whether the second terminal can process the file shared by the first terminal; if not, converting the format of the file into a common file format, otherwise directly transmitting the file to the second terminal .
  • the shared file can be directly downloaded and processed when the second terminal can process the shared file, without blindly Sharing files for conversion helps reduce the computing load on the server and reduces the amount of time users wait.
  • the second terminal can directly process the shared file without installing special tools or software, thereby avoiding the user downloading the file for processing the shared file.
  • the use of the program causes a waste of time and traffic.
  • the second terminal processes the original file, errors that may occur during the conversion process of the shared file are avoided, and the accuracy of the data in the shared file is improved.
  • the method further includes: requesting, by the second terminal, that the first terminal needs to share the installed file according to a preset period or when the first terminal needs to share the file with the second terminal Information of the application; wherein, if the request fails, the stored historical application information of the second terminal is used; if the request is successful, the historical application information is replaced with the newly obtained information of the installed application .
  • acquiring the installed application in the second terminal according to a preset period helps to periodically update the historical application information, and ensures the accuracy of the judgment on whether the format conversion is needed;
  • the information of the installed application is actively requested on a regular basis, so that even if the information acquisition of the second terminal is sometimes impossible, the stored history application information can be used to perform the judgment operation.
  • the capability of the second terminal to process the shared file can be more accurately determined to determine whether the sharing is needed.
  • the file is converted to avoid the application update in the second terminal, resulting in inaccurate judgment results.
  • the information of the application can be saved to the corresponding database.
  • the historical data information stored in the database can be used to ensure the flexibility of the system.
  • the method further includes: converting, according to the information of the application, the file shared by the first terminal into a file format supported by the specified application in the second terminal.
  • the shared file when the shared file can be converted into a plurality of formats that can be supported by the second terminal, the shared file can be converted into a more-translated file by converting the shared file into a file format supported by the specified application in the second terminal.
  • the format of the processing of the second terminal is facilitated, thereby ensuring optimal processing of the file.
  • the method when determining that the second terminal is unable to process the file shared by the first terminal, the method further includes: prompting the second terminal to download an application for processing the file, or The application is transmitted directly to the second terminal.
  • the second terminal when it is determined that the second terminal cannot process the shared file, the second terminal is prompted to download the corresponding application, which saves the user's search time for the application, and the user can select to download or not to download, which is beneficial to the user. Increase user operability.
  • the server can directly transfer the converted file in the universal format to the second terminal, so that the corresponding processing operation is performed without waiting, and the file can be directly shared. Transfer to the second terminal, thereby reducing data errors or deviations that may result from file format conversion.
  • the information of the application includes at least one of the following or a combination thereof: a name of the application, a version of the application, and/or version information, a type of the file format supported by the application, and an application The permission information of the program.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be known according to the application name, and the accuracy of calling the application and obtaining the application information is ensured.
  • there may be different versions of the same application and different versions may exist in the same version, resulting in the same name, but may still cause the shared file to be processed correctly.
  • a high version/version application can open a file created by the corresponding low/version application, but Applications that are low version/version cannot open files created by high version/version applications.
  • you can ensure that the second terminal can handle the accuracy of the shared file. Sex.
  • An application may support multiple file formats, so obtaining the file format type supported by the application can more fully determine whether the second terminal can process the shared file. Some applications can be used to process shared files. However, based on security and other factors, the application may not have the right to process shared files, so the application's permission information can also be processed. The restriction is made. By obtaining the permission information, it can be ensured that the application directly converts the shared file when the application does not have permission to process the shared file, thereby avoiding the application having no permission to process the shared file and blindly downloading the shared file, thereby improving the second The comprehensiveness and accuracy of terminal processing capability judgment.
  • the method when detecting that the file shared by the first terminal and/or the sub file of the file is a compressed package, the method further includes: performing the conversion on each file in the compressed package A step of.
  • the compressed package may be decompressed, and each of the sub-files is converted, so that the second terminal cannot open the compressed package after receiving the compressed package and decompressing the compressed file.
  • One or more subfiles ensure that each subfile in the shared file can be processed by the second terminal.
  • the subfile of the shared file may also be a compressed package, so that the subfiles can be further decompressed and formatted.
  • the file in the compressed package may still be compressed. The package can decompress and format all the compressed packages to ensure that the second terminal can process all of these files efficiently.
  • the method further includes: repacking all the converted files according to the content structure of the file shared by the first terminal, and transmitting the generated compressed package as the converted file to the first file. Two terminals.
  • the method further includes: transmitting, to the second terminal, a file that the first terminal needs to share before performing the converting step.
  • the second terminal may save the original shared file to share to other terminals or install an application for processing the shared file in the second terminal. After that, the original shared file is processed. Since the format conversion process may cause data loss, damage, etc., the download of the original shared file helps the second terminal to better process.
  • the method further includes: displaying an identifier corresponding to the file shared by the first terminal on a screen interface of the second terminal; when detecting a preset operation for the identifier, The corresponding file performs the step of converting and processes the converted file on the second terminal.
  • the server can not convert and transfer the shared file first, and display the corresponding identifier (for example, the name of the shared file can be highlighted, or the bubble box prompt can be displayed at the corresponding position of the shared file)
  • a shared file when it is detected that the shared file needs to be processed, That is, detecting a preset operation for the logo (such as a touch screen click, performing a preset operation gesture on the screen interface of the second terminal, pressing a physical button specified on the terminal, etc.), thereby converting the shared file, which is beneficial to Sharing the control of file conversion timing increases the flexibility of the system and avoids wasting traffic and time.
  • the data of the shared file and the like can be format-converted, so that the recipient of the file can also know the content in the shared file by viewing the converted file when the application for processing the shared file is not installed.
  • Figure 1 shows a block diagram of a server in accordance with an embodiment of the present invention
  • FIG. 2 shows a flow chart of a file sharing method in accordance with an embodiment of the present invention
  • FIG. 3 shows a specific flow chart of a file sharing method according to an embodiment of the present invention
  • FIG. 4 shows a block diagram of a cloud server in accordance with an embodiment of the present invention
  • 5A through 5E illustrate schematic diagrams of terminal interfaces for performing file sharing, in accordance with an embodiment of the present invention. detailed description
  • FIG. 1 shows a block diagram of a server in accordance with an embodiment of the present invention.
  • a server 100 includes: a file obtaining unit 102, configured to acquire a file that a first terminal needs to share to a second terminal; and a determining unit 103, configured to determine a format of the file. Whether the conversion is required; the format conversion unit 104 is configured to perform format conversion on the file to obtain a converted file when the format of the file needs to be converted, and a file transmission unit 106, configured to convert the converted file The file is transmitted to the second terminal.
  • the file is shared by the first terminal to the file of the second terminal.
  • the file shared by the first terminal to the second terminal is referred to as a shared file in the present application, so that the second terminal is used.
  • the application that processes the shared file is not installed, the corresponding processing operation can also be implemented through the converted file, such as viewing or editing the content in the shared file.
  • the common file format can be a format that all terminals, such as text and pictures, must be able to process.
  • the converted file format can be selected according to the content of the shared file (the selected process can be automatically executed by the system, or the terminal can make a corresponding prompt, and the user selects), for example, for an article only PDF documents containing text content can be converted directly into text (such as .txt or .doc) to save conversion time.
  • PDF documents containing a large number of tables PDF documents can be converted to image format. For the user's view.
  • the shared file may be transmitted by the first terminal to the server in real time and forwarded to the second terminal, or
  • the first terminal is stored in the server or other cloud storage space in advance, and the server is instructed to send the shared file in real time.
  • the method further includes: an information acquiring unit 108, configured to acquire information about an installed application in the second terminal, where the determining unit 103 is configured to determine, according to the information of the application, Whether the second terminal can process the file shared by the first terminal, if not, determines that the format of the file needs to be converted, and converts the format of the file into a common file format by the format converting unit 104. Otherwise, it is determined that the format of the file does not need to be converted, and the file is directly transmitted by the file transfer unit 106 to the second terminal.
  • an information acquiring unit 108 configured to acquire information about an installed application in the second terminal
  • the determining unit 103 is configured to determine, according to the information of the application, Whether the second terminal can process the file shared by the first terminal, if not, determines that the format of the file needs to be converted, and converts the format of the file into a common file format by the format converting unit 104. Otherwise, it is determined that the format of the file does not need to be converted, and the
  • the shared file can be directly downloaded and processed when the second terminal can process the shared file, without blindly Sharing files for conversion helps reduce the computing load on the server and reduces the amount of time users wait.
  • the second terminal can directly process the shared file without installing special tools or software, thereby avoiding the time and the user downloading the application for processing the shared file. Waste of traffic.
  • the second terminal processes the original file, the errors that may occur during the conversion process of the shared file are avoided, and the accuracy of the data in the shared file is improved.
  • the information acquiring unit 108 requests the second terminal according to a preset period or when it is known that the first terminal needs to share the file with the second terminal. Obtaining information of the installed application; wherein, if the request fails, the determining unit 1 10 uses the historical application information of the second terminal stored by the server 100 to perform determination; if the request is successful, the The server 100 replaces the history application information with the information of the newly obtained installed application.
  • acquiring the installed application in the second terminal according to a preset period helps to periodically update the historical application information, and ensures the accuracy of the judgment on whether the format conversion is needed;
  • the information of the installed application is actively requested on a regular basis, so that even if the information acquisition of the second terminal is sometimes impossible, the stored history application information can be used to perform the judgment operation.
  • the capability of the second terminal to process the shared file can be more accurately determined to determine whether the sharing is needed.
  • the file is converted to avoid the application update in the second terminal, resulting in inaccurate judgment results.
  • the information of the application can be saved to the corresponding database.
  • the historical data information stored in the database can be used to ensure the flexibility of the system.
  • the format conversion unit 104 is further configured to: convert, according to the information of the application, the file shared by the first terminal into a file supported by the specified application in the second terminal. format.
  • the shared file when the shared file can be converted into a plurality of formats that can be supported by the second terminal, the shared file can be converted into a more-translated file by converting the shared file into a file format supported by the specified application in the second terminal.
  • the format of the processing of the second terminal is facilitated, thereby ensuring optimal processing of the file.
  • the universal video file format supported by the terminal is ".mp4" format.
  • the video quality of the video in ".rmvb" format is higher than that of the video in ".mp4" format.
  • the video file in the ".avi” format can be converted into a video file in the ".rmvb” format to ensure that the video has better picture quality.
  • the file transmission unit 106 when the determining unit 110 determines that the second terminal cannot process the file shared by the first terminal, is used to process the file.
  • the application is directly transmitted to the second terminal; or the server further includes: a prompting unit 1 12, configured to determine, in the determining unit 110, that the second terminal cannot process the file shared by the first terminal Next, the second terminal is prompted to download an application for processing the file.
  • the second terminal when it is determined that the second terminal cannot process the shared file, the second terminal is prompted to download the corresponding application, which saves the user's search time for the application, and the user can select to download or not to download, which is beneficial to the user. Increase user operability.
  • the server can directly transfer the converted file in the universal format to the second terminal, so that the corresponding processing operation is performed without waiting, and the file can be directly shared. Transfer to the second terminal, thereby reducing data errors or deviations that may result from file format conversion.
  • the information of the application includes at least one of the following or a combination thereof: a name of the application, a version of the application, and/or version information, a type of the file format supported by the application, and an application The permission information of the program.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be understood according to the application name, which ensures the accuracy of calling the application and obtaining the application information.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be understood according to the application name, which ensures the accuracy of calling the application and obtaining the application information.
  • there may be different versions of the same application and different versions may exist in the same version, resulting in the same name, but may still cause the shared file to be processed correctly.
  • high version/version applications can open files created by the corresponding lower version/version application, but lower version/version applications cannot open files created by high version/version applications.
  • An application may support multiple file formats, so obtaining the file format type supported by the application can more fully determine whether the second terminal can process the shared file. Some applications can be used to process shared files. However, based on security and other factors, the application may not have the right to process shared files, so the application's permission information can also be processed. The restriction is made. By obtaining the permission information, it can be ensured that the application directly converts the shared file when the application does not have permission to process the shared file, thereby avoiding the application having no permission to process the shared file and blindly downloading the shared file, thereby improving the second The comprehensiveness and accuracy of terminal processing capability judgment.
  • the method further includes: a detecting unit 1 14, configured to detect whether the file shared by the first terminal and/or the subfile of the file is a compressed package; wherein the format converting unit 104 further Used to convert the format of each file in the compressed package.
  • the compressed package may be decompressed, and each of the sub-files is converted, so that the second terminal cannot open the compressed package after receiving the compressed package and decompressing the compressed file.
  • One or more subfiles ensure that each subfile in the shared file can be processed by the second terminal.
  • the subfile of the shared file may also be a compressed package, so that the subfiles can be further processed. Decompression and format conversion processing; while the sub-file is a compressed package, the file in the compressed package may still be a compressed package, and all the compressed packages may be decompressed and formatted to ensure that the second terminal can effectively process All of these files.
  • the method further includes: a file packaging unit 1 16, configured to repackage all the converted files according to a content structure of the file shared by the first terminal; wherein the file transmission unit 106 It is also used to transmit the compressed package generated by the file packing unit 1 16 as a converted file to the second terminal.
  • the file transmission unit 106 is further configured to: transmit, by the format conversion unit 104, the file that the first terminal needs to share to the second terminal.
  • the second terminal may save the original shared file to share to other terminals or install an application for processing the shared file in the second terminal. After that, the original shared file is processed. Since the format conversion process may cause data loss, damage, etc., the download of the original shared file helps the second terminal to better process.
  • the method further includes: an instruction receiving unit 1 18, configured to receive a file obtaining instruction sent by the second terminal, where the second terminal displays the corresponding display on the screen interface thereof And in the case that the identifier of the file shared by the first terminal is a preset operation, the file obtaining instruction is issued; wherein the format converting unit 104 is further configured to receive the file at the command receiving unit 1 18 In the case of acquiring an instruction, the operation of the conversion is performed on the corresponding file.
  • the server can not convert and transfer the shared file first, and display the corresponding identifier (for example, the name of the shared file can be highlighted, or the bubble box prompt can be displayed at the corresponding position of the shared file)
  • the preset operation for the identification is detected (such as a touch screen click, a preset operation gesture is performed on the screen interface of the second terminal, and the pressing terminal is specified)
  • the physical buttons, etc., and then the conversion of shared files is conducive to the control of the sharing file conversion timing, improve the flexibility of the system, and avoid wasting traffic and time.
  • FIG. 2 shows a flow chart of a file sharing method in accordance with an embodiment of the present invention.
  • the file sharing method includes: Step 202: Obtain a file that the first terminal needs to share to the second terminal; Step 204: Determine whether the format of the file needs to be converted; Step 206 If necessary, performing format conversion on the file to obtain the converted file; Step 208: transmitting the converted file to the second terminal; Step 210, if not required, directly The file is transmitted to the second terminal.
  • the file is shared by the first terminal to the file of the second terminal.
  • the file shared by the first terminal to the second terminal is referred to as a shared file in the present application, so that the second terminal is used.
  • the application that processes the shared file is not installed, the corresponding processing operation can also be realized by the converted file. For example, view or edit the content in the shared file.
  • the common file format can be a format that all terminals, such as text and pictures, must be able to process.
  • the converted file format can be selected according to the content of the shared file (the selected process can be automatically executed by the system, or the terminal can make a corresponding prompt, and the user selects), for example, for an article only PDF documents containing text content can be converted directly into text (such as .txt or .doc) to save conversion time.
  • PDF documents containing a large number of tables PDF documents can be converted to image format. For the user's view.
  • the shared file may be transmitted to the server by the first terminal in real time and forwarded to the second terminal, or the first terminal may be stored in the server or other cloud storage space in advance, and the shared file may be sent to the server in real time.
  • the method further includes: acquiring information about an installed application in the second terminal; and determining, by the device, whether the format of the file needs to be converted, including: information according to the application Determining whether the second terminal can process the file shared by the first terminal; if not, converting the format of the file into a common file format, otherwise directly transmitting the file to the second terminal .
  • the shared file can be directly downloaded and processed when the second terminal can process the shared file, without blindly Sharing files for conversion helps reduce the computing load on the server and reduces the amount of time users wait.
  • the second terminal can directly process the shared file without installing special tools or software, thereby avoiding the time and the user downloading the application for processing the shared file. Waste of traffic.
  • the second terminal processes the original file, the errors that may occur during the conversion process of the shared file are avoided, and the accuracy of the data in the shared file is improved.
  • the method further includes: requesting, by the second terminal, that the first terminal needs to share the installed file according to a preset period or when the first terminal needs to share the file with the second terminal Information of the application; wherein, if the request fails, the stored historical application information of the second terminal is used; if the request is successful, the historical application information is replaced with the newly obtained information of the installed application .
  • acquiring the installed application in the second terminal according to a preset period helps to periodically update the historical application information, and ensures the accuracy of the judgment on whether the format conversion is needed;
  • the information of the installed application is actively requested on a regular basis, so that even if the information acquisition of the second terminal is sometimes impossible, the stored history application information can be used to perform the judgment operation.
  • the capability of the second terminal to process the shared file can be more accurately determined to determine whether the sharing is needed.
  • the file is converted to avoid the application update in the second terminal, resulting in inaccurate judgment results.
  • the information of the application can be saved to the corresponding database.
  • the historical data information stored in the database can be used to ensure the flexibility of the system.
  • the method further includes: converting, according to the information of the application, the file shared by the first terminal into a file format supported by the specified application in the second terminal.
  • the shared file when the shared file can be converted into a plurality of formats that can be supported by the second terminal, the shared file can be converted into a more-translated file by converting the shared file into a file format supported by the specified application in the second terminal.
  • the format of the processing of the second terminal is facilitated, thereby ensuring optimal processing of the file.
  • the universal video file format supported by the terminal is ".mp4" format.
  • the method when determining that the second terminal is unable to process the file shared by the first terminal, the method further includes: prompting the second terminal to download an application for processing the file, or The application is transmitted directly to the second terminal.
  • the second terminal when it is determined that the second terminal cannot process the shared file, the second terminal is prompted to download the corresponding application, which saves the user's search time for the application, and the user can select to download or not to download, which is beneficial to the user. Increase user operability.
  • the server can directly transfer the converted file in the universal format to the second terminal, so that the corresponding processing operation is performed without waiting, and the file can be directly shared. Transfer to the second terminal, thereby reducing data errors or deviations that may result from file format conversion.
  • the information of the application includes at least one of the following or a combination thereof: a name of the application, a version of the application, and/or version information, a type of the file format supported by the application, and an application The permission information of the program.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be understood according to the application name, which ensures the accuracy of calling the application and obtaining the application information.
  • the name of the application can be used as the unique identifier of the application, so that the file format that can be processed by the application can be understood according to the application name, which ensures the accuracy of calling the application and obtaining the application information.
  • there may be different versions of the same application and different versions may exist in the same version, resulting in the same name, but may still cause the shared file to be processed correctly.
  • high version/version applications can open files created by the corresponding lower version/version application, but lower version/version applications cannot open files created by high version/version applications.
  • An application may support multiple file formats, so obtaining the file format type supported by the application can more fully determine whether the second terminal can process the shared file. Some applications can be used to process shared files. However, based on security and other factors, the application may not have the right to process shared files, so the application's permission information can also be processed. The restriction is made. By obtaining the permission information, it can be ensured that the application directly converts the shared file when the application does not have permission to process the shared file, thereby avoiding the application having no permission to process the shared file and blindly downloading the shared file, thereby improving the second The comprehensiveness and accuracy of terminal processing capability judgment.
  • the method when detecting that the file shared by the first terminal and/or the sub file of the file is a compressed package, the method further includes: performing the conversion on each file in the compressed package A step of.
  • the compressed package in the case that the shared file is a compressed package, the compressed package can be decompressed, and each of the sub-files is converted, so that the second terminal cannot be opened after receiving the compressed package and decompressing.
  • One or more of the subfiles ensure that each subfile in the shared file can be processed by the second terminal.
  • the subfile of the shared file may also be a compressed package, so that the subfiles can be further decompressed and formatted.
  • the file in the compressed package may still be compressed. The package can decompress and format all the compressed packages to ensure that the second terminal can process all of these files efficiently.
  • the method further includes: repacking all the converted files according to the content structure of the file shared by the first terminal, and transmitting the generated compressed package as the converted file to the first file. Two terminals.
  • the method further includes: transmitting, to the second terminal, a file that the first terminal needs to share before performing the converting step.
  • the second terminal may save the original shared file to share to other terminals or install an application for processing the shared file in the second terminal. After that, the original shared file is processed. Since the format conversion process may cause data loss, damage, etc., the download of the original shared file helps the second terminal to better process.
  • the method further includes: displaying an identifier corresponding to the file shared by the first terminal on a screen interface of the second terminal; when detecting a preset operation for the identifier, The corresponding file performs the step of converting and processes the converted file on the second terminal.
  • the server can not convert and transfer the shared file first, and display the corresponding identifier (for example, the name of the shared file can be highlighted, or the bubble box prompt can be displayed at the corresponding position of the shared file)
  • the preset operation for the identification is detected (such as a touch screen click, a preset operation gesture is performed on the screen interface of the second terminal, and the pressing terminal is specified)
  • the physical buttons, etc., and then the conversion of shared files is conducive to the control of the sharing file conversion timing, improve the flexibility of the system, and avoid wasting traffic and time.
  • FIG. 3 shows a detailed flow chart of a file sharing method according to an embodiment of the present invention.
  • a file sharing method includes:
  • step 302 user A shares the file to user B through the server.
  • user A transmits the file to be shared to the server in real time, or the file may be stored in the server or other server/cloud server in advance.
  • the server also stores the application list of the user B's terminal to ensure that the application information of the user B's terminal can be known (which formats can be supported), and the application information can be automatically obtained by the server to the user B periodically.
  • the server may acquire the file when it is detected that there is a need to share the file with the user B, and the terminal of the user B may synchronize the update of the application to the server in real time.
  • Step 304 The server determines, according to the saved application information of the terminal of the user B, the terminal of the user B. Whether the file shared by user A can be processed, if yes, step 306 is performed, otherwise step 308 is performed. Step 306: When the server determines that the terminal of the user B can process the shared file, the server transmits the shared file to the terminal of the user B, and the terminal of the user B processes the file.
  • Step 308 When the server determines that the terminal of the user B cannot process the shared file, the server parses the shared file into a format that the terminal of the user B can process, such as text and/or picture, and can also record the shared file. Some or all of the layout information.
  • Step 310 Consolidate the content of the text, the image, and the like parsed by the server and some or all of the layout information into a webpage format.
  • the server can also convert the format of the shared file into other multiple formats, such as a format common to the terminal (such as text or a picture), or a specified application in the terminal of the user B. Processed file formats, and files of these formats can be transferred directly to User B's terminal.
  • the web page format is taken as an example here.
  • Step 312 The server transmits the address of the saved webpage to the terminal of the user B, and the user B accesses the webpage address to obtain the corresponding content and further processing.
  • User B can choose to save the original shared file download to its terminal.
  • FIG. 4 shows a block diagram of a cloud server in accordance with an embodiment of the present invention.
  • the cloud server 400 includes:
  • the file storage module 402 is configured to store the shared file that the user A needs to share to the user B, and provide the shared file to the file processing module 406 to ensure that the user B obtains the file.
  • the terminal information storage module 404 is configured to store application information installed in the terminal of the user B, such as the name, version, and/or version of the application, permissions, etc., and provide the application information to the file processing module 406 for The file processing module 406 determines whether the user B's terminal can process the user A's shared file.
  • the file processing module 406 is configured to determine, according to the data sent by the file storage module 402 and the terminal information storage module 404, whether the terminal of the user B can process the shared file of the user A; for example, the application program "Go Book", the terminal information storage module 404
  • the file format (such as txt, log, ebf, etc.) that is supported for opening is saved. It is assumed that the analysis file of user A is pdf. If it is judged that it cannot be processed, the parsing parameter is returned to the parsing module 408. If it can be processed, The shared file is transmitted to the terminal of user B.
  • the parsing module 408 is configured to determine whether to parse the file content according to the parsing parameter passed in by the file processing module 406, and share the parsed type of the file; if parsing is needed, parsing the file content, and parsing the file content, and converting The file format that User B's terminal can support, such as the format that the "Go Book" can support, or the format that other applications can support, so that the format converted file can be directly transmitted to User B's terminal, enabling it to directly The formatted file is processed.
  • the parsing module 408 can save the content parsed by the shared file as a webpage (discarded for the unresolved part), thereby transmitting the address of the webpage to the terminal of the user B, so that it can directly browse the original User A shares the contents of the file and performs further processing operations.
  • FIG. 5A through 5D illustrate schematic diagrams of terminal interfaces for performing file sharing, in accordance with an embodiment of the present invention.
  • the user sees the file 502 shared by the contact "Zhang San" on the terminal 500. If the user needs to view the shared file 502, the user can click through the touch screen (in this embodiment, the touch screen click is taken as an example). It is of course also possible to perform a preset operation gesture on the screen interface of the terminal 500, and press the physical button specified on the terminal 500.
  • the server 510 determines whether the terminal 500 can process the shared file 502. If the terminal 500 can process the shared file 502, the terminal 500 directly downloads the shared file.
  • the format of the shared file 502 is converted, and can be converted into a common file format, such as text and image format, or can be converted into the terminal 500.
  • a common file format such as text and image format
  • the server stores the application information of the terminal 500, and the server can determine whether the terminal 500 can process the shared file 502 accordingly.
  • the application information stored in the server may be obtained by the server periodically from the terminal 500, or may be requested by the server in real time to the terminal 500 when detecting the existence of the file shared by the terminal 500, and may also be applied by the terminal 500.
  • Program updates are synchronized to the server in real time.
  • the user "Zhang San” recommends the shared file 502 to the user of the terminal 500 at a certain moment, and the shared file 502 is uploaded and stored to the server (for example, using "Sina Weibo" for sharing at this time. , then the server is the server corresponding to "Sina Weibo".
  • the terminal 500 may be prompted immediately, or may be prompted after a period of time, but as long as the shared file 502 is stored in the server, the terminal 500 can acquire it at any time.
  • the scenario shown in FIG. 5A is non-real-time data sharing; and the present application can be used for real-time data sharing, as shown in FIG. 5B.
  • the current user interacts with the user "Zhang San” using instant messaging tools (such as QQ, WeChat, Fetion, Mi Chat, etc.).
  • the user "Zhang San” can share data with the current user.
  • the file 502 shared in FIG. 5B is "Social Psychology.pdf".
  • the user "Zhang San” can send the data to be shared in the window chatting with the current user in real time. For example, if the file 502 is shared, the server will temporarily store the shared file 502 and format the file if necessary.
  • the server may immediately judge (determine whether the terminal 500 can directly process it) and format conversion after receiving the shared data 502; the server may also judge immediately after receiving the shared data 502, and receive the target.
  • the server may also perform the judgment and format conversion in real time upon receiving the download request of the target object (such as the terminal 500).
  • the terminal 500 can automatically The server is requested to download the corresponding file data; or, the terminal 500 shows in FIG. 5A and FIG. 5B that "social psychology. pdf" is only an identifier corresponding to the shared data 502, when the user operates the identifier, for example Clicking on the identity, the terminal 500 sends a download request to the server.
  • the server can convert the format of the shared file 502 into a common format, that is, a format in which all terminals can be opened, and the terminal 500 is inevitably capable of processing.
  • the general format may be text, pictures, web pages, etc., and one of them may be selected, or a combination of multiple formats may be used.
  • the server can parse the text, picture, etc. in the shared file 502, and the above
  • the content is integrated and saved as a webpage format, and then the webpage address is transmitted to the terminal 500.
  • the user opens and processes the converted format file according to the webpage address received by the terminal 500, as shown in FIG. 5C, on the interface of the terminal 500.
  • the displayed web page content 504 is displayed.
  • the server can also record the layout information of the text, the picture and the like in the shared file 502, and when generating the webpage content 504, perform layout according to the layout information, so that the current user can obtain and share as much as possible.
  • the converted file conforms to the contents of file 502.
  • the present application can provide a format converted file for the current user, the user can still select to download the original file that has not been formatted (ie, the shared file 502). Specifically, for example, during the processing of the user, the shared file 502 (not shown) may be downloaded and saved to the terminal 500 by clicking the prompt button 506 shown in FIG. 5C.
  • the server converts the shared file 502 into a file type that the specified application can process based on the application information in the terminal 500.
  • the server can convert the format of the shared file 502 into a format that the application "Word” can handle, for example, the suffix is " .doc" file.
  • the formatted word document content 508 is displayed on the interface of the terminal 500.
  • the server may also pop up a prompt menu 510 on the interface of the terminal 500 to prompt the user whether to download the related application, and download the related application.
  • the terminal 500 can directly process the file of the same type through the installed application without receiving the conversion, which saves the user waiting for the file conversion time.
  • the prompt menu 510 is not necessary, and the server can directly push the corresponding application to the terminal 500 and automatically install it by the terminal 500.
  • the present invention proposes a new file sharing scheme, which can perform format conversion on data such as shared files, so that the recipient of the file can also view the converted file when the application for processing the shared file is not installed. Know what's in the shared file.

Abstract

本发明提供了一种服务器,包括:文件获取单元,用于获取第一终端需要分享至第二终端的文件;判断单元,用于判断所述文件的格式是否需要转换;格式转换单元,用于在判定所述文件的格式需要转换时,对所述文件执行格式转换,以得到转换后的文件;文件传输单元,用于将所述转换后的文件传输至所述第二终端。本发明还提出了一种文件分享方法。通过本发明的技术方案,可以对分享的文件等数据进行格式转换,使得文件的接收方在未安装处理分享文件的应用程序时,也能够通过查看转换后的文件得知分享文件中的内容。

Description

服务器和文件分享方法
技术领域
本发明涉及数据处理技术领域, 具体而言, 涉及一种服务器和一种文件分享方 法。 背景技术
在现有技术中, 通过服务器或云端服务器, 能够实现多个终端之间的数据传输和 共享, 比如一方将数据传输至服务器或云端服务器, 并由服务器或云端服务器将数据 转发至另一方。 服务器或云端服务器还可以实现数据的存储和备份恢复等其他功能。 但对于一方分享给另一方的数据, 比如文档、 图片、 视频等, 用户得到的数据即为对 方实际分享的, 则当被分享方的终端内没有能够对分享的数据进行处理的能力, 比如 没有安装相应的应用程序, 则还需要下载相应的应用程序或者对文件的格式进行转 换, 繁瑣的操作严重影响了用户的体验。 发明内容
本发明正是基于上述技术问题中至少之一, 提出了一种新的文件分享方案, 可以 对分享的文件等数据进行格式转换, 使得文件的接收方在未安装处理分享文件的应用 程序时, 也能够通过查看转换后的文件得知分享文件中的内容。
有鉴于此, 本发明提出了一种服务器, 包括: 文件获取单元, 用于获取第一终端 需要分享至第二终端的文件; 判断单元, 用于判断所述文件的格式是否需要转换; 格 式转换单元, 用于在判定所述文件的格式需要转换时, 对所述文件执行格式转换, 以 得到转换后的文件; 文件传输单元, 用于将所述转换后的文件传输至所述第二终端。
在该技术方案中, 通过将第一终端分享至第二终端的文件进行格式转换 (为便于 描述, 本申请中将第一终端分享至第二终端的文件称为分享文件) , 使得第二终端在 未安装处理分享文件的应用程序时, 也能够通过转换后的文件实现相应的处理操作, 比如查看或编辑分享文件中的内容。 通过对分享文件的格式转换, 避免了用户因未安 装处理分享文件的应用程序而无法进行处理的问题, 同时也避免了用户下载用于处理 分享文件的应用程序而造成时间和流量的浪费。
在上述技术方案中, 优选地, 还包括: 信息获取单元, 用于获取所述第二终端中 已安装的应用程序的信息; 其中, 所述判断单元用于根据所述应用程序的信息, 判断 所述第二终端是否可以处理所述第一终端分享的文件, 若不能处理, 则判定所述文件 的格式需要转换, 并由所述格式转换单元将所述文件的格式转换为通用文件格式, 否 则判定所述文件的格式不需要转换, 并由所述文件传输单元直接将所述文件传输至所 述第二终端。
在该技术方案中, 通过对第二终端中已安装的应用程序能否处理分享文件进行判 断, 可以在第二终端能够处理分享文件的情况下, 直接下载分享文件并进行处理, 无 需盲目地对分享文件进行转换, 有利于降低服务器的运算负荷, 并缩短用户等待的时 间。 通过将分享文件的格式转换为通用格式, 从而使得第二终端无需安装专门的工具 或软件, 即可直接对分享文件进行处理操作, 避免了用户下载用于处理分享文件的应 用程序而造成时间和流量的浪费。 同时, 由于第二终端处理的是原文件, 因此避免了 分享文件在转换过程中可能出现的错误, 提高了分享文件中数据的准确性。
在上述技术方案中, 优选地, 所述信息获取单元按照预设周期或在得知所述第一 终端需要向所述第二终端分享所述文件的情况下, 向所述第二终端请求获取其已安装 的应用程序的信息; 其中, 若请求失败, 则所述判断单元使用所述服务器存储的所述 第二终端的历史应用程序信息进行判断; 若请求成功, 则所述服务器将所述历史应用 程序信息替换为最新获得的已安装的应用程序的信息。
在该技术方案中, 按照预设的周期对第二终端中已安装的应用程序进行获取, 有 助于定期更新历史应用程序信息, 确保对是否需要进行格式转换的判断的准确性; 同 时, 通过定期主动索取已安装的应用程序的信息, 使得即便有时无法对第二终端进行 信息获取, 也可以利用已存储的历史应用程序信息执行判断操作。 通过在得知第一终 端需要向第二终端分享文件时, 获取第二终端中的应用程序信息, 可以更加准确地对 第二终端能否处理分享文件的能力进行判断, 以确定是否需要对分享文件进行转换, 避免第二终端内的应用程序更新造成判断结果不准确。 应用程序的信息可以保存至相 应的数据库中, 在实时获取第二终端中的应用程序信息失败时, 可以使用存储在数据 库中的历史数据信息, 确保了系统的灵活性。 当然, 也可以在第二终端对自身的应用 程序信息进行更新之后, 比如删除、 增加或更新了一个或多个应用程序时, 实时将修 改后的应用程序信息同步至数据库中。
在上述技术方案中, 优选地, 所述格式转换单元还用于: 根据所述应用程序的信 息, 将所述第一终端分享的文件转换为所述第二终端中指定应用程序支持的文件格 式。
在该技术方案中, 当分享文件可以被转换为多种可被第二终端支持的格式时, 通 过将分享文件转换为第二终端中指定应用程序支持的文件格式, 可以将分享文件转换 为更有利于第二终端的处理过程的格式, 从而确保了对文件的最优化处理。
在上述技术方案中, 优选地, 所述文件传输单元在所述判断单元判定所述第二终 端无法处理所述第一终端分享的文件的情况下, 将用于处理所述文件的应用程序直接 传输至所述第二终端; 或所述服务器还包括: 提示单元, 用于在所述判断单元判定所 述第二终端无法处理所述第一终端分享的文件的情况下, 提示所述第二终端下载用于 处理所述文件的应用程序。
在该技术方案中, 通过在判定第二终端无法处理分享文件时, 提示第二终端下载 相应的应用程序, 节省了用户对该应用程序的搜索时间, 并且用户可以选择下载或不 下载, 有利于增加用户的可操作性。 而通过将处理分享文件的应用程序直接传输至第 二终端, 尤其是当第二终端连接至无需流量开销的网络 (比如无线局域网) 下时, 有 利于简化用户操作步骤。 由于第二终端下载相应的应用程序需要一定的时间, 因而服 务器可以直接将转换后的通用格式的文件传输给第二终端, 使其无需等待, 立即进行 相应的处理操作; 也可以直接将分享文件传输给第二终端, 从而降低文件格式转换可 能带来的数据错误或偏差。
在上述技术方案中, 优选地, 所述应用程序的信息包括以下至少之一或其组合: 应用程序的名称、 应用程序的版本和 /或版次信息、 应用程序支持的文件格式的类型、 应用程序的权限信息。
在该技术方案中, 应用程序的名称可以作为该应用程序的唯一标识, 因而可以根 据应用程序名称了解其具体能够处理的文件格式, 确保了在调用应用程序以及获取应 用程序信息时的准确性。 但同一应用程序可能存在不同的版本, 同一版本可能存在不 同的版次, 从而导致虽然名称一致, 但仍可能导致分享文件无法被正确处理。 通常情 况下, 高版本 /版次的应用程序可以打开相应的低版本 /版次应用程序创建的文件, 但 是低版本 /版次的应用程序不能打开由高版本 /版次的应用程序创建的文件, 通过获取 应用程序的版本和 /或版次信息, 可以确保判断第二终端是否能够处理分享文件的准确 性。 一个应用程序可能支持多种文件格式, 因此获取应用程序支持的文件格式类型可 以更加全面地对第二终端是否能够处理分享文件进行判断。 有些应用程序本身可以用 于对分享文件进行处理, 但基于安全等因素的考虑, 该应用程序可能并不具有对分享 文件进行处理的权限, 因而应用程序的权限信息也对其能够处理的文件格式进行了限 制, 通过对权限信息的获取, 可以保证在应用程序没有权限处理分享文件时, 直接由 服务器进行转换, 避免了应用程序没有权限处理分享文件而盲目地下载分享文件, 提 高了对第二终端处理能力判断的全面性与准确性。
在上述技术方案中, 优选地, 还包括: 检测单元, 用于检测所述第一终端分享的 文件和 /或该文件的子文件是否为压缩包; 其中, 所述格式转换单元还用于对所述压缩 包中的每个文件的格式进行转换。
在该技术方案中, 针对分享文件为压缩包的情况, 可以对压缩包进行解压, 对其 中的每个子文件都进行转换, 避免了第二终端在接收到压缩包并解压之后, 无法打开 其中的一个或多个子文件, 确保了分享文件中的每个子文件都可以被第二终端进行处 理。 当然, 分享文件的子文件也可能为压缩包, 因而可以对其中的子文件做进一步的 解压和格式转换处理; 而针对子文件为压缩包的情况下, 该压缩包中的文件仍然可能 为压缩包, 则可以对所有压缩包都进行解压和格式转换, 从而确保第二终端能够有效 处理所有这些文件。
在上述技术方案中, 优选地, 还包括: 文件打包单元, 用于按照所述第一终端分 享的文件的内容结构, 对所有转换后的文件重新打包; 其中, 所述文件传输单元还用 于将所述文件打包单元生成的压缩包作为转换后的文件传输至所述第二终端。
在该技术方案中, 同一个压缩包中的文件之间通常存在关联性, 通过将转换后的 一个或多个文件重新打包传输至第二终端, 确保转换后的文件能够保留分享文件中各 个文件之间的关联性。 当然, 若第二终端无法对压缩包进行处理, 则也可以不对解压 缩后的文件进行重新打包。
在上述技术方案中, 优选地, 所述文件传输单元还用于: 将未被所述格式转换单 元处理过的、 所述第一终端需要分享的文件传输至所述第二终端。
在该技术方案中, 通过将转换之前的分享文件传输至第二终端, 可以使第二终端 对原始的分享文件进行保存, 以便分享至其他终端或在第二终端安装了处理分享文件 的应用程序之后, 对原始的分享文件进行处理。 由于格式转换过程可能造成数据的丢 失、 损坏等, 因而对原始的分享文件的下载, 有助于第二终端更好地进行处理。
在上述技术方案中, 优选地, 还包括: 指令接收单元, 用于接收所述第二终端发 送的文件获取指令, 其中, 所述第二终端在检测到其的屏幕界面上显示的对应于所述 第一终端分享的文件的标识发生预设操作的情况下, 发出所述文件获取指令; 其中, 所述格式转换单元还用于在所述指令接收单元接收到所述文件获取指令的情况下, 对 相应的文件执行所述转换的操作。
在该技术方案中, 由于第二终端的用户不一定对第一终端分享的文件感兴趣, 或 者当前环境下不一定适合第二终端对分享文件或格式转换后的文件进行下载 (比如数 据流量有限或网络速度过慢等) , 服务器可以先不对分享文件进行转换处理和传输, 而通过显示相应的标识 (比如可以对分享文件的名称进行突出显示, 或者在分享文件 对应的位置上显示气泡框提示有分享文件) , 在检测到需要对分享文件进行处理时, 即检测到针对标识的预设操作 (比如触屏点击、 在第二终端的屏幕界面上执行预设的 操作手势、 按压终端上指定的物理按键等) , 进而对分享文件进行转换, 有利于对分 享文件转换时机的控制, 提高了系统的灵活性, 避免浪费流量和时间。
根据本发明的另一方面, 还提出了一种文件分享方法, 包括: 获取第一终端需要 分享至第二终端的文件; 判断所述文件的格式是否需要转换, 若需要, 则对所述文件 执行格式转换, 以得到转换后的文件; 将所述转换后的文件传输至所述第二终端。
在该技术方案中, 通过将第一终端分享至第二终端的文件进行格式转换 (为便于 描述, 本申请中将第一终端分享至第二终端的文件称为分享文件) , 使得第二终端在 未安装处理分享文件的应用程序时, 也能够通过转换后的文件实现相应的处理操作, 比如查看或编辑分享文件中的内容。 通过对分享文件的格式转换, 避免了用户因未安 装处理分享文件的应用程序而无法进行处理的问题, 同时也避免了用户下载用于处理 分享文件的应用程序而造成时间和流量的浪费。 其中, 通用的文件格式可以是文本、 图片等所有终端一定能够进行处理的格式。 在转换的过程中, 可以根据分享文件的内 容选择转换后的文件格式 (选择的过程可以是系统自动执行, 也可以是终端做出相应 的提示, 而由用户进行选择) , 比如针对一篇只包含文本内容的 PDF文档, 则可以直 接转换为文本(如 .txt或. doc ) 形式, 以节省转换的时间, 而对于包含了大量的表格的 PDF文档, 则可以将 PDF文档转换为图片格式, 以便于用户的查看。
在上述技术方案中, 优选地, 还包括: 获取所述第二终端中已安装的应用程序的 信息; 以及所述判断所述文件的格式是否需要转换的过程包括: 根据所述应用程序的 信息, 判断所述第二终端是否可以处理所述第一终端分享的文件; 其中, 若不能, 则 将所述文件的格式转换为通用文件格式, 否则直接将所述文件传输至所述第二终端。
在该技术方案中, 通过对第二终端中已安装的应用程序能否处理分享文件进行判 断, 可以在第二终端能够处理分享文件的情况下, 直接下载分享文件并进行处理, 无 需盲目地对分享文件进行转换, 有利于降低服务器的运算负荷, 并缩短用户等待的时 间。 通过将分享文件的格式转换为通用格式, 从而使得第二终端无需安装专门的工具 或软件, 即可直接对分享文件进行处理操作, 避免了用户下载用于处理分享文件的应 用程序而造成时间和流量的浪费。 同时, 由于第二终端处理的是原文件, 因此避免了 分享文件在转换过程中可能出现的错误, 提高了分享文件中数据的准确性。
在上述技术方案中, 优选地, 还包括: 按照预设周期或在得知所述第一终端需要 向所述第二终端分享所述文件时, 向所述第二终端请求获取其已安装的应用程序的信 息; 其中, 若请求失败, 则使用存储的所述第二终端的历史应用程序信息; 若请求成 功, 则将所述历史应用程序信息替换为最新获得的已安装的应用程序的信息。
在该技术方案中, 按照预设的周期对第二终端中已安装的应用程序进行获取, 有 助于定期更新历史应用程序信息, 确保对是否需要进行格式转换的判断的准确性; 同 时, 通过定期主动索取已安装的应用程序的信息, 使得即便有时无法对第二终端进行 信息获取, 也可以利用已存储的历史应用程序信息执行判断操作。 通过在得知第一终 端需要向第二终端分享文件时, 获取第二终端中的应用程序信息, 可以更加准确地对 第二终端能否处理分享文件的能力进行判断, 以确定是否需要对分享文件进行转换, 避免第二终端内的应用程序更新造成判断结果不准确。 应用程序的信息可以保存至相 应的数据库中, 在实时获取第二终端中的应用程序信息失败时, 可以使用存储在数据 库中的历史数据信息, 确保了系统的灵活性。
在上述技术方案中, 优选地, 还包括: 根据所述应用程序的信息, 将所述第一终 端分享的文件转换为所述第二终端中指定应用程序支持的文件格式。
在该技术方案中, 当分享文件可以被转换为多种可被第二终端支持的格式时, 通 过将分享文件转换为第二终端中指定应用程序支持的文件格式, 可以将分享文件转换 为更有利于第二终端的处理过程的格式, 从而确保了对文件的最优化处理。
在上述技术方案中, 优选地, 在判定所述第二终端无法处理所述第一终端分享的 文件时, 还包括: 提示所述第二终端下载用于处理所述文件的应用程序, 或将该应用 程序直接传输至所述第二终端。
在该技术方案中, 通过在判定第二终端无法处理分享文件时, 提示第二终端下载 相应的应用程序, 节省了用户对该应用程序的搜索时间, 并且用户可以选择下载或不 下载, 有利于增加用户的可操作性。 而通过将处理分享文件的应用程序直接传输至第 二终端, 尤其是当第二终端连接至无需流量开销的网络 (比如无线局域网) 下时, 有 利于简化用户操作步骤。 由于第二终端下载相应的应用程序需要一定的时间, 因而服 务器可以直接将转换后的通用格式的文件传输给第二终端, 使其无需等待, 立即进行 相应的处理操作; 也可以直接将分享文件传输给第二终端, 从而降低文件格式转换可 能带来的数据错误或偏差。
在上述技术方案中, 优选地, 所述应用程序的信息包括以下至少之一或其组合: 应用程序的名称、 应用程序的版本和 /或版次信息、 应用程序支持的文件格式的类型、 应用程序的权限信息。
在该技术方案中, 应用程序的名称可以作为该应用程序的唯一标识, 因而可以根 据应用程序名称了解其具体能够处理的文件格式, 确保了在调用应用程序以及获取应 用程序信息时的准确性。 但同一应用程序可能存在不同的版本, 同一版本可能存在不 同的版次, 从而导致虽然名称一致, 但仍可能导致分享文件无法被正确处理。 通常情 况下, 高版本 /版次的应用程序可以打开相应的低版本 /版次应用程序创建的文件, 但 是低版本 /版次的应用程序不能打开由高版本 /版次的应用程序创建的文件, 通过获取 应用程序的版本和 /或版次信息, 可以确保判断第二终端是否能够处理分享文件的准确 性。 一个应用程序可能支持多种文件格式, 因此获取应用程序支持的文件格式类型可 以更加全面地对第二终端是否能够处理分享文件进行判断。 有些应用程序本身可以用 于对分享文件进行处理, 但基于安全等因素的考虑, 该应用程序可能并不具有对分享 文件进行处理的权限, 因而应用程序的权限信息也对其能够处理的文件格式进行了限 制, 通过对权限信息的获取, 可以保证在应用程序没有权限处理分享文件时, 直接由 服务器进行转换, 避免了应用程序没有权限处理分享文件而盲目地下载分享文件, 提 高了对第二终端处理能力判断的全面性与准确性。
在上述技术方案中, 优选地, 当检测到所述第一终端分享的文件和 /或该文件的子 文件为压缩包时, 还包括: 对所述压缩包中的每个文件执行所述转换的步骤。
在该技术方案中, 针对分享文件为压缩包的情况, 可以对压缩包进行解压, 对其 中的每个子文件都进行转换, 避免了第二终端在接收到压缩包并解压之后, 无法打开 其中的一个或多个子文件, 确保了分享文件中的每个子文件都可以被第二终端进行处 理。 当然, 分享文件的子文件也可能为压缩包, 因而可以对其中的子文件做进一步的 解压和格式转换处理; 而针对子文件为压缩包的情况下, 该压缩包中的文件仍然可能 为压缩包, 则可以对所有压缩包都进行解压和格式转换, 从而确保第二终端能够有效 处理所有这些文件。
在上述技术方案中, 优选地, 还包括: 按照所述第一终端分享的文件的内容结 构, 对所有转换后的文件重新打包, 并将生成的压缩包作为转换后的文件传输至所述 第二终端。
在该技术方案中, 同一个压缩包中的文件之间通常存在关联性, 通过将转换后的 一个或多个文件重新打包传输至第二终端, 确保转换后的文件能够保留分享文件中各 个文件之间的关联性。 当然, 若第二终端无法对压缩包进行处理, 则也可以不对解压 缩后的文件进行重新打包。
在上述技术方案中, 优选地, 还包括: 将执行所述转换步骤之前的、 所述第一终 端需要分享的文件传输至所述第二终端。
在该技术方案中, 通过将转换之前的分享文件传输至第二终端, 可以使第二终端 对原始的分享文件进行保存, 以便分享至其他终端或在第二终端安装了处理分享文件 的应用程序之后, 对原始的分享文件进行处理。 由于格式转换过程可能造成数据的丢 失、 损坏等, 因而对原始的分享文件的下载, 有助于第二终端更好地进行处理。
在上述技术方案中, 优选地, 还包括: 在所述第二终端的屏幕界面上显示对应于 所述第一终端分享的文件的标识; 在检测到针对所述标识的预设操作时, 对相应的文 件执行所述转换的步骤, 并在所述第二终端上处理所述转换后的文件。
在该技术方案中, 由于第二终端的用户不一定对第一终端分享的文件感兴趣, 或 者当前环境下不一定适合第二终端对分享文件或格式转换后的文件进行下载 (比如数 据流量有限或网络速度过慢等) , 服务器可以先不对分享文件进行转换处理和传输, 而通过显示相应的标识 (比如可以对分享文件的名称进行突出显示, 或者在分享文件 对应的位置上显示气泡框提示有分享文件) , 在检测到需要对分享文件进行处理时, 即检测到针对标识的预设操作 (比如触屏点击、 在第二终端的屏幕界面上执行预设的 操作手势、 按压终端上指定的物理按键等) , 进而对分享文件进行转换, 有利于对分 享文件转换时机的控制, 提高了系统的灵活性, 避免浪费流量和时间。
通过以上技术方案, 可以对分享的文件等数据进行格式转换, 使得文件的接收方 在未安装处理分享文件的应用程序时, 也能够通过查看转换后的文件得知分享文件中 的内容。 附图说明
图 1示出了根据本发明的实施例的服务器的框图;
图 2示出了根据本发明的实施例的文件分享方法的流程图;
图 3示出了根据本发明的实施例的文件分享方法的具体流程图;
图 4示出了根据本发明的实施例的云端服务器的模块图;
图 5A至图 5E示出了根据本发明的实施例的执行文件分享的终端界面示意图。 具体实施方式
为了能够更清楚地理解本发明的上述目的、 特征和优点, 下面结合附图和具体实 施方式对本发明进行进一步的详细描述。 需要说明的是, 在不冲突的情况下, 本申请 的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明, 但是, 本发明还可 以釆用其他不同于在此描述的其他方式来实施, 因此, 本发明的保护范围并不受下面 公开的具体实施例的限制。
图 1示出了根据本发明的实施例的服务器的框图。
如图 1 所示, 根据本发明的实施例的服务器 100 , 包括: 文件获取单元 102 , 用 于获取第一终端需要分享至第二终端的文件; 判断单元 103 , 用于判断所述文件的格 式是否需要转换; 格式转换单元 104 , 用于在判定所述文件的格式需要转换时, 对所 述文件执行格式转换, 以得到转换后的文件; 文件传输单元 106 , 用于将所述转换后 的文件传输至所述第二终端。
在该技术方案中, 通过将第一终端分享至第二终端的文件进行格式转换 (为便于 描述, 本申请中将第一终端分享至第二终端的文件称为分享文件) , 使得第二终端在 未安装处理分享文件的应用程序时, 也能够通过转换后的文件实现相应的处理操作, 比如查看或编辑分享文件中的内容。 通过对分享文件的格式转换, 避免了用户因未安 装处理分享文件的应用程序而无法进行处理的问题, 同时也避免了用户下载用于处理 分享文件的应用程序而造成时间和流量的浪费。 其中, 通用的文件格式可以是文本、 图片等所有终端一定能够进行处理的格式。 在转换的过程中, 可以根据分享文件的内 容选择转换后的文件格式 (选择的过程可以是系统自动执行, 也可以是终端做出相应 的提示, 而由用户进行选择) , 比如针对一篇只包含文本内容的 PDF文档, 则可以直 接转换为文本(如 .txt或. doc ) 形式, 以节省转换的时间, 而对于包含了大量的表格的 PDF文档, 则可以将 PDF文档转换为图片格式, 以便于用户的查看。
其中, 分享文件可以是第一终端实时传输至服务器并转发给第二终端的, 也可以 是第一终端事先存储在服务器或其他云端存储空间内的, 并实时向服务器指示发送该 分享文件。
在上述技术方案中, 优选地, 还包括: 信息获取单元 108 , 用于获取所述第二终 端中已安装的应用程序的信息; 其中, 判断单元 103 用于根据所述应用程序的信息, 判断所述第二终端是否可以处理所述第一终端分享的文件, 若不能处理, 则判定所述 文件的格式需要转换, 并由所述格式转换单元 104将所述文件的格式转换为通用文件 格式, 否则判定所述文件的格式不需要转换, 并由所述文件传输单元 106直接将所述 文件传输至所述第二终端。
在该技术方案中, 通过对第二终端中已安装的应用程序能否处理分享文件进行判 断, 可以在第二终端能够处理分享文件的情况下, 直接下载分享文件并进行处理, 无 需盲目地对分享文件进行转换, 有利于降低服务器的运算负荷, 并缩短用户等待的时 间。 通过将分享文件的格式转换为通用格式, 从而使得第二终端无需安装专门的工具 或软件, 即可直接对分享文件进行处理操作, 避免了用户下载用于处理分享文件的应 用程序而造成时间和流量的浪费。 同时, 由于第二终端处理的是原文件, 因此避免了 分享文件在转换过程中可能出现的错误, 提高了分享文件中数据的准确性。
在上述技术方案中, 优选地, 所述信息获取单元 108按照预设周期或在得知所述 第一终端需要向所述第二终端分享所述文件的情况下, 向所述第二终端请求获取其已 安装的应用程序的信息; 其中, 若请求失败, 则所述判断单元 1 10 使用所述服务器 100 存储的所述第二终端的历史应用程序信息进行判断; 若请求成功, 则所述服务器 100将所述历史应用程序信息替换为最新获得的已安装的应用程序的信息。
在该技术方案中, 按照预设的周期对第二终端中已安装的应用程序进行获取, 有 助于定期更新历史应用程序信息, 确保对是否需要进行格式转换的判断的准确性; 同 时, 通过定期主动索取已安装的应用程序的信息, 使得即便有时无法对第二终端进行 信息获取, 也可以利用已存储的历史应用程序信息执行判断操作。 通过在得知第一终 端需要向第二终端分享文件时, 获取第二终端中的应用程序信息, 可以更加准确地对 第二终端能否处理分享文件的能力进行判断, 以确定是否需要对分享文件进行转换, 避免第二终端内的应用程序更新造成判断结果不准确。 应用程序的信息可以保存至相 应的数据库中, 在实时获取第二终端中的应用程序信息失败时, 可以使用存储在数据 库中的历史数据信息, 确保了系统的灵活性。 当然, 也可以在第二终端对自身的应用 程序信息进行更新之后, 比如删除、 增加或更新了一个或多个应用程序时, 实时将修 改后的应用程序信息同步至数据库中。
在上述技术方案中, 优选地, 所述格式转换单元 104还用于: 根据所述应用程序 的信息, 将所述第一终端分享的文件转换为所述第二终端中指定应用程序支持的文件 格式。
在该技术方案中, 当分享文件可以被转换为多种可被第二终端支持的格式时, 通 过将分享文件转换为第二终端中指定应用程序支持的文件格式, 可以将分享文件转换 为更有利于第二终端的处理过程的格式, 从而确保了对文件的最优化处理。 比如通常 情况下, 终端支持的通用视频文件格式为 " .mp4" 格式, 对于 " .avi" 格式的视频文 件, 由于 " .rmvb" 格式的视频的画面质量高于 " .mp4" 格式的视频的画面质量, 因 此, 若终端中安装了可以处理 " .rmvb" 格式的视频文件, 则可以将 " .avi" 格式的视 频文件转换为 " .rmvb" 格式的视频文件, 以确保视频具有较好的画面质量。
在上述技术方案中, 优选地, 所述文件传输单元 106在所述判断单元 1 10判定所 述第二终端无法处理所述第一终端分享的文件的情况下, 将用于处理所述文件的应用 程序直接传输至所述第二终端; 或所述服务器还包括: 提示单元 1 12 , 用于在所述判 断单元 1 10判定所述第二终端无法处理所述第一终端分享的文件的情况下, 提示所述 第二终端下载用于处理所述文件的应用程序。
在该技术方案中, 通过在判定第二终端无法处理分享文件时, 提示第二终端下载 相应的应用程序, 节省了用户对该应用程序的搜索时间, 并且用户可以选择下载或不 下载, 有利于增加用户的可操作性。 而通过将处理分享文件的应用程序直接传输至第 二终端, 尤其是当第二终端连接至无需流量开销的网络 (比如无线局域网) 下时, 有 利于简化用户操作步骤。 由于第二终端下载相应的应用程序需要一定的时间, 因而服 务器可以直接将转换后的通用格式的文件传输给第二终端, 使其无需等待, 立即进行 相应的处理操作; 也可以直接将分享文件传输给第二终端, 从而降低文件格式转换可 能带来的数据错误或偏差。
在上述技术方案中, 优选地, 所述应用程序的信息包括以下至少之一或其组合: 应用程序的名称、 应用程序的版本和 /或版次信息、 应用程序支持的文件格式的类型、 应用程序的权限信息。
在该技术方案中, 应用程序的名称可以作为该应用程序的唯一标识, 因而可以根 据应用程序名称了解其具体能够处理的文件格式, 确保了在调用应用程序以及获取应 用程序信息时的准确性。 但同一应用程序可能存在不同的版本, 同一版本可能存在不 同的版次, 从而导致虽然名称一致, 但仍可能导致分享文件无法被正确处理。 通常情 况下, 高版本 /版次的应用程序可以打开相应的低版本 /版次应用程序创建的文件, 但 是低版本 /版次的应用程序不能打开由高版本 /版次的应用程序创建的文件, 通过获取 应用程序的版本和 /或版次信息, 可以确保判断第二终端是否能够处理分享文件的准确 性。 一个应用程序可能支持多种文件格式, 因此获取应用程序支持的文件格式类型可 以更加全面地对第二终端是否能够处理分享文件进行判断。 有些应用程序本身可以用 于对分享文件进行处理, 但基于安全等因素的考虑, 该应用程序可能并不具有对分享 文件进行处理的权限, 因而应用程序的权限信息也对其能够处理的文件格式进行了限 制, 通过对权限信息的获取, 可以保证在应用程序没有权限处理分享文件时, 直接由 服务器进行转换, 避免了应用程序没有权限处理分享文件而盲目地下载分享文件, 提 高了对第二终端处理能力判断的全面性与准确性。
在上述技术方案中, 优选地, 还包括: 检测单元 1 14 , 用于检测所述第一终端分 享的文件和 /或该文件的子文件是否为压缩包; 其中, 所述格式转换单元 104还用于对 所述压缩包中的每个文件的格式进行转换。
在该技术方案中, 针对分享文件为压缩包的情况, 可以对压缩包进行解压, 对其 中的每个子文件都进行转换, 避免了第二终端在接收到压缩包并解压之后, 无法打开 其中的一个或多个子文件, 确保了分享文件中的每个子文件都可以被第二终端进行处 理。 当然, 分享文件的子文件也可能为压缩包, 因而可以对其中的子文件做进一步的 解压和格式转换处理; 而针对子文件为压缩包的情况下, 该压缩包中的文件仍然可能 为压缩包, 则可以对所有压缩包都进行解压和格式转换, 从而确保第二终端能够有效 处理所有这些文件。
在上述技术方案中, 优选地, 还包括: 文件打包单元 1 16 , 用于按照所述第一终 端分享的文件的内容结构, 对所有转换后的文件重新打包; 其中, 所述文件传输单元 106还用于将所述文件打包单元 1 16 生成的压缩包作为转换后的文件传输至所述第二 终端。
在该技术方案中, 同一个压缩包中的文件之间通常存在关联性, 通过将转换后的 一个或多个文件重新打包传输至第二终端, 确保转换后的文件能够保留分享文件中各 个文件之间的关联性。 当然, 若第二终端无法对压缩包进行处理, 则也可以不对解压 缩后的文件进行重新打包。
在上述技术方案中, 优选地, 所述文件传输单元 106还用于: 将未被所述格式转 换单元 104处理过的、 所述第一终端需要分享的文件传输至所述第二终端。
在该技术方案中, 通过将转换之前的分享文件传输至第二终端, 可以使第二终端 对原始的分享文件进行保存, 以便分享至其他终端或在第二终端安装了处理分享文件 的应用程序之后, 对原始的分享文件进行处理。 由于格式转换过程可能造成数据的丢 失、 损坏等, 因而对原始的分享文件的下载, 有助于第二终端更好地进行处理。
在上述技术方案中, 优选地, 还包括: 指令接收单元 1 18 , 用于接收所述第二终 端发送的文件获取指令, 其中, 所述第二终端在检测到其的屏幕界面上显示的对应于 所述第一终端分享的文件的标识发生预设操作的情况下, 发出所述文件获取指令; 其 中, 所述格式转换单元 104还用于在所述指令接收单元 1 18接收到所述文件获取指令 的情况下, 对相应的文件执行所述转换的操作。
在该技术方案中, 由于第二终端的用户不一定对第一终端分享的文件感兴趣, 或 者当前环境下不一定适合第二终端对分享文件或格式转换后的文件进行下载 (比如数 据流量有限或网络速度过慢等) , 服务器可以先不对分享文件进行转换处理和传输, 而通过显示相应的标识 (比如可以对分享文件的名称进行突出显示, 或者在分享文件 对应的位置上显示气泡框提示有分享文件) , 在检测到需要对分享文件进行处理时, 即检测到针对标识的预设操作 (比如触屏点击、 在第二终端的屏幕界面上执行预设的 操作手势、 按压终端上指定的物理按键等) , 进而对分享文件进行转换, 有利于对分 享文件转换时机的控制, 提高了系统的灵活性, 避免浪费流量和时间。
图 2示出了根据本发明的实施例的文件分享方法的流程图。
如图 2 所述, 根据本发明的实施例的文件分享方法, 包括: 步骤 202 , 获取第一 终端需要分享至第二终端的文件; 步骤 204 , 判断所述文件的格式是否需要转换; 步 骤 206 , 若需要, 则对所述文件执行格式转换, 以得到转换后的文件; 步骤 208 , 将 所述转换后的文件传输至所述第二终端; 步骤 210 , 若不需要, 则直接将所述文件传 输至所述第二终端。
在该技术方案中, 通过将第一终端分享至第二终端的文件进行格式转换 (为便于 描述, 本申请中将第一终端分享至第二终端的文件称为分享文件) , 使得第二终端在 未安装处理分享文件的应用程序时, 也能够通过转换后的文件实现相应的处理操作, 比如查看或编辑分享文件中的内容。 通过对分享文件的格式转换, 避免了用户因未安 装处理分享文件的应用程序而无法进行处理的问题, 同时也避免了用户下载用于处理 分享文件的应用程序而造成时间和流量的浪费。 其中, 通用的文件格式可以是文本、 图片等所有终端一定能够进行处理的格式。 在转换的过程中, 可以根据分享文件的内 容选择转换后的文件格式 (选择的过程可以是系统自动执行, 也可以是终端做出相应 的提示, 而由用户进行选择) , 比如针对一篇只包含文本内容的 PDF文档, 则可以直 接转换为文本(如 .txt或. doc ) 形式, 以节省转换的时间, 而对于包含了大量的表格的 PDF文档, 则可以将 PDF文档转换为图片格式, 以便于用户的查看。
其中, 分享文件可以是第一终端实时传输至服务器并转发给第二终端的, 也可以 是第一终端事先存储在服务器或其他云端存储空间内的, 并实时向服务器指示发送该 分享文件。
在上述技术方案中, 优选地, 还包括: 获取所述第二终端中已安装的应用程序的 信息; 以及所述判断所述文件的格式是否需要转换的过程包括: 根据所述应用程序的 信息, 判断所述第二终端是否可以处理所述第一终端分享的文件; 其中, 若不能, 则 将所述文件的格式转换为通用文件格式, 否则直接将所述文件传输至所述第二终端。
在该技术方案中, 通过对第二终端中已安装的应用程序能否处理分享文件进行判 断, 可以在第二终端能够处理分享文件的情况下, 直接下载分享文件并进行处理, 无 需盲目地对分享文件进行转换, 有利于降低服务器的运算负荷, 并缩短用户等待的时 间。 通过将分享文件的格式转换为通用格式, 从而使得第二终端无需安装专门的工具 或软件, 即可直接对分享文件进行处理操作, 避免了用户下载用于处理分享文件的应 用程序而造成时间和流量的浪费。 同时, 由于第二终端处理的是原文件, 因此避免了 分享文件在转换过程中可能出现的错误, 提高了分享文件中数据的准确性。
在上述技术方案中, 优选地, 还包括: 按照预设周期或在得知所述第一终端需要 向所述第二终端分享所述文件时, 向所述第二终端请求获取其已安装的应用程序的信 息; 其中, 若请求失败, 则使用存储的所述第二终端的历史应用程序信息; 若请求成 功, 则将所述历史应用程序信息替换为最新获得的已安装的应用程序的信息。
在该技术方案中, 按照预设的周期对第二终端中已安装的应用程序进行获取, 有 助于定期更新历史应用程序信息, 确保对是否需要进行格式转换的判断的准确性; 同 时, 通过定期主动索取已安装的应用程序的信息, 使得即便有时无法对第二终端进行 信息获取, 也可以利用已存储的历史应用程序信息执行判断操作。 通过在得知第一终 端需要向第二终端分享文件时, 获取第二终端中的应用程序信息, 可以更加准确地对 第二终端能否处理分享文件的能力进行判断, 以确定是否需要对分享文件进行转换, 避免第二终端内的应用程序更新造成判断结果不准确。 应用程序的信息可以保存至相 应的数据库中, 在实时获取第二终端中的应用程序信息失败时, 可以使用存储在数据 库中的历史数据信息, 确保了系统的灵活性。 当然, 也可以在第二终端对自身的应用 程序信息进行更新之后, 比如删除、 增加或更新了一个或多个应用程序时, 实时将修 改后的应用程序信息同步至数据库中。
在上述技术方案中, 优选地, 还包括: 根据所述应用程序的信息, 将所述第一终 端分享的文件转换为所述第二终端中指定应用程序支持的文件格式。 在该技术方案中, 当分享文件可以被转换为多种可被第二终端支持的格式时, 通 过将分享文件转换为第二终端中指定应用程序支持的文件格式, 可以将分享文件转换 为更有利于第二终端的处理过程的格式, 从而确保了对文件的最优化处理。 比如通常 情况下, 终端支持的通用视频文件格式为 " .mp4" 格式, 对于 " .avi" 格式的视频文 件, 由于 " .rmvb" 格式的视频的画面质量高于 " .mp4" 格式的视频的画面质量, 因 此, 若终端中安装了可以处理 " .rmvb" 格式的视频文件, 则可以将 " .avi" 格式的视 频文件转换为 " .rmvb" 格式的视频文件, 以确保视频具有较好的画面质量。
在上述技术方案中, 优选地, 在判定所述第二终端无法处理所述第一终端分享的 文件时, 还包括: 提示所述第二终端下载用于处理所述文件的应用程序, 或将该应用 程序直接传输至所述第二终端。
在该技术方案中, 通过在判定第二终端无法处理分享文件时, 提示第二终端下载 相应的应用程序, 节省了用户对该应用程序的搜索时间, 并且用户可以选择下载或不 下载, 有利于增加用户的可操作性。 而通过将处理分享文件的应用程序直接传输至第 二终端, 尤其是当第二终端连接至无需流量开销的网络 (比如无线局域网) 下时, 有 利于简化用户操作步骤。 由于第二终端下载相应的应用程序需要一定的时间, 因而服 务器可以直接将转换后的通用格式的文件传输给第二终端, 使其无需等待, 立即进行 相应的处理操作; 也可以直接将分享文件传输给第二终端, 从而降低文件格式转换可 能带来的数据错误或偏差。
在上述技术方案中, 优选地, 所述应用程序的信息包括以下至少之一或其组合: 应用程序的名称、 应用程序的版本和 /或版次信息、 应用程序支持的文件格式的类型、 应用程序的权限信息。
在该技术方案中, 应用程序的名称可以作为该应用程序的唯一标识, 因而可以根 据应用程序名称了解其具体能够处理的文件格式, 确保了在调用应用程序以及获取应 用程序信息时的准确性。 但同一应用程序可能存在不同的版本, 同一版本可能存在不 同的版次, 从而导致虽然名称一致, 但仍可能导致分享文件无法被正确处理。 通常情 况下, 高版本 /版次的应用程序可以打开相应的低版本 /版次应用程序创建的文件, 但 是低版本 /版次的应用程序不能打开由高版本 /版次的应用程序创建的文件, 通过获取 应用程序的版本和 /或版次信息, 可以确保判断第二终端是否能够处理分享文件的准确 性。 一个应用程序可能支持多种文件格式, 因此获取应用程序支持的文件格式类型可 以更加全面地对第二终端是否能够处理分享文件进行判断。 有些应用程序本身可以用 于对分享文件进行处理, 但基于安全等因素的考虑, 该应用程序可能并不具有对分享 文件进行处理的权限, 因而应用程序的权限信息也对其能够处理的文件格式进行了限 制, 通过对权限信息的获取, 可以保证在应用程序没有权限处理分享文件时, 直接由 服务器进行转换, 避免了应用程序没有权限处理分享文件而盲目地下载分享文件, 提 高了对第二终端处理能力判断的全面性与准确性。
在上述技术方案中, 优选地, 当检测到所述第一终端分享的文件和 /或该文件的子 文件为压缩包时, 还包括: 对所述压缩包中的每个文件执行所述转换的步骤。
在该技术方案中, 针对分享文件为压缩包的情况, 可以对压缩包进行解压, 对其 中的每个子文件都进行转换, 避免了第二终端在接收到压缩包并解压之后, 无法打开 其中的一个或多个子文件, 确保了分享文件中的每个子文件都可以被第二终端进行处 理。 当然, 分享文件的子文件也可能为压缩包, 因而可以对其中的子文件做进一步的 解压和格式转换处理; 而针对子文件为压缩包的情况下, 该压缩包中的文件仍然可能 为压缩包, 则可以对所有压缩包都进行解压和格式转换, 从而确保第二终端能够有效 处理所有这些文件。
在上述技术方案中, 优选地, 还包括: 按照所述第一终端分享的文件的内容结 构, 对所有转换后的文件重新打包, 并将生成的压缩包作为转换后的文件传输至所述 第二终端。
在该技术方案中, 同一个压缩包中的文件之间通常存在关联性, 通过将转换后的 一个或多个文件重新打包传输至第二终端, 确保转换后的文件能够保留分享文件中各 个文件之间的关联性。 当然, 若第二终端无法对压缩包进行处理, 则也可以不对解压 缩后的文件进行重新打包。
在上述技术方案中, 优选地, 还包括: 将执行所述转换步骤之前的、 所述第一终 端需要分享的文件传输至所述第二终端。
在该技术方案中, 通过将转换之前的分享文件传输至第二终端, 可以使第二终端 对原始的分享文件进行保存, 以便分享至其他终端或在第二终端安装了处理分享文件 的应用程序之后, 对原始的分享文件进行处理。 由于格式转换过程可能造成数据的丢 失、 损坏等, 因而对原始的分享文件的下载, 有助于第二终端更好地进行处理。
在上述技术方案中, 优选地, 还包括: 在所述第二终端的屏幕界面上显示对应于 所述第一终端分享的文件的标识; 在检测到针对所述标识的预设操作时, 对相应的文 件执行所述转换的步骤, 并在所述第二终端上处理所述转换后的文件。
在该技术方案中, 由于第二终端的用户不一定对第一终端分享的文件感兴趣, 或 者当前环境下不一定适合第二终端对分享文件或格式转换后的文件进行下载 (比如数 据流量有限或网络速度过慢等) , 服务器可以先不对分享文件进行转换处理和传输, 而通过显示相应的标识 (比如可以对分享文件的名称进行突出显示, 或者在分享文件 对应的位置上显示气泡框提示有分享文件) , 在检测到需要对分享文件进行处理时, 即检测到针对标识的预设操作 (比如触屏点击、 在第二终端的屏幕界面上执行预设的 操作手势、 按压终端上指定的物理按键等) , 进而对分享文件进行转换, 有利于对分 享文件转换时机的控制, 提高了系统的灵活性, 避免浪费流量和时间。
图 3示出了根据本发明的实施例的文件分享方法的具体流程图。
如图 3所示, 根据本发明的实施例的文件分享方法, 包括:
步骤 302, 用户 A通过服务器分享文件给用户 B。
具体地, 用户 A将需要分享的文件实时传输给服务器, 或该文件也可以事先被存 储在所述服务器或其他的服务器 /云端服务器中。 服务器中还保存有用户 B 的终端的 应用列表, 以保证能够了解到用户 B的终端的应用程序信息 (能够支持哪些格式的文 件) , 应用程序信息可以由服务器定期向用户 B的自动获取, 也可以由服务器在检测 到存在需要向用户 B的终端分享文件的时候进行获取, 还可以由用户 B的终端将自身 的应用程序更新情况实时同步至服务器中。
步骤 304, 服务器根据保存的用户 B的终端的应用程序信息, 判断用户 B的终端 是否可以处理用户 A分享的文件, 若可以, 则执行步骤 306, 否则执行步骤 308。 步骤 306 , 服务器在判断用户 B 的终端可以处理分享的文件时, 将分享的文件传 输至用户 B的终端, 由用户 B的终端进行处理。
步骤 308 , 在服务器判断用户 B 的终端无法处理分享的文件时, 由服务器将分享 的文件解析为用户 B 的终端可进行处理的格式, 比如文本和 /或图片等, 还可以记录 分享的文件的部分或全部排版信息。
步骤 310 , 将服务器解析出的文本、 图片等格式的内容和部分或全部排版信息整 合保存为网页格式。 当然, 服务器在对分享的文件进行处理时, 还可以将分享文件的 格式转换为其他的多种格式, 比如终端通用的格式 (如文本或图片) 、 或者是用户 B 的终端中指定应用程序可以处理的文件格式, 并可以将这些格式的文件直接传输至用 户 B的终端。 在此以网页格式为例进行说明。
步骤 312, 服务器将上述保存的网页的地址传输至用户 B的终端, 用户 B通过访 问该网页地址, 实现对相应内容的获取和进一步处理。 此外, 用户 B可以选择还将原 始的分享文件下载保存至其终端中。
图 4示出了根据本发明的实施例的云端服务器的模块图。
如图 4所示, 根据本发明的实施例的云端服务器 400, 包括:
文件存储模块 402, 用于存储用户 A需要分享至用户 B的分享文件, 提供分享文 件给文件处理模块 406, 保证用户 B对文件的获取。
终端信息存储模块 404 , 用于存储用户 B 的终端中已安装的应用程序信息, 比如 应用程序的名称、 版本和 /或版次、 权限等, 提供该应用程序信息给文件处理模块 406, 以供文件处理模块 406 进行判断用户 B 的终端是否可以处理用户 A 的分享文 件。
文件处理模块 406, 用于根据文件存储模块 402和终端信息存储模块 404传入的 数据, 判断用户 B 的终端是否可以处理用户 A 的分享文件; 如应用程序 " Go Book" , 终端信息存储模块 404中保存了其支持打开的文件格式 (如 txt, log, ebf等 格式) , 假定用户 A的分析文件为 pdf, 若判断为无法处理, 则返回解析参数至解析 模块 408 , 若可以处理, 则将该分享文件传输至用户 B的终端。
解析模块 408 , 用于根据文件处理模块 406传入的解析参数决定是否解析文件内 容, 以及分享文件解析后的类型; 如果需要解析, 则对文件内容进行解析, 并对文件 内容进行整理, 通过转换为用户 B 的终端能够支持的文件格式, 比如 "Go Book" 能 够支持的格式, 或是其他应用程序能够支持的格式, 从而通过将格式转换后的文件传 输至用户 B的终端, 使其能够直接对该格式转换后的文件进行处理。
具体地, 比如解析模块 408 可以将对分享文件解析得到的内容保存为网页 (对于 无法解析的部分丢弃掉) , 从而通过将该网页的地址传输至用户 B的终端, 使其能够 直接浏览该原本用户 A的分享文件的内容, 并执行进一步的处理操作。
图 5A至图 5D示出了根据本发明的实施例的执行文件分享的终端界面示意图。 如图 5A所示, 用户在终端 500上看到联系人 "张三" 分享的文件 502, 若用户 需要查看分享的文件 502 , 则可以通过触屏点击 (本实施例中以触屏点击为例, 当然 也可以在终端 500的屏幕界面上执行预设的操作手势、 按压终端 500上指定的物理按 键等方式对分享的文件进行选中) 分享的文件 502 , 则服务器端对终端 500是否能够 处理分享的文件 502 进行判断, 若判定终端 500 可以处理分享的文件 502 , 则终端 500 直接下载分享的文件 502 , 并进行处理; 若判定终端 500 不能处理分享的文件 502 , 则将分享的文件 502 的格式进行转换, 可以转换为通用的文件格式, 比如文 本、 图像格式, 也可以转换为终端 500中指定应用程序能够处理的文件格式。
服务器中存储有终端 500的应用程序信息, 服务器可以据此对终端 500是否可以 处理分享的文件 502进行判断。 存储在服务器中的应用程序信息可以是服务器定期向 终端 500索取的, 也可以是服务器在检测到存在向终端 500分享的文件时, 实时向终 端 500 进行索取, 还可以由终端 500 将自身的应用程序更新情况实时同步至服务器 中。
在图 5A 中, 用户 "张三" 在某个时刻将分享的文件 502 推荐至终端 500 的用 户, 则该分享的文件 502被上传并存储至服务器 (比如此时使用 "新浪微博" 进行分 享, 则该服务器即 "新浪微博" 对应的服务器) 中。 终端 500可能立即得到提示, 也 可能在一段时间之后得到提示, 但只要分享的文件 502被存储在服务器中, 终端 500 可以在任意时刻对其进行获取。
因此, 图 5A 所示的场景为非实时的数据分享; 而本申请实际上可以用于实时的 数据分享, 具体如图 5B所示。
比如当前用户 (终端 500 的用户) 与用户 "张三" 使用即时通讯工具 (如 QQ、 微信、 飞信、 米聊等) 进行交互。 用户 "张三" 可以将当前用户进行数据分享, 比如 图 5B中分享的文件 502为 "社会心理学 .pdf' 。 用户 "张三" 可以实时在与当前用户 聊天的窗口内发送需要分享的数据, 比如分享的文件 502 , 则服务器将对该分享的文 件 502进行暂存, 以及必要时对其进行格式转换。
服务器可以在接收到分享的数据 502之后, 立即进行判断 (判断终端 500能否直 接对其进行处理) 和格式转换; 服务器也可以在接收到分享的数据 502之后立即进行 判断, 并在接收到目标对象 (比如终端 500 ) 的下载请求时, 再实时进行格式转换; 服务器还可以在接收到目标对象 (比如终端 500 ) 的下载请求时, 再实时进行判断和 格式转换。
同时, 当终端 500 的屏幕界面上显示出对应于其他用户 (如 "张三" ) 的分享数 据的内容时, 比如图 5A和图 5B中显示出 "社会心理学 .pd 时, 终端 500可以自动 向服务器请求下载相应的文件数据; 或者, 终端 500在图 5A和图 5B 中显示出 "社 会心理学. pdf' 仅仅为对应于分享的数据 502 的标识, 当用户对该标识进行操作时, 比如点击该标识, 终端 500才向服务器发送下载请求。
服务器对于分享的数据 502进行格式转换后, 得到的文件格式存在多种情况, 以 下介绍其中的两种实施方式:
实施方式一
服务器可以将分享的文件 502 的格式转换为通用格式, 即所有终端都一定能够打 开的格式, 则终端 500 必然能够进行处理。 具体地, 通用格式可以为文本、 图片、 网 页等, 可以任选其中的一种, 也可以釆用多种格式的组合。
以网页为例。 服务器可以解析出分享的文件 502 中的文本、 图片等内容, 将上述 内容整合并保存为网页格式, 然后将网页地址传输至终端 500 , 用户根据终端 500接 收到的网页地址, 打开并对转换格式后的文件进行处理, 如图 5C 所示, 在终端 500 的界面上显示的为解析后的网页内容 504。
同时, 服务器还可以对分享的文件 502 中的文本、 图片等内容的排版信息进行记 录, 并且在生成网页内容 504 时, 按照该排版信息进行排版, 以使当前用户能够尽可 能地得到与分享的文件 502的内容相符的转换后文件。
此外, 虽然本申请能够为当前用户提供格式转换后的文件, 但用户仍然可以选择 下载未经格式转换的原文件 (即分享的文件 502 ) 。 具体地, 比如用户在处理过程 中, 可以通过点击图 5C 中所示的提示按钮 506 , 从而将分享的文件 502 (图中未示 出) 下载保存至终端 500中。
实施方式二
服务器根据终端 500中的应用程序信息, 将分享的文件 502转换为指定应用程序 能够处理的文件类型。 如图 5D所示, 比如当终端 500中安装有用于处理 word文档的 应用程序 " Word " , 则服务器可以将分享的文件 502 的格式转换为应用程序 "Word" 可以处理的格式, 比如后缀为 " .doc" 的文件。 图 5D 中, 在终端 500 的界 面上显示的即为格式转换后的 word文档内容 508。
如图 5E 所示, 服务器在判断终端 500 不能处理分享的文件 502 (图中未示出) 时, 还可以在终端 500 的界面上弹出提示菜单 510 提示用户是否下载相关的应用程 序, 在用户下载安装相应的应用程序后, 可以使终端 500 再次收到相同类型的文件 时, 直接通过已安装的应用程序处理该类型的文件, 而无需进行转换, 节省了用户等 待文件转换的时间。 当然, 该提示菜单 510 并不是必须的, 服务器可以直接将相应的 应用程序推送至终端 500 , 并由终端 500进行自动安装。
以上结合附图详细说明了本发明的技术方案, 考虑到在现有技术中, 用户在看到 分享的文件时, 无法判断终端是否能够对分享的文件进行处理。 而将文件下载之后无 法处理时, 需要继续下载相应的应用程序或者对文件的格式进行转换, 繁瑣的操作严 重影响了用户的体验。 因此, 本发明提出了一种新的文件分享方案, 可以对分享的文 件等数据进行格式转换, 使得文件的接收方在未安装处理分享文件的应用程序时, 也 能够通过查看转换后的文件得知分享文件中的内容。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种服务器, 其特征在于, 包括:
文件获取单元, 用于获取第一终端需要分享至第二终端的文件;
判断单元, 用于判断所述文件的格式是否需要转换;
格式转换单元, 用于在判定所述文件的格式需要转换时, 对所述文件执行格式转 换, 以得到转换后的文件;
文件传输单元, 用于将所述转换后的文件传输至所述第二终端。
2. 根据权利要求 1所述的服务器, 其特征在于, 还包括:
信息获取单元, 用于获取所述第二终端中已安装的应用程序的信息;
其中, 所述判断单元用于根据所述应用程序的信息, 判断所述第二终端是否可以 处理所述第一终端分享的文件, 若不能处理, 则判定所述文件的格式需要转换, 并由 所述格式转换单元将所述文件的格式转换为通用文件格式, 否则判定所述文件的格式 不需要转换, 并由所述文件传输单元直接将所述文件传输至所述第二终端。
3. 根据权利要求 2 所述的服务器, 其特征在于, 所述信息获取单元按照预设周 期或在得知所述第一终端需要向所述第二终端分享所述文件的情况下, 向所述第二终 端请求获取其已安装的应用程序的信息;
其中, 若请求失败, 则所述判断单元使用所述服务器存储的所述第二终端的历史 应用程序信息进行判断;
若请求成功, 则所述服务器将所述历史应用程序信息替换为最新获得的已安装的 应用程序的信息。
4. 根据权利要求 2所述的服务器, 其特征在于, 所述格式转换单元还用于: 根据所述应用程序的信息, 将所述第一终端分享的文件转换为所述第二终端中指 定应用程序支持的文件格式。
5. 根据权利要求 2所述的服务器, 其特征在于,
所述文件传输单元在所述判断单元判定所述第二终端无法处理所述第一终端分享 的文件的情况下, 将用于处理所述文件的应用程序直接传输至所述第二终端;
或所述服务器还包括: 提示单元, 用于在所述判断单元判定所述第二终端无法处 理所述第一终端分享的文件的情况下, 提示所述第二终端下载用于处理所述文件的应 用程序。
6. 根据权利要求 2 所述的服务器, 其特征在于, 所述应用程序的信息包括以下 至少之一或其组合:
应用程序的名称、 应用程序的版本和 /或版次信息、 应用程序支持的文件格式的类 型、 应用程序的权限信息。
7. 根据权利要求 1至 6中任一项所述的服务器, 其特征在于, 还包括: 检测单元, 用于检测所述第一终端分享的文件和 /或该文件的子文件是否为压缩 包;
其中, 所述格式转换单元还用于对所述压缩包中的每个文件的格式进行转换。
8. 根据权利要求 7所述的服务器, 其特征在于, 还包括:
文件打包单元, 用于按照所述第一终端分享的文件的内容结构, 对所有转换后的 文件重新打包;
其中, 所述文件传输单元还用于将所述文件打包单元生成的压缩包作为转换后的 文件传输至所述第二终端。
9. 根据权利要求 1 至 6 中任一项所述的服务器, 其特征在于, 所述文件传输单 元还用于:
将未被所述格式转换单元处理过的、 所述第一终端需要分享的文件传输至所述第 二终端。
10. 根据权利要求 1至 6中任一项所述的服务器, 其特征在于, 还包括: 指令接收单元, 用于接收所述第二终端发送的文件获取指令, 其中, 所述第二终 端在检测到其的屏幕界面上显示的对应于所述第一终端分享的文件的标识发生预设操 作的情况下, 发出所述文件获取指令;
其中, 所述格式转换单元还用于在所述指令接收单元接收到所述文件获取指令的 情况下, 对相应的文件执行所述转换的操作。
1 1. 一种文件分享方法, 其特征在于, 包括:
获取第一终端需要分享至第二终端的文件;
判断所述文件的格式是否需要转换;
若需要, 则对所述文件执行格式转换, 以得到转换后的文件;
将所述转换后的文件传输至所述第二终端。
12. 根据权利要求 1 1所述的文件分享方法, 其特征在于, 还包括:
获取所述第二终端中已安装的应用程序的信息; 以及
所述判断所述文件的格式是否需要转换的过程包括: 根据所述应用程序的信息, 判断所述第二终端是否可以处理所述第一终端分享的文件;
其中, 若不能, 则将所述文件的格式转换为通用文件格式, 否则直接将所述文件 传输至所述第二终端。
13. 根据权利要求 12所述的文件分享方法, 其特征在于, 还包括:
按照预设周期或在得知所述第一终端需要向所述第二终端分享所述文件时, 向所 述第二终端请求获取其已安装的应用程序的信息;
其中, 若请求失败, 则使用存储的所述第二终端的历史应用程序信息; 若请求成功, 则将所述历史应用程序信息替换为最新获得的已安装的应用程序的 信息。
14. 根据权利要求 12所述的文件分享方法, 其特征在于, 还包括: 根据所述应用程序的信息, 将所述第一终端分享的文件转换为所述第二终端中指 定应用程序支持的文件格式。
15. 根据权利要求 12 所述的文件分享方法, 其特征在于, 在判定所述第二终端 无法处理所述第一终端分享的文件时, 还包括:
提示所述第二终端下载用于处理所述文件的应用程序, 或将该应用程序直接传输 至所述第二终端。
16. 根据权利要求 12 所述的文件分享方法, 其特征在于, 所述应用程序的信息 包括以下至少之一或其组合:
应用程序的名称、 应用程序的版本和 /或版次信息、 应用程序支持的文件格式的类 型、 应用程序的权限信息。
17. 根据权利要求 1 1至 16中任一项所述的文件分享方法, 其特征在于, 当检测 到所述第一终端分享的文件和 /或该文件的子文件为压缩包时, 还包括:
对所述压缩包中的每个文件执行所述转换的步骤。
18. 根据权利要求 17所述的文件分享方法, 其特征在于, 还包括:
按照所述第一终端分享的文件的内容结构, 对所有转换后的文件重新打包, 并将 生成的压缩包作为转换后的文件传输至所述第二终端。
19. 根据权利要求 1 1 至 16 中任一项所述的文件分享方法, 其特征在于, 还包 括:
将执行所述转换步骤之前的、 所述第一终端需要分享的文件传输至所述第二终 端。
20. 根据权利要求 1 1 至 16 中任一项所述的文件分享方法, 其特征在于, 还包 括:
在所述第二终端的屏幕界面上显示对应于所述第一终端分享的文件的标识; 在检测到针对所述标识的预设操作时, 对相应的文件执行所述转换的步骤, 并在 所述第二终端上处理所述转换后的文件。
PCT/CN2013/082558 2013-08-29 2013-08-29 服务器和文件分享方法 WO2015027430A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/082558 WO2015027430A1 (zh) 2013-08-29 2013-08-29 服务器和文件分享方法
CN201380069030.1A CN104885432A (zh) 2013-08-29 2013-08-29 服务器和文件分享方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/082558 WO2015027430A1 (zh) 2013-08-29 2013-08-29 服务器和文件分享方法

Publications (1)

Publication Number Publication Date
WO2015027430A1 true WO2015027430A1 (zh) 2015-03-05

Family

ID=52585406

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082558 WO2015027430A1 (zh) 2013-08-29 2013-08-29 服务器和文件分享方法

Country Status (2)

Country Link
CN (1) CN104885432A (zh)
WO (1) WO2015027430A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707450A (zh) * 2017-08-22 2018-02-16 努比亚技术有限公司 一种传输文件的方法、装置和计算机可读存储介质
WO2023200395A1 (en) * 2022-04-11 2023-10-19 Envision Digital International Pte. Ltd. Method and apparatus for transmitting data, device and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929233B (zh) * 2019-11-22 2022-11-15 连尚(新昌)网络科技有限公司 信息处理方法和装置
CN113037790B (zh) * 2019-12-09 2023-05-16 北京中关村科金技术有限公司 一种文件处理方法、装置和存储介质
CN115002543B (zh) * 2021-12-23 2023-03-31 荣耀终端有限公司 视频分享方法、电子设备、存储介质
CN115002537B (zh) * 2021-12-23 2023-06-16 荣耀终端有限公司 视频分享方法、电子设备、存储介质和程序产品
CN115310065B (zh) * 2022-10-09 2023-02-17 北京金堤科技有限公司 文件生成方法和装置、及存储介质和电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163087A (zh) * 2006-10-13 2008-04-16 风网科技(北京)有限公司 一种共享移动终端视频文件的系统和方法
CN101340464A (zh) * 2008-08-22 2009-01-07 中国电信股份有限公司 网络资源统一管理方法及系统
CN102571726A (zh) * 2010-12-23 2012-07-11 中国移动通信集团广东有限公司 多媒体数据共享的方法、系统及状态判定服务器

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163087A (zh) * 2006-10-13 2008-04-16 风网科技(北京)有限公司 一种共享移动终端视频文件的系统和方法
CN101340464A (zh) * 2008-08-22 2009-01-07 中国电信股份有限公司 网络资源统一管理方法及系统
CN102571726A (zh) * 2010-12-23 2012-07-11 中国移动通信集团广东有限公司 多媒体数据共享的方法、系统及状态判定服务器

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707450A (zh) * 2017-08-22 2018-02-16 努比亚技术有限公司 一种传输文件的方法、装置和计算机可读存储介质
WO2023200395A1 (en) * 2022-04-11 2023-10-19 Envision Digital International Pte. Ltd. Method and apparatus for transmitting data, device and storage medium

Also Published As

Publication number Publication date
CN104885432A (zh) 2015-09-02

Similar Documents

Publication Publication Date Title
WO2015027430A1 (zh) 服务器和文件分享方法
JP5792850B2 (ja) ネットワーク上でのファイルフォルダ送信
RU2689439C2 (ru) Улучшение производительности веб-доступа
EP2866420B1 (en) Method and device for content synchronization
CN109582644B (zh) 文件存储方法、装置、设备及计算机可读存储介质
EP2901661B1 (en) Terminal and method for transmitting and receiving data
US20070049258A1 (en) System and method of mobile to desktop document interaction using really simple syndication
US8468262B2 (en) Method and apparatus for updating http content descriptions
US20140047322A1 (en) Method and system for browsing things of internet of things on ip using web platform
US20140095673A1 (en) Systems and methods for transmitting and receiving data
US20150227496A1 (en) Method and system for microblog resource sharing
US20240036774A1 (en) Printing method and apparatus, and electronic device
EP2701083B1 (en) Method, apparatus and system for auto-synchronization of compressed content files
WO2013130887A2 (en) Integrated messaging
WO2014012449A1 (zh) 桌面同步方法、装置、处理中心及系统
CN108093015B (zh) 文件传输系统
CN109510754B (zh) 在线文档生成方法、装置、系统和电子设备
WO2017114190A1 (zh) 一种文件上传处理方法及装置
JP2017504912A (ja) ページオペレーション処理方法および装置、ならびに端末
US9270776B2 (en) Dynamically adjusting delivery of content between terminal device and server
CN102110144B (zh) 文档访问方法和文档访问装置
KR101724076B1 (ko) 사용자 서버를 이용한 html 제어 시스템 및 방법
KR20100003501A (ko) 서버에 등록된 사용자 설정 정보의 이동 제어 방법 및시스템
WO2014169497A1 (en) Method and server for pushing media file
KR101703963B1 (ko) 캐시 서버를 이용한 멀티미디어 서비스를 제공하는 방법 및 시스템

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: 13892733

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: 13892733

Country of ref document: EP

Kind code of ref document: A1