CN104885432A - Server and file sharing method - Google Patents

Server and file sharing method Download PDF

Info

Publication number
CN104885432A
CN104885432A CN201380069030.1A CN201380069030A CN104885432A CN 104885432 A CN104885432 A CN 104885432A CN 201380069030 A CN201380069030 A CN 201380069030A CN 104885432 A CN104885432 A CN 104885432A
Authority
CN
China
Prior art keywords
file
terminal
application program
information
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201380069030.1A
Other languages
Chinese (zh)
Inventor
赵浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of CN104885432A publication Critical patent/CN104885432A/en
Pending legal-status Critical Current

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

Abstract

The present invention provides a server. The server comprises: a file obtaining unit, for obtaining a file of a first terminal that needs to be shared with a second terminal; a judging unit, for judging whether the file requires format conversion or not; a format conversion unit, for converting the format of the file to obtain the converted file when judging that the file format needs to be converted; and a file transmission unit, for transmitting the converted file to the second terminal. Also provided in the present invention is a file sharing method. Through the technical solution of the present invention, the format of data such as shared file and the like can be converted, so that a file receiving party can still be made aware of the content of the shared file by viewing the converted file even when an application program for processing shared file is not installed.

Description

Server and file sharing method
Server and sharing files method
Technical field
The present invention relates to technical field of data processing, in particular to a kind of server and a kind of sharing files method.Background technology
In the prior art, by server or cloud server, the data transfer between multiple terminals can be realized and shared, such as a side sends data to server or cloud server, and forwards the data to the opposing party by server or cloud server.Server or cloud server can also realize other functions such as storage and Backup and Restore of data.But the data of the opposing party are shared with for a side, such as document, picture, video etc., the data that user obtains, which are that other side is actual, to be shared, then when the ability for not having that the data shared can be handled in the terminal by the side of sharing, such as it is fitted without corresponding application program, then also need to download corresponding application program or the form to file is changed, numerous Suo operation has had a strong impact on the experience of user.The content of the invention
The present invention is based at least one of above-mentioned technical problem, propose a kind of new sharing files scheme, the data such as the file shared can be entered with row format conversion, so that the recipient of file is when non-installation process shares the application program of file, also can be by checking that the file after conversion learns the content shared in file.
In view of this, the present invention proposes a kind of server, including:File obtaining unit, needs to share to the file of second terminal for obtaining first terminal;Judging unit, for judging whether the form of the file needs conversion;Format conversion unit, for needing during conversion, the file to be performed form conversion, with the file after being changed in the form for judging the file;File transmission unit, for the file after the conversion to be transmitted to the second terminal.
In the technical scheme, changed by the way that the file that first terminal is shared to second terminal is entered into row format(For ease of description, the file that first terminal is shared to second terminal is referred to as sharing file in the application)So that second terminal can realize that corresponding processing is operated, such as views or edits the content shared in file when non-installation process shares the application program of file, also by the file after conversion.Pass through and the form for sharing file is changed, it is to avoid the problem of user can not be handled because of the application program that non-installation process shares file, while it also avoid user downloads waste for handling the application program for sharing file and causing time and flow.
In the above-mentioned technical solutions, it is preferable that also include:Information acquisition unit, the information for obtaining mounted application program in the second terminal;Wherein, the judging unit is used for the information according to the application program, judge whether the second terminal can handle the file that the first terminal is shared, if can not handle, then judging the form of the file needs conversion, and the form of the file is converted into file format by the format conversion unit, otherwise judging the form of the file need not change, and directly be transmitted the file to the second terminal by the file transmission unit.
In the technical scheme, share file by that can handle mounted application program in second terminal and sentence It is disconnected, it can directly download in the case where second terminal can handle and share file and share file and handled, without blindly being changed to sharing file, advantageously reduce the computational load of server, and shorten the time of user's wait.By the way that the form for sharing file is converted into general format, so that second terminal need not install special instrument or software, directly processing operation can be carried out to sharing file, it is to avoid user downloads the waste for handling the application program for sharing file and causing time and flow.Simultaneously as second terminal processing is original, therefore avoids and share the mistake that file is likely to occur in transfer process, improve the accuracy for sharing data in file.
In the above-mentioned technical solutions, preferably, described information acquiring unit is according to predetermined period or in the case where learning that the first terminal needs to share the file to the second terminal, to the information of its mounted application program of second terminal acquisition request;Wherein, if request failure, the judging unit is judged using the history application information of the second terminal of the server storage;If asking successfully, the server replaces with the history application information information of the mounted application program of newest acquisition.
In the technical scheme, mounted application program in second terminal is obtained according to the default cycle, helps to regularly update history application information, it is ensured that to whether need into row format change judgement accuracy;Meanwhile, by the information for periodically actively asking for mounted application program so that even if sometimes acquisition of information can not be carried out to second terminal, it can also be performed using the history application information stored and judge operation.By when learning that first terminal needs to share file to second terminal, obtain the application information in second terminal, more accurately can second terminal can be handled and share the ability of file and judge, to determine the need for changing to sharing file, it is to avoid the application program update in second terminal causes judged result inaccurate.The information of application program can be preserved into corresponding database, in the application information failure in obtaining second terminal in real time, can use the historical data information being stored in database, it is ensured that the flexibility of system.It is of course also possible to which when after second terminal is updated to the application information of itself, such as deleting, increasing or have updated one or more application programs, amended application information is synchronized in database in real time.
In the above-mentioned technical solutions, it is preferable that the format conversion unit is additionally operable to:According to the information of the application program, the file that the first terminal is shared is converted into the file format that specified application is supported in the second terminal.
In the technical scheme, when share file can be converted into it is a variety of can be supported by second terminal form when, the file format that specified application is supported in second terminal is converted to by the way that file will be shared, it can will share file and be converted to the form for the processing procedure for being more beneficial for second terminal, ensure that the optimization processing to file.
In the above-mentioned technical solutions, preferably, the file transmission unit will be directly transferred to the second terminal in the case where the judging unit judges that the second terminal can not handle the file that the first terminal is shared for handling the application program of the file;Or the server also includes:Tip element, in the case where the judging unit judges that the second terminal can not handle the file that the first terminal is shared, pointing out the second terminal to download the application program for handling the file.
In the technical scheme, by when judgement second terminal can not handle and share file, pointing out second terminal to download corresponding application program, saving search time of the user to the application program, and user can select to download or do not download, be conducive to increasing the operability of user.And second terminal is directly transferred to by the way that the application program for sharing file will be handled, especially when second terminal is connected to the network without traffic overhead(Such as WLAN)When lower, be conducive to simplifying user's operating procedure.Downloading corresponding application program due to second terminal needs the regular hour, thus the file of the general format after conversion directly can be transferred to second terminal by server, makes it without waiting for carrying out immediately Corresponding processing operation;It can also will directly share file and be transferred to second terminal, so as to reduce error in data or the deviation that file format conversion may be brought.
In the above-mentioned technical solutions, it is preferable that the information of the application program includes at least one of or its combination:The type for the file format that the title of application program, the version of application program and/or release's information, application program are supported, the authority information of application program.
In the technical scheme, the title of application program can as the application program unique mark, its file format that can specifically handle thus can be understood according to application name, it is ensured that the accuracy when calling application program and obtaining application information.But same application there may be different versions, same version there may be different releases, although so as to cause title consistent, may still result in and share file and can not be correctly processed.Under normal circumstances, the application program of highest version/release can open the file that corresponding lowest version/release's application program is created, but the application program of lowest version/release can not be opened by the file of the application program establishment of highest version/release, by the version and/or release's information that obtain application program, it can be ensured that judge whether second terminal can handle the accuracy for sharing file.One application program may support a variety of file formats, therefore obtain the file format type that application program supports and whether second terminal can be handled more fully hereinafter and share file and judge.Some application programs can be used for handling sharing file in itself, but based on the consideration of the factors such as safety, the application program may and not have to sharing the authority that file is handled, thus the authority information of application program is also limited its file format that can be handled, pass through the acquisition to authority information, it can ensure when application program does not have authority processing to share file, directly changed by server, avoiding application program does not have authority processing to share file and blindly download and share file, improve the comprehensive and accuracy judged second terminal disposal ability.
In the above-mentioned technical solutions, it is preferable that also include:Detection unit, for detecting whether the subfile of file that the first terminal shares and/or this document is compressed package;Wherein, the format conversion unit is additionally operable to change the form of each file in the compressed package.
In the technical scheme, for sharing the situation that file is compressed package, compressed package can be decompressed, each subfile therein is changed, second terminal is avoided after receiving compressed package and decompressing, one or more of subfiles can not be opened, it is ensured that each subfile shared in file can be handled by second terminal.Certainly, the subfile for sharing file may also be compressed package, thus subfile therein can be decompressed further and format conversion processing;And in the case of being compressed package for subfile, the file in the compressed package still may be compressed package, then all compressed packages can all be decompressed and form conversion, so that it is guaranteed that second terminal can effectively handle all these files.
In the above-mentioned technical solutions, it is preferable that also include:File packaged unit, for the content structure for the file shared according to the first terminal, is repacked to the file after all conversions;Wherein, the file transmission unit is additionally operable to as the file after conversion transmit the compressed package that the file packaged unit is generated to the second terminal.
In the technical scheme, generally there is relevance between file in same compressed package, transmitted by the way that one or more files after conversion are repacked to second terminal, it is ensured that the file after conversion can retain the relevance shared between the file of each in file.Certainly, if second terminal can not be handled compressed package, the file after decompression can not also be repacked.
In the above-mentioned technical solutions, it is preferable that the file transmission unit is additionally operable to:The file shared is needed to transmit to the second terminal first terminal do not treated by the format conversion unit, described.
In the technical scheme, by the way that the file of sharing before conversion is transmitted to second terminal, second terminal can be made Original file of sharing is preserved, to share to other-end or after second terminal is mounted with to handle and shares the application program of file, original file of sharing to be handled.Because form transfer process is likely to result in loss, damage of data etc., thus to the original download for sharing file, second terminal is contributed to preferably to be handled.
In the above-mentioned technical solutions, it is preferable that also include:Instruction reception unit, for receiving the file acquisition instruction that the second terminal is sent, wherein, in the case that predetermined registration operation occurs for the mark for corresponding to the file that the first terminal is shared that the second terminal is shown on the screen interface for detecting it, the file acquisition instruction is sent;Wherein, the format conversion unit is additionally operable to, in the case where the instruction reception unit receives the file acquisition instruction, perform corresponding file the operation of the conversion.
In the technical scheme, second terminal is not necessarily adapted to because the file that the user of second terminal not necessarily shares to first terminal is interested, or under current environment and is downloaded to sharing the file after file or form conversion(Such as data traffic is limited or network speed is excessively slow etc.), server first can not carry out conversion process and transmission to sharing file, and pass through the corresponding mark of display(The title for sharing file can such as be highlighted, or show that the prompting of bubble frame has on the corresponding position of file is shared and share file), detect need handle sharing file when, that is, detect for identify predetermined registration operation(Physical button that such as touch screen clicks on, perform on the screen interface of second terminal default operating gesture, specify in pressing terminal etc.), and then changed to sharing file, be conducive to the control to sharing file conversion opportunity, improve the flexibility of system, it is to avoid waste flow and time.
According to another aspect of the present invention, it is also proposed that a kind of sharing files method, including:Obtaining first terminal needs to share to the file of second terminal;Whether need conversion, if desired, form conversion is then performed to the file, with the file after being changed if judging the form of the file;File after the conversion is transmitted to the second terminal.
In the technical scheme, changed by the way that the file that first terminal is shared to second terminal is entered into row format(For ease of description, the file that first terminal is shared to second terminal is referred to as sharing file in the application)So that second terminal can realize that corresponding processing is operated, such as views or edits the content shared in file when non-installation process shares the application program of file, also by the file after conversion.Pass through and the form for sharing file is changed, it is to avoid the problem of user can not be handled because of the application program that non-installation process shares file, while it also avoid user downloads waste for handling the application program for sharing file and causing time and flow.Wherein, general file format can be the form that all terminals such as text, picture can necessarily be handled.During conversion, the file format after being changed according to the content selection for sharing file(The process of selection can be that system is performed automatically or terminal makes corresponding prompting, and be selected by user), such as a PDF document for only including content of text, then can be converted directly into text(Such as .txt or doc) form, to save the time of conversion, and for containing the PDF document of substantial amounts of form, then PDF document can be converted to picture format, in order to checking for user.
In the above-mentioned technical solutions, it is preferable that also include:Obtain the information of mounted application program in the second terminal;And whether the form for judging the file needs the process of conversion to include:According to the information of the application program, judge whether the second terminal can handle the file that the first terminal is shared;Wherein, if can not, the form of the file is converted into file format, otherwise directly transmitted the file to the second terminal.
In the technical scheme, share file by that can handle mounted application program in second terminal and judge, can be in the case where second terminal can handle and share file, directly download and share file and handled, without blindly being changed to sharing file, the computational load of server is advantageously reduced, and shortens the time of user's wait.By the way that the form for sharing file is converted into general format, so that second terminal need not install special instrument or software, you can directly carry out processing operation to sharing file, it is to avoid user download for handle share file should The waste of time and flow is caused with program.Simultaneously as second terminal processing is original, therefore avoids and share the mistake that file is likely to occur in transfer process, improve the accuracy for sharing data in file.
In the above-mentioned technical solutions, it is preferable that also include:According to predetermined period or when learning that the first terminal needs to share the file to the second terminal, to the information of its mounted application program of second terminal acquisition request;Wherein, if request failure, uses the history application information of the second terminal of storage;If asking that the history application information is successfully replaced with to the information of the mounted application program of newest acquisition.
In the technical scheme, mounted application program in second terminal is obtained according to the default cycle, helps to regularly update history application information, it is ensured that to whether need into row format change judgement accuracy;Meanwhile, by the information for periodically actively asking for mounted application program so that even if sometimes acquisition of information can not be carried out to second terminal, it can also be performed using the history application information stored and judge operation.By when learning that first terminal needs to share file to second terminal, obtain the application information in second terminal, more accurately can second terminal can be handled and share the ability of file and judge, to determine the need for changing to sharing file, it is to avoid the application program update in second terminal causes judged result inaccurate.The information of application program can be preserved into corresponding database, in the application information failure in obtaining second terminal in real time, can use the historical data information being stored in database, it is ensured that the flexibility of system.
In the above-mentioned technical solutions, it is preferable that also include:According to the information of the application program, the file that the first terminal is shared is converted into the file format that specified application is supported in the second terminal.
In the technical scheme, when share file can be converted into it is a variety of can be supported by second terminal form when, the file format that specified application is supported in second terminal is converted to by the way that file will be shared, it can will share file and be converted to the form for the processing procedure for being more beneficial for second terminal, ensure that the optimization processing to file.
In the above-mentioned technical solutions, it is preferable that when judging that the second terminal can not handle the file that the first terminal is shared, in addition to:Point out the second terminal to download the application program for handling the file, or the application program is directly transferred to the second terminal.
In the technical scheme, by when judgement second terminal can not handle and share file, pointing out second terminal to download corresponding application program, saving search time of the user to the application program, and user can select to download or do not download, be conducive to increasing the operability of user.And second terminal is directly transferred to by the way that the application program for sharing file will be handled, especially when second terminal is connected to the network without traffic overhead(Such as WLAN)When lower, be conducive to simplifying user's operating procedure.Downloading corresponding application program due to second terminal needs the regular hour, thus the file of the general format after conversion directly can be transferred to second terminal by server, make it without waiting for the corresponding processing operation of progress immediately;It can also will directly share file and be transferred to second terminal, so as to reduce error in data or the deviation that file format conversion may be brought.
In the above-mentioned technical solutions, it is preferable that the information of the application program includes at least one of or its combination:The type for the file format that the title of application program, the version of application program and/or release's information, application program are supported, the authority information of application program.
In the technical scheme, the title of application program can as the application program unique mark, its file format that can specifically handle thus can be understood according to application name, it is ensured that the accuracy when calling application program and obtaining application information.But same application there may be different versions, same version there may be different releases, although so as to cause title consistent, may still result in and share file and can not be correctly processed.Under normal circumstances, the application program of highest version/release can open the file that corresponding lowest version/release's application program is created, but It is that the application program of lowest version/release can not open the file created by the application program of highest version/release, by the version and/or release's information that obtain application program, it can be ensured that judge whether second terminal can handle the accuracy for sharing file.One application program may support a variety of file formats, therefore obtain the file format type that application program supports and whether second terminal can be handled more fully hereinafter and share file and judge.Some application programs can be used for handling sharing file in itself, but based on the consideration of the factors such as safety, the application program may and not have to sharing the authority that file is handled, thus the authority information of application program is also limited its file format that can be handled, pass through the acquisition to authority information, it can ensure when application program does not have authority processing to share file, directly changed by server, avoiding application program does not have authority processing to share file and blindly download and share file, improve the comprehensive and accuracy judged second terminal disposal ability.
In the above-mentioned technical solutions, it is preferable that when the subfile for detecting file that the first terminal shares and/or this document is compressed package, in addition to:The step of conversion is performed to each file in the compressed package.
In the technical scheme, for sharing the situation that file is compressed package, compressed package can be decompressed, each subfile therein is changed, second terminal is avoided after receiving compressed package and decompressing, one or more of subfiles can not be opened, it is ensured that each subfile shared in file can be handled by second terminal.Certainly, the subfile for sharing file may also be compressed package, thus subfile therein can be decompressed further and format conversion processing;And in the case of being compressed package for subfile, the file in the compressed package still may be compressed package, then all compressed packages can all be decompressed and form conversion, so that it is guaranteed that second terminal can effectively handle all these files.
In the above-mentioned technical solutions, it is preferable that also include:The content structure for the file shared according to the first terminal, is repacked to the file after all conversions, and is transmitted the compressed package of generation as the file after conversion to the second terminal.
In the technical scheme, generally there is relevance between file in same compressed package, transmitted by the way that one or more files after conversion are repacked to second terminal, it is ensured that the file after conversion can retain the relevance shared between the file of each in file.Certainly, if second terminal can not be handled compressed package, the file after decompression can not also be repacked.
In the above-mentioned technical solutions, it is preferable that also include:The file shared is needed to transmit to the second terminal first terminal before performing the switch process, described.
In the technical scheme, by the way that the file of sharing before conversion is transmitted to second terminal, second terminal can be made to preserve original file of sharing, to share to other-end or after second terminal is mounted with to handle and shares the application program of file, original file of sharing to be handled.Because form transfer process is likely to result in loss, damage of data etc., thus to the original download for sharing file, second terminal is contributed to preferably to be handled.
In the above-mentioned technical solutions, it is preferable that also include:Display corresponds to the mark for the file that the first terminal is shared on the screen interface of the second terminal;When detecting the predetermined registration operation for the mark, the step of conversion is performed to corresponding file, and handle in the second terminal file after the conversion.
In the technical scheme, second terminal is not necessarily adapted to because the file that the user of second terminal not necessarily shares to first terminal is interested, or under current environment and is downloaded to sharing the file after file or form conversion(Such as data traffic is limited or network speed is excessively slow etc.), server first can not carry out conversion process and transmission to sharing file, and pass through the corresponding mark of display(The title for sharing file can such as be highlighted, or show that the prompting of bubble frame has on the corresponding position of file is shared and share file), detect need handle sharing file when, Detect the predetermined registration operation for mark(Physical button that such as touch screen clicks on, perform on the screen interface of second terminal default operating gesture, specify in pressing terminal etc.), and then changed to sharing file, be conducive to the control to sharing file conversion opportunity, improve the flexibility of system, it is to avoid waste flow and time.
By above technical scheme, row format conversion can be entered to data such as the files shared so that the recipient of file, also can be by checking that the file after conversion learns the content shared in file when non-installation process shares the application program of file.Brief description of the drawings
Fig. 1 shows the block diagram of server according to an embodiment of the invention;
Fig. 2 shows the flow chart of sharing files method according to an embodiment of the invention;
Fig. 3 shows the particular flow sheet of sharing files method according to an embodiment of the invention;
Fig. 4 shows the module map of cloud server according to an embodiment of the invention;
Fig. 5 A to Fig. 5 E show the terminal interface schematic diagram for performing sharing files according to an embodiment of the invention.Embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, the present invention is further described in detail with reference to the accompanying drawings and detailed description.It should be noted that in the case where not conflicting, the feature in embodiments herein and embodiment can be mutually combined.
Many details are elaborated in the following description to fully understand the present invention; but; the present invention can also be different from other modes described here to implement using other, and therefore, protection scope of the present invention is not limited by following public specific embodiment.
Fig. 1 shows the block diagram of server according to an embodiment of the invention.
As shown in Fig. 1, server 100 according to an embodiment of the invention, including:File obtaining unit 102, needs to share to the file of second terminal for obtaining first terminal;Judging unit 103, for judging whether the form of the file needs conversion;Format conversion unit 104, for needing during conversion, the file to be performed form conversion, with the file after being changed in the form for judging the file;File transmission unit 106, for the file after the conversion to be transmitted to the second terminal.
In the technical scheme, changed by the way that the file that first terminal is shared to second terminal is entered into row format(For ease of description, the file that first terminal is shared to second terminal is referred to as sharing file in the application)So that second terminal can realize that corresponding processing is operated, such as views or edits the content shared in file when non-installation process shares the application program of file, also by the file after conversion.Pass through and the form for sharing file is changed, it is to avoid the problem of user can not be handled because of the application program that non-installation process shares file, while it also avoid user downloads waste for handling the application program for sharing file and causing time and flow.Wherein, general file format can be the form that all terminals such as text, picture can necessarily be handled.During conversion, the file format after being changed according to the content selection for sharing file(The process of selection can be that system is performed automatically or terminal makes corresponding prompting, and be selected by user), such as a PDF document for only including content of text, then can be converted directly into text(Such as .txt or doc) form, to save the time of conversion, and for containing the PDF document of substantial amounts of form, then PDF document can be converted to picture format, in order to checking for user.
Wherein, sharing file can be first terminal real-time Transmission to server and be transmitted to second terminal, can also It is that first terminal is previously stored in server or other cloud storage spaces, and indicates that sending this shares file to server in real time.
In the above-mentioned technical solutions, it is preferable that also include:Information acquisition unit 108, the information for obtaining mounted application program in the second terminal;Wherein, judging unit 103 is used for the information according to the application program, judge whether the second terminal can handle the file that the first terminal is shared, if can not handle, then judging the form of the file needs conversion, and the form of the file is converted into file format by the format conversion unit 104, otherwise judging the form of the file need not change, and directly be transmitted the file to the second terminal by the file transmission unit 106.
In the technical scheme, share file by that can handle mounted application program in second terminal and judge, can be in the case where second terminal can handle and share file, directly download and share file and handled, without blindly being changed to sharing file, the computational load of server is advantageously reduced, and shortens the time of user's wait.By the way that the form for sharing file is converted into general format, so that second terminal need not install special instrument or software, directly processing operation can be carried out to sharing file, it is to avoid user downloads the waste for handling the application program for sharing file and causing time and flow.Simultaneously as second terminal processing is original, therefore avoids and share the mistake that file is likely to occur in transfer process, improve the accuracy for sharing data in file.
In the above-mentioned technical solutions, preferably, described information acquiring unit 108 is according to predetermined period or in the case where learning that the first terminal needs to share the file to the second terminal, to the information of its mounted application program of second terminal acquisition request;Wherein, if request failure, the history application information for the second terminal that the judging unit 1 10 is stored using the server 100 is judged;If asking successfully, the server 100 replaces with the history application information information of the mounted application program of newest acquisition.
In the technical scheme, mounted application program in second terminal is obtained according to the default cycle, helps to regularly update history application information, it is ensured that to whether need into row format change judgement accuracy;Meanwhile, by the information for periodically actively asking for mounted application program so that even if sometimes acquisition of information can not be carried out to second terminal, it can also be performed using the history application information stored and judge operation.By when learning that first terminal needs to share file to second terminal, obtain the application information in second terminal, more accurately can second terminal can be handled and share the ability of file and judge, to determine the need for changing to sharing file, it is to avoid the application program update in second terminal causes judged result inaccurate.The information of application program can be preserved into corresponding database, in the application information failure in obtaining second terminal in real time, can use the historical data information being stored in database, it is ensured that the flexibility of system.It is of course also possible to which when after second terminal is updated to the application information of itself, such as deleting, increasing or have updated one or more application programs, amended application information is synchronized in database in real time.
In the above-mentioned technical solutions, it is preferable that the format conversion unit 104 is additionally operable to:According to the information of the application program, the file that the first terminal is shared is converted into the file format that specified application is supported in the second terminal.
In the technical scheme, when share file can be converted into it is a variety of can be supported by second terminal form when, the file format that specified application is supported in second terminal is converted to by the way that file will be shared, it can will share file and be converted to the form for the processing procedure for being more beneficial for second terminal, ensure that the optimization processing to file.Such as under normal circumstances, the generic video file format that terminal is supported is " .mp4 " form, for the video file of " .avi " form, because the image quality of the video of " .rmvb " form is higher than the image quality of the video of " .mp4 " form, because This, if being mounted with that the video file of " .rmvb " form can be handled in terminal, can be converted to the video file of " .avi " form the video file of " .rmvb " form, to ensure that video has preferable image quality.
In the above-mentioned technical solutions, preferably, the file transmission unit 106 will be directly transferred to the second terminal in the case where the judging unit 1 10 judges that the second terminal can not handle the file that the first terminal is shared for handling the application program of the file;Or the server also includes:Tip element 1 12, in the case where the judging unit 1 10 judges that the second terminal can not handle the file that the first terminal is shared, pointing out the second terminal to download the application program for handling the file.
In the technical scheme, by when judgement second terminal can not handle and share file, pointing out second terminal to download corresponding application program, saving search time of the user to the application program, and user can select to download or do not download, be conducive to increasing the operability of user.And second terminal is directly transferred to by the way that the application program for sharing file will be handled, especially when second terminal is connected to the network without traffic overhead(Such as WLAN)When lower, be conducive to simplifying user's operating procedure.Downloading corresponding application program due to second terminal needs the regular hour, thus the file of the general format after conversion directly can be transferred to second terminal by server, make it without waiting for the corresponding processing operation of progress immediately;It can also will directly share file and be transferred to second terminal, so as to reduce error in data or the deviation that file format conversion may be brought.
In the above-mentioned technical solutions, it is preferable that the information of the application program includes at least one of or its combination:The type for the file format that the title of application program, the version of application program and/or release's information, application program are supported, the authority information of application program.
In the technical scheme, the title of application program can as the application program unique mark, its file format that can specifically handle thus can be understood according to application name, it is ensured that the accuracy when calling application program and obtaining application information.But same application there may be different versions, same version there may be different releases, although so as to cause title consistent, may still result in and share file and can not be correctly processed.Under normal circumstances, the application program of highest version/release can open the file that corresponding lowest version/release's application program is created, but the application program of lowest version/release can not be opened by the file of the application program establishment of highest version/release, by the version and/or release's information that obtain application program, it can be ensured that judge whether second terminal can handle the accuracy for sharing file.One application program may support a variety of file formats, therefore obtain the file format type that application program supports and whether second terminal can be handled more fully hereinafter and share file and judge.Some application programs can be used for handling sharing file in itself, but based on the consideration of the factors such as safety, the application program may and not have to sharing the authority that file is handled, thus the authority information of application program is also limited its file format that can be handled, pass through the acquisition to authority information, it can ensure when application program does not have authority processing to share file, directly changed by server, avoiding application program does not have authority processing to share file and blindly download and share file, improve the comprehensive and accuracy judged second terminal disposal ability.
In the above-mentioned technical solutions, it is preferable that also include:Detection unit 1 14, for detecting whether the subfile of file that the first terminal shares and/or this document is compressed package;Wherein, the format conversion unit 104 is additionally operable to change the form of each file in the compressed package.
In the technical scheme, for sharing the situation that file is compressed package, compressed package can be decompressed, each subfile therein is changed, second terminal is avoided after receiving compressed package and decompressing, one or more of subfiles can not be opened, it is ensured that each subfile shared in file can be handled by second terminal.Certainly, the subfile for sharing file may also be compressed package, thus subfile therein can be done further Decompression and format conversion processing;And in the case of being compressed package for subfile, the file in the compressed package still may be compressed package, then all compressed packages can all be decompressed and form conversion, so that it is guaranteed that second terminal can effectively handle all these files.
In the above-mentioned technical solutions, it is preferable that also include:File packaged unit 1 16, for the content structure for the file shared according to the first terminal, is repacked to the file after all conversions;Wherein, the file transmission unit 106 is additionally operable to as the file after conversion transmit the compressed package that the file packaged unit 1 16 is generated to the second terminal.
In the technical scheme, generally there is relevance between file in same compressed package, transmitted by the way that one or more files after conversion are repacked to second terminal, it is ensured that the file after conversion can retain the relevance shared between the file of each in file.Certainly, if second terminal can not be handled compressed package, the file after decompression can not also be repacked.
In the above-mentioned technical solutions, it is preferable that the file transmission unit 106 is additionally operable to:The file shared is needed to transmit to the second terminal first terminal do not treated by the format conversion unit 104, described.
In the technical scheme, by the way that the file of sharing before conversion is transmitted to second terminal, second terminal can be made to preserve original file of sharing, to share to other-end or after second terminal is mounted with to handle and shares the application program of file, original file of sharing to be handled.Because form transfer process is likely to result in loss, damage of data etc., thus to the original download for sharing file, second terminal is contributed to preferably to be handled.
In the above-mentioned technical solutions, it is preferable that also include:Instruction reception unit 1 18, for receiving the file acquisition instruction that the second terminal is sent, wherein, in the case that predetermined registration operation occurs for the mark for corresponding to the file that the first terminal is shared that the second terminal is shown on the screen interface for detecting it, the file acquisition instruction is sent;Wherein, the format conversion unit 104 is additionally operable to, in the case where the instruction reception unit 1 18 receives the file acquisition instruction, perform corresponding file the operation of the conversion.
In the technical scheme, second terminal is not necessarily adapted to because the file that the user of second terminal not necessarily shares to first terminal is interested, or under current environment and is downloaded to sharing the file after file or form conversion(Such as data traffic is limited or network speed is excessively slow etc.), server first can not carry out conversion process and transmission to sharing file, and pass through the corresponding mark of display(The title for sharing file can such as be highlighted, or show that the prompting of bubble frame has on the corresponding position of file is shared and share file), detect need handle sharing file when, that is, detect for identify predetermined registration operation(Physical button that such as touch screen clicks on, perform on the screen interface of second terminal default operating gesture, specify in pressing terminal etc.), and then changed to sharing file, be conducive to the control to sharing file conversion opportunity, improve the flexibility of system, it is to avoid waste flow and time.
Fig. 2 shows the flow chart of sharing files method according to an embodiment of the invention.
As described in Fig. 2, sharing files method according to an embodiment of the invention, including:Step 202, obtaining first terminal needs to share to the file of second terminal;Step 204, whether judge the form of the file needs conversion;Step 206, if desired, form conversion is then performed to the file, with the file after being changed;Step 208, the file after the conversion is transmitted to the second terminal;Step 210, if not needing, directly the file is transmitted to the second terminal.
In the technical scheme, changed by the way that the file that first terminal is shared to second terminal is entered into row format(For ease of description, the file that first terminal is shared to second terminal is referred to as sharing file in the application)So that second terminal can realize that corresponding processing is operated when non-installation process shares the application program of file, also by the file after conversion, Such as view or edit the content shared in file.Pass through and the form for sharing file is changed, it is to avoid the problem of user can not be handled because of the application program that non-installation process shares file, while it also avoid user downloads waste for handling the application program for sharing file and causing time and flow.Wherein, general file format can be the form that all terminals such as text, picture can necessarily be handled.During conversion, the file format after being changed according to the content selection for sharing file(The process of selection can be that system is performed automatically or terminal makes corresponding prompting, and be selected by user), such as a PDF document for only including content of text, then can be converted directly into text(Such as .txt or doc) form, to save the time of conversion, and for containing the PDF document of substantial amounts of form, then PDF document can be converted to picture format, in order to checking for user.
Wherein, sharing file can be first terminal real-time Transmission to server and be transmitted to second terminal or first terminal is previously stored in server or other cloud storage spaces, and indicate that sending this shares file to server in real time.
In the above-mentioned technical solutions, it is preferable that also include:Obtain the information of mounted application program in the second terminal;And whether the form for judging the file needs the process of conversion to include:According to the information of the application program, judge whether the second terminal can handle the file that the first terminal is shared;Wherein, if can not, the form of the file is converted into file format, otherwise directly transmitted the file to the second terminal.
In the technical scheme, share file by that can handle mounted application program in second terminal and judge, can be in the case where second terminal can handle and share file, directly download and share file and handled, without blindly being changed to sharing file, the computational load of server is advantageously reduced, and shortens the time of user's wait.By the way that the form for sharing file is converted into general format, so that second terminal need not install special instrument or software, directly processing operation can be carried out to sharing file, it is to avoid user downloads the waste for handling the application program for sharing file and causing time and flow.Simultaneously as second terminal processing is original, therefore avoids and share the mistake that file is likely to occur in transfer process, improve the accuracy for sharing data in file.
In the above-mentioned technical solutions, it is preferable that also include:According to predetermined period or when learning that the first terminal needs to share the file to the second terminal, to the information of its mounted application program of second terminal acquisition request;Wherein, if request failure, uses the history application information of the second terminal of storage;If asking that the history application information is successfully replaced with to the information of the mounted application program of newest acquisition.
In the technical scheme, mounted application program in second terminal is obtained according to the default cycle, helps to regularly update history application information, it is ensured that to whether need into row format change judgement accuracy;Meanwhile, by the information for periodically actively asking for mounted application program so that even if sometimes acquisition of information can not be carried out to second terminal, it can also be performed using the history application information stored and judge operation.By when learning that first terminal needs to share file to second terminal, obtain the application information in second terminal, more accurately can second terminal can be handled and share the ability of file and judge, to determine the need for changing to sharing file, it is to avoid the application program update in second terminal causes judged result inaccurate.The information of application program can be preserved into corresponding database, in the application information failure in obtaining second terminal in real time, can use the historical data information being stored in database, it is ensured that the flexibility of system.It is of course also possible to which when after second terminal is updated to the application information of itself, such as deleting, increasing or have updated one or more application programs, amended application information is synchronized in database in real time.
In the above-mentioned technical solutions, it is preferable that also include:According to the information of the application program, the file that the first terminal is shared is converted into the file format that specified application is supported in the second terminal. In the technical scheme, when share file can be converted into it is a variety of can be supported by second terminal form when, the file format that specified application is supported in second terminal is converted to by the way that file will be shared, it can will share file and be converted to the form for the processing procedure for being more beneficial for second terminal, ensure that the optimization processing to file.Such as under normal circumstances, the generic video file format that terminal is supported is " .mp4 " form, for the video file of " .avi " form, due to image quality of the image quality higher than the video of " .mp4 " form of the video of " .rmvb " form, therefore, if being mounted with that the video file of " .rmvb " form can be handled in terminal, the video file of " .avi " form can be then converted to the video file of " .rmvb " form, to ensure that video has preferable image quality.
In the above-mentioned technical solutions, it is preferable that when judging that the second terminal can not handle the file that the first terminal is shared, in addition to:Point out the second terminal to download the application program for handling the file, or the application program is directly transferred to the second terminal.
In the technical scheme, by when judgement second terminal can not handle and share file, pointing out second terminal to download corresponding application program, saving search time of the user to the application program, and user can select to download or do not download, be conducive to increasing the operability of user.And second terminal is directly transferred to by the way that the application program for sharing file will be handled, especially when second terminal is connected to the network without traffic overhead(Such as WLAN)When lower, be conducive to simplifying user's operating procedure.Downloading corresponding application program due to second terminal needs the regular hour, thus the file of the general format after conversion directly can be transferred to second terminal by server, make it without waiting for the corresponding processing operation of progress immediately;It can also will directly share file and be transferred to second terminal, so as to reduce error in data or the deviation that file format conversion may be brought.
In the above-mentioned technical solutions, it is preferable that the information of the application program includes at least one of or its combination:The type for the file format that the title of application program, the version of application program and/or release's information, application program are supported, the authority information of application program.
In the technical scheme, the title of application program can as the application program unique mark, its file format that can specifically handle thus can be understood according to application name, it is ensured that the accuracy when calling application program and obtaining application information.But same application there may be different versions, same version there may be different releases, although so as to cause title consistent, may still result in and share file and can not be correctly processed.Under normal circumstances, the application program of highest version/release can open the file that corresponding lowest version/release's application program is created, but the application program of lowest version/release can not be opened by the file of the application program establishment of highest version/release, by the version and/or release's information that obtain application program, it can be ensured that judge whether second terminal can handle the accuracy for sharing file.One application program may support a variety of file formats, therefore obtain the file format type that application program supports and whether second terminal can be handled more fully hereinafter and share file and judge.Some application programs can be used for handling sharing file in itself, but based on the consideration of the factors such as safety, the application program may and not have to sharing the authority that file is handled, thus the authority information of application program is also limited its file format that can be handled, pass through the acquisition to authority information, it can ensure when application program does not have authority processing to share file, directly changed by server, avoiding application program does not have authority processing to share file and blindly download and share file, improve the comprehensive and accuracy judged second terminal disposal ability.
In the above-mentioned technical solutions, it is preferable that when the subfile for detecting file that the first terminal shares and/or this document is compressed package, in addition to:The step of conversion is performed to each file in the compressed package.
In the technical scheme, for sharing the situation that file is compressed package, compressed package can be decompressed, each subfile therein is changed, it is to avoid second terminal is after compressed package and decompression is received, it is impossible to open One or more of subfiles, it is ensured that each subfile shared in file can be handled by second terminal.Certainly, the subfile for sharing file may also be compressed package, thus subfile therein can be decompressed further and format conversion processing;And in the case of being compressed package for subfile, the file in the compressed package still may be compressed package, then all compressed packages can all be decompressed and form conversion, so that it is guaranteed that second terminal can effectively handle all these files.
In the above-mentioned technical solutions, it is preferable that also include:The content structure for the file shared according to the first terminal, is repacked to the file after all conversions, and is transmitted the compressed package of generation as the file after conversion to the second terminal.
In the technical scheme, generally there is relevance between file in same compressed package, transmitted by the way that one or more files after conversion are repacked to second terminal, it is ensured that the file after conversion can retain the relevance shared between the file of each in file.Certainly, if second terminal can not be handled compressed package, the file after decompression can not also be repacked.
In the above-mentioned technical solutions, it is preferable that also include:The file shared is needed to transmit to the second terminal first terminal before performing the switch process, described.
In the technical scheme, by the way that the file of sharing before conversion is transmitted to second terminal, second terminal can be made to preserve original file of sharing, to share to other-end or after second terminal is mounted with to handle and shares the application program of file, original file of sharing to be handled.Because form transfer process is likely to result in loss, damage of data etc., thus to the original download for sharing file, second terminal is contributed to preferably to be handled.
In the above-mentioned technical solutions, it is preferable that also include:Display corresponds to the mark for the file that the first terminal is shared on the screen interface of the second terminal;When detecting the predetermined registration operation for the mark, the step of conversion is performed to corresponding file, and handle in the second terminal file after the conversion.
In the technical scheme, second terminal is not necessarily adapted to because the file that the user of second terminal not necessarily shares to first terminal is interested, or under current environment and is downloaded to sharing the file after file or form conversion(Such as data traffic is limited or network speed is excessively slow etc.), server first can not carry out conversion process and transmission to sharing file, and pass through the corresponding mark of display(The title for sharing file can such as be highlighted, or show that the prompting of bubble frame has on the corresponding position of file is shared and share file), detect need handle sharing file when, that is, detect for identify predetermined registration operation(Physical button that such as touch screen clicks on, perform on the screen interface of second terminal default operating gesture, specify in pressing terminal etc.), and then changed to sharing file, be conducive to the control to sharing file conversion opportunity, improve the flexibility of system, it is to avoid waste flow and time.
Fig. 3 shows the particular flow sheet of sharing files method according to an embodiment of the invention.
As shown in figure 3, sharing files method according to an embodiment of the invention, including:
Step 302, user A gives user B by server share file.
Specifically, user A will need the transmitting file in real time shared to be stored in advance in the server or other server/cloud servers to server, or this document.The list of application of user B terminal is also preserved in server, with the application information for the terminal for guaranteeing to recognize user B(The file of which form can be supported)Application information can be from server periodically to user B automatic acquisition, can also from server detect the presence of need to user B terminals share file when be obtained, can also by user B terminal by the application program update situation real-time synchronization of itself into server.
Step 304, server judges user B terminal according to the application information of the user B of preservation terminal Whether file that user A share can be handled, if can be so that otherwise execution step 306 performs step 308.Step 306, the file shared is transmitted to user B terminal, handled by user B terminal when the terminal for judging user B can handle the file shared by server.
Step 308, when server judges that user B terminal can not handle the file shared, the form that can be handled the document analysis shared for user B terminal by server, such as text and/or picture etc., the part or all of composition information for the file shared can also be recorded.
Step 310, the content of the forms such as server is parsed text, picture and part or all of composition information, which are integrated, saves as webpage format.Certainly, server can also be converted to the form for sharing file other multiple formats, such as the general form of terminal when the file to sharing is handled(Such as text or picture)Or be the manageable file format of specified application in user B terminal, it is possible to by the terminal of the direct file transfer of these forms to user B.Illustrated herein by taking webpage format as an example.
Step 312, server transmits the address of the webpage of above-mentioned preservation to user B terminal, and user B realizes acquisition and further processing to corresponding contents by accessing the web page address.In addition, user B can select also to preserve original file download of sharing into its terminal.
Fig. 4 shows the module map of cloud server according to an embodiment of the invention.
As shown in figure 4, cloud server 400 according to an embodiment of the invention, including:
File storage module 402, there is provided share file to document processing module 406 for the file of sharing shared for storing user A to need to user B, it is ensured that acquisitions of the user B to file.
End message memory module 404, mounted application information in terminal for storing user B, title, version and/or the release of such as application program, authority etc., the application information is provided to document processing module 406, so that document processing module 406 judge that what whether user B terminal can handle user A shares file.
Document processing module 406, for according to file storage module 402 and the incoming data of end message memory module 404, judging that what whether user B terminal can handle user A shares file;Its file format for supporting to open is saved in such as application program " Go Book ", end message memory module 404(The forms such as such as txt, log, ebf), it is assumed that user A Study document is pdf, if being judged as handling, and returns to analytic parameter to parsing module 408, if can handle, this is shared into file and transmitted to user B terminal.
Parsing module 408, for deciding whether resolution file content according to the incoming analytic parameter of document processing module 406, and shares the type after document analysis;If necessary to parse, then file content is parsed, and file content is arranged, by being converted to the file format that user B terminal can be supported, the form that such as " Go Book " can be supported, or the form that other applications can be supported, so that the file after by the way that form is changed is transmitted to user B terminal, the file after directly being changed to the form is handled.
Specifically, such as the content obtained to sharing document analysis can be saved as webpage by parsing module 408(Discarded for the part that can not be parsed), so as to by the way that the address of the webpage is transmitted to user B terminal, can directly browse the script user A content for sharing file, and perform further processing operation.
Fig. 5 A to Fig. 5 D show the terminal interface schematic diagram for performing sharing files according to an embodiment of the invention.As shown in Figure 5A, user sees the file 502 that contact person " Zhang San " shares in terminal 500, if user needs to check the file 502 shared, can be clicked on by touch screen(In the present embodiment so that touch screen is clicked on as an example, naturally it is also possible to performed on the screen interface of terminal 500 default operating gesture, in pressing terminal 500 physics specified by The modes such as key are chosen to the file shared)The file 502 shared, then whether server end can handle the file 502 shared to terminal 500 and judge, if it is determined that terminal 500 can handle the file 502 shared, then terminal 500 directly downloads the file 502 shared, and is handled;If it is determined that terminal 500 can not handle the file 502 shared, then the form for the file 502 shared is changed, general file format can be converted to, such as text, picture format can also be converted to the file format that specified application can be handled in terminal 500.
The application information of the terminal that is stored with server 500, whether server can handle the file 502 shared to terminal 500 accordingly judges.Storage application information in the server can server periodically asked for terminal 500, can also be server when detecting the presence of the file shared to terminal 500, asked in real time to terminal 500, can also by terminal 500 by the application program update situation real-time synchronization of itself into server.
In Fig. 5 A, user " Zhang San " is sometime recommending the file 502 shared to the user of terminal 500, then the file 502 shared is uploaded and stored to server(Such as now shared using " Sina weibo ", then the server is " Sina weibo " corresponding server)In.Terminal 500 may be instantly available prompting, it is also possible to be pointed out over time, become, but as long as the file 502 shared is stored in server, terminal 500 can be obtained to it at any time.
Therefore, the scene shown in Fig. 5 A is non real-time data sharing;And the application is actually used in real-time data sharing, specifically as shown in Figure 5 B.
Such as active user(The user of terminal 500)Immediate communication tool is used with user " Zhang San "(Such as QQ, wechat, Fetion, Michat)Interact.The file 502 that user " Zhang San " can carry out active user in data sharing, such as Fig. 5 B to share is " social psychology .pdf'.User " Zhang San " can send in the window chatted with active user in real time needs the data shared, such as the file 502 shared, then server will be kept in the file 502 that this is shared, and enter row format conversion to it if necessary.
Server can immediately be judged after the data 502 shared are received(Judge that can terminal 500 be directly handled it)With form conversion;Server can also immediately be judged after the data 502 shared are received, and receive destination object(Such as terminal 500) download request when, then enter in real time row format conversion;Server can also receive destination object(Such as terminal 500) download request when, then in real time carry out judge and form conversion.
Meanwhile, shown when on the screen interface of terminal 500 corresponding to other users(Such as " Zhang San ")Sharing data content when, such as show that " during social psychology .pd, terminal 500 can download corresponding file data from the request of trend server in Fig. 5 A and Fig. 5 B;Or, terminal 500 Fig. 5 A with show that " social psychology pdf' are only the mark of data 502 that corresponds to and share; when user operates to the mark, such as click on the mark, and the ability of terminal 500 is to server transmission download request in Fig. 5 B.
Server enters after row format conversion for the data 502 shared, and obtained file format has a variety of situations, two kinds of embodiments therein introduced below:
Embodiment one
Server can be converted to the form for the file 502 shared general format, i.e., all terminals are uniquely able to the form opened, then terminal 500 can necessarily be handled.Specifically, general format can be for text, picture, webpage etc., can one kind optionally therein, it would however also be possible to employ the combination of multiple format.
By taking webpage as an example.Server can parse the contents such as text, the picture in the file 502 shared, will be above-mentioned Content integration simultaneously saves as webpage format, then web page address is transmitted to terminal 500, the web page address that user receives according to terminal 500, open and the file after format transformation is handled, as shown in Fig. 5 C, shown on the interface of terminal 500 for the web page contents 504 after parsing.
Simultaneously, server can also be recorded to the composition information of the contents such as text, the picture in the file 502 shared, and when generating web page contents 504, typesetting is carried out according to the composition information, so that active user can obtain the files after transform being consistent with the content for the file 502 shared as much as possible.
In addition, although the application can provide the file after form conversion for active user, but user still can select the original that download is changed without form(The file 502 shared).Specifically, such as user, can be by clicking on the cue button 506 shown in Fig. 5 C, so that by the file 502 shared (not shown in figure in processing procedure)Download and preserve into terminal 500.
Embodiment two
Application information of the server in terminal 500, the file type that specified application can be handled is converted to by the file 502 shared.As shown in Figure 5 D, such as when being provided with the application program " Word " for handling word document in terminal 500, then server can be converted to the form for the file 502 shared application program " Word " manageable form, such as suffix is the file of " .doc ".In Fig. 5 D, what is shown on the interface of terminal 500 is the word document content 508 after form conversion.
As shown in Fig. 5 E, server is judging that terminal 500 can not handle the file 502 shared (not shown in figure)When, prompting menu 510 can also be ejected on the interface of terminal 500 to prompt the user whether to download related application program, after user downloads and installs corresponding application program, when the terminal 500 is received again by the file of same type, the file of the type is directly handled by mounted application program, without being changed, the time of user's pending file conversion is saved.Certainly, the prompting menu 510 it is not necessary to, corresponding application program directly can be pushed to terminal 500 by server, and be installed automatically by terminal 500.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that in the prior art, user is when seeing the file shared, it is impossible to judge whether terminal can be handled the file shared.And by, it is necessary to continue to download corresponding application program or form to file is changed, numerous Suo operation has had a strong impact on the experience of user when can not be handled after file download.Therefore, the present invention proposes a kind of new sharing files scheme, the data such as the file shared can be entered with row format conversion so that the recipient of file, also can be by checking that the file after conversion learns the content shared in file when non-installation process shares the application program of file.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art, the present invention there can be various modifications and variations.Within the spirit and principles of the invention, any modification, equivalent substitution and improvements made etc., should be included in the scope of the protection.

Claims (20)

  1. Claims
    1. a kind of server, it is characterised in that including:
    File obtaining unit, needs to share to the file of second terminal for obtaining first terminal;
    Judging unit, for judging whether the form of the file needs conversion;
    Format conversion unit, for needing during conversion, the file to be performed form conversion, with the file after being changed in the form for judging the file;
    File transmission unit, for the file after the conversion to be transmitted to the second terminal.
    2. server according to claim 1, it is characterised in that also include:
    Information acquisition unit, the information for obtaining mounted application program in the second terminal;
    Wherein, the judging unit is used for the information according to the application program, judge whether the second terminal can handle the file that the first terminal is shared, if can not handle, then judging the form of the file needs conversion, and the form of the file is converted into file format by the format conversion unit, otherwise judging the form of the file need not change, and directly be transmitted the file to the second terminal by the file transmission unit.
    3. the server according to claim 2, it is characterized in that, described information acquiring unit is according to predetermined period or in the case where learning that the first terminal needs to share the file to the second terminal, to the information of its mounted application program of second terminal acquisition request;
    Wherein, if request failure, the judging unit is judged using the history application information of the second terminal of the server storage;
    If asking successfully, the server replaces with the history application information information of the mounted application program of newest acquisition.
    4. server according to claim 2, it is characterised in that the format conversion unit is additionally operable to:According to the information of the application program, the file that the first terminal is shared is converted into the file format that specified application is supported in the second terminal.
    5. server according to claim 2, it is characterised in that
    The file transmission unit will be directly transferred to the second terminal in the case where the judging unit judges that the second terminal can not handle the file that the first terminal is shared for handling the application program of the file;
    Or the server also includes:Tip element, in the case where the judging unit judges that the second terminal can not handle the file that the first terminal is shared, pointing out the second terminal to download the application program for handling the file.
    6. the server according to claim 2, it is characterised in that the information of the application program includes at least one of or its combination:
    The type for the file format that the title of application program, the version of application program and/or release's information, application program are supported, the authority information of application program.
    7. server according to any one of claim 1 to 6, it is characterised in that also include: Detection unit, for detecting whether the subfile of file that the first terminal shares and/or this document is compressed package;
    Wherein, the format conversion unit is additionally operable to change the form of each file in the compressed package.
    8. server according to claim 7, it is characterised in that also include:
    File packaged unit, for the content structure for the file shared according to the first terminal, is repacked to the file after all conversions;
    Wherein, the file transmission unit is additionally operable to as the file after conversion transmit the compressed package that the file packaged unit is generated to the second terminal.
    9. the server according to any one of claim 1 to 6, it is characterised in that the file transmission unit is additionally operable to:
    The file shared is needed to transmit to the second terminal first terminal do not treated by the format conversion unit, described.
    10. server according to any one of claim 1 to 6, it is characterised in that also include:Instruction reception unit, for receiving the file acquisition instruction that the second terminal is sent, wherein, in the case that predetermined registration operation occurs for the mark for corresponding to the file that the first terminal is shared that the second terminal is shown on the screen interface for detecting it, the file acquisition instruction is sent;
    Wherein, the format conversion unit is additionally operable to, in the case where the instruction reception unit receives the file acquisition instruction, perform corresponding file the operation of the conversion.
    A kind of 1 1. sharing files methods, it is characterised in that including:
    Obtaining first terminal needs to share to the file of second terminal;
    Whether judge the form of the file needs conversion;
    If desired, then form conversion is performed to the file, with the file after being changed;
    File after the conversion is transmitted to the second terminal.
    12. the sharing files method according to claim 11, it is characterised in that also include:
    Obtain the information of mounted application program in the second terminal;And
    Whether the form for judging the file needs the process of conversion to include:According to the information of the application program, judge whether the second terminal can handle the file that the first terminal is shared;
    Wherein, if can not, the form of the file is converted into file format, otherwise directly transmitted the file to the second terminal.
    13. sharing files method according to claim 12, it is characterised in that also include:
    According to predetermined period or when learning that the first terminal needs to share the file to the second terminal, to the information of its mounted application program of second terminal acquisition request;
    Wherein, if request failure, uses the history application information of the second terminal of storage;If asking that the history application information is successfully replaced with to the information of the mounted application program of newest acquisition.
    14. sharing files method according to claim 12, it is characterised in that also include:According to the information of the application program, the file that the first terminal is shared is converted into the file format that specified application is supported in the second terminal.
    15. the sharing files method according to claim 12, it is characterised in that when judging that the second terminal can not handle the file that the first terminal is shared, in addition to:
    Point out the second terminal to download the application program for handling the file, or the application program is directly transferred to the second terminal.
    16. the sharing files method according to claim 12, it is characterised in that the information of the application program includes at least one of or its combination:
    The type for the file format that the title of application program, the version of application program and/or release's information, application program are supported, the authority information of application program.
    17. the sharing files method according to any one of claim 11 to 16, it is characterised in that when the subfile for detecting file that the first terminal shares and/or this document is compressed package, in addition to:
    The step of conversion is performed to each file in the compressed package.
    18. sharing files method according to claim 17, it is characterised in that also include:
    The content structure for the file shared according to the first terminal, is repacked to the file after all conversions, and is transmitted the compressed package of generation as the file after conversion to the second terminal.
    19. the sharing files method according to any one of claim 11 to 16, it is characterised in that also include:
    The file shared is needed to transmit to the second terminal first terminal before performing the switch process, described.
    20. the sharing files method according to any one of claim 11 to 16, it is characterised in that also include:
    Display corresponds to the mark for the file that the first terminal is shared on the screen interface of the second terminal;When detecting the predetermined registration operation for the mark, the step of conversion is performed to corresponding file, and handle in the second terminal file after the conversion.
CN201380069030.1A 2013-08-29 2013-08-29 Server and file sharing method Pending CN104885432A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/082558 WO2015027430A1 (en) 2013-08-29 2013-08-29 Server and file sharing method

Publications (1)

Publication Number Publication Date
CN104885432A true CN104885432A (en) 2015-09-02

Family

ID=52585406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380069030.1A Pending CN104885432A (en) 2013-08-29 2013-08-29 Server and file sharing method

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929233A (en) * 2019-11-22 2020-03-27 连尚(新昌)网络科技有限公司 Information processing method and device
CN113037790A (en) * 2019-12-09 2021-06-25 汇海汽车科技(天津)有限公司 File processing method and device and storage medium
CN115002537A (en) * 2021-12-23 2022-09-02 荣耀终端有限公司 Video sharing method, electronic device, storage medium, and program product
CN115002543A (en) * 2021-12-23 2022-09-02 荣耀终端有限公司 Video sharing method, electronic device, storage medium, and program product
CN115310065A (en) * 2022-10-09 2022-11-08 北京金堤科技有限公司 File generation method and device, storage medium and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707450A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of method, apparatus and computer-readable recording medium for transmitting file
CN114860824A (en) * 2022-04-11 2022-08-05 远景智能国际私人投资有限公司 Data transmission method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163087A (en) * 2006-10-13 2008-04-16 风网科技(北京)有限公司 System and method for sharing mobile terminal video document
CN101340464A (en) * 2008-08-22 2009-01-07 中国电信股份有限公司 Method and system for unified network resource management
CN102571726A (en) * 2010-12-23 2012-07-11 中国移动通信集团广东有限公司 Multimedia data sharing method, system and state judgment server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163087A (en) * 2006-10-13 2008-04-16 风网科技(北京)有限公司 System and method for sharing mobile terminal video document
CN101340464A (en) * 2008-08-22 2009-01-07 中国电信股份有限公司 Method and system for unified network resource management
CN102571726A (en) * 2010-12-23 2012-07-11 中国移动通信集团广东有限公司 Multimedia data sharing method, system and state judgment server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929233A (en) * 2019-11-22 2020-03-27 连尚(新昌)网络科技有限公司 Information processing method and device
CN110929233B (en) * 2019-11-22 2022-11-15 连尚(新昌)网络科技有限公司 Information processing method and device
CN113037790A (en) * 2019-12-09 2021-06-25 汇海汽车科技(天津)有限公司 File processing method and device and storage medium
CN115002537A (en) * 2021-12-23 2022-09-02 荣耀终端有限公司 Video sharing method, electronic device, storage medium, and program product
CN115002543A (en) * 2021-12-23 2022-09-02 荣耀终端有限公司 Video sharing method, electronic device, storage medium, and program product
CN115310065A (en) * 2022-10-09 2022-11-08 北京金堤科技有限公司 File generation method and device, storage medium and electronic equipment
CN115310065B (en) * 2022-10-09 2023-02-17 北京金堤科技有限公司 File generation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2015027430A1 (en) 2015-03-05

Similar Documents

Publication Publication Date Title
CN104885432A (en) Server and file sharing method
US10402066B2 (en) Information processing terminal and control method
US11477298B2 (en) Offline client replay and sync
JP5022301B2 (en) Proxy server, communication relay program, and communication relay method
CN105045887B (en) The system and method for mixed mode cross-domain data interaction
US8195746B2 (en) Automatic off-line availability for document content linked in electronic mail messages
CN103106205B (en) In the method and apparatus that mobile terminal browses file
CN101216834B (en) File downloading method, system, device and server
EP2806357A1 (en) Method and communication device for updating a web application
CN102420843B (en) A kind of compression and decompression method, Apparatus and system based on cloud compression link
US9495323B2 (en) Copying data onto an expandable memory
CN101183946B (en) Method and system of obtaining resource listing of download file
CN102272747A (en) Method and apparatus for managing state information of remote user interface
CN107463657B (en) File operation method and terminal
CN111600772B (en) Network distribution content detection processing device, method, system and electronic equipment
JP2017504912A (en) Page operation processing method and apparatus, and terminal
CN102752371A (en) Method for achieving splash on client side and client side
CN103220441B (en) Messaging device and control method thereof
CN106933623B (en) Operation method, device and system of installation-free application
CN103905496A (en) Picture downloading method and device
JP4719732B2 (en) Backup server, mobile device, communication system using these, and backup method
CN106790716B (en) Picture pushing method and system based on screen locking state
CN102110144B (en) Document access method and terminal equipment
JP5078379B2 (en) Relay device, relay method, and program
CN104767777A (en) System and method of opening remote file

Legal Events

Date Code Title Description
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150902

RJ01 Rejection of invention patent application after publication