CN103905516B - The method and respective server and terminal of sharing data - Google Patents

The method and respective server and terminal of sharing data Download PDF

Info

Publication number
CN103905516B
CN103905516B CN201210587452.5A CN201210587452A CN103905516B CN 103905516 B CN103905516 B CN 103905516B CN 201210587452 A CN201210587452 A CN 201210587452A CN 103905516 B CN103905516 B CN 103905516B
Authority
CN
China
Prior art keywords
sharing data
data
server
sharing
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210587452.5A
Other languages
Chinese (zh)
Other versions
CN103905516A (en
Inventor
李栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210587452.5A priority Critical patent/CN103905516B/en
Publication of CN103905516A publication Critical patent/CN103905516A/en
Application granted granted Critical
Publication of CN103905516B publication Critical patent/CN103905516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method of sharing data, methods described is applied to server, the described method comprises the following steps:The request of sharing for treating sharing data from first terminal is received, and based on the metadata shared and asked from sharing data is treated described in first terminal acquisition;Treated according to acquired sharing data metadata judge described in treat the type of sharing data;Based on the type for treating sharing data, it is determined that it is described treat sharing data share mode.

Description

The method and respective server and terminal of sharing data
Technical field
The present invention relates to a kind of method of sharing data and respective server and terminal, more particularly it relates to one Kind determine to treat the method for sharing mode and respective server and terminal of sharing data according to the metadata for treating sharing data.
Background technology
With users personal data increase and the development of social networks, personal user are more next to the demand of data sharing It is stronger, but data sharing mode is often relatively simple now, it is impossible to optimal point is determined according to the characteristic of real data Enjoy strategy.
The content of the invention
In order to solve above-mentioned technical problem of the prior art, according to an aspect of the present invention, there is provided a kind of sharing data Method, methods described is applied to server, the described method comprises the following steps:Receive and treat sharing data from first terminal Share request, and based on it is described share request from the first terminal obtain described in treat the metadata of sharing data;According to The type of sharing data is treated described in the acquired metadata judgement for treating sharing data;Based on the class for treating sharing data Type, it is determined that it is described treat sharing data share mode.
In addition, according to one embodiment of present invention, wherein based on the type for treating sharing data, treated point it is determined that described Enjoy including the step of sharing mode for data:When the type when sharing data is the first kind, if described wait to share Data are structural datas, then ask the first terminal to treat that sharing data difference is uploaded to the server by described;And When receiving the request for treating sharing data from second terminal, the second terminal is notified to be obtained from the server difference Sharing data is treated described in taking.
In addition, according to another embodiment of the invention, wherein based on the type for treating sharing data, it is determined that described treat Sharing data includes the step of sharing mode:When the type when sharing data is the first kind, treated point if described It is unstructured data to enjoy data, then does not notify the first terminal to treat sharing data described in uploading;And come from when receiving Second terminal to described when the request of sharing data, notify the second terminal from the first terminal obtain described in treat point Data are enjoyed, to cause the second terminal with the first terminal by establishing number to be shared described in the acquisition of data sharing passage According to.
In addition, according to another embodiment of the invention, wherein based on the type for treating sharing data, it is determined that described treat Sharing data includes the step of sharing mode:When the type when sharing data is Second Type, the server root According to the metadata, from the acquisition address of web search file corresponding with the metadata for treating sharing data;If From the web search to the acquisition address of file corresponding with the metadata, then treat that sharing data is deposited in association with described Store up the acquisition address;And when receive from second terminal to it is described when the request of sharing data when, to described second Terminal provides the acquisition address of file corresponding with the metadata.
In addition, according to another embodiment of the invention, wherein the first kind, which is user, generates class file, described the Two types are that network generates file.
According to another aspect of the present invention, there is provided a kind of method of sharing data, methods described are applied to terminal, the side Method comprises the following steps:The request of sharing for treating sharing data is sent to server, and shares request to the service based on described Device treats the metadata of sharing data described in uploading, the metadata for the server judge described in treat sharing data as first Type or Second Type, by treated described in determination sharing data wait to share in a manner of.
In addition, according to one embodiment of present invention, wherein receive the server treats the of sharing data to described One request, treats that sharing data difference is uploaded to the server, to cause the server to treat sharing data by described by described Other-end is shared with, wherein, first request represents that the server treats the type of sharing data as first described in judging Type, and described treat that sharing data is structural data.
In addition, according to another embodiment of the invention, wherein receiving the server to the sharing data for the treatment of Second request, not to the server upload described in treat sharing data and receiving from another terminal to the number to be shared According to directly establish data sharing passage with another terminal when sharing request so that another terminal obtain described in treat point Data are enjoyed, wherein, second request represents that the server treats the type of sharing data as the first kind described in judging, and institute State and treat that sharing data is unstructured data.
In addition, according to another embodiment of the invention, wherein receiving the server to the sharing data for the treatment of 3rd request, sharing data is not treated to described in server upload, wherein, the 3rd request represents that the server judges The type for treating sharing data is Second Type, and by sharing web search obtaining to file corresponding with the metadata The mode of address is taken to treat that sharing data is shared with other-end by described.
In addition, according to another embodiment of the invention, wherein the first kind, which is user, generates class file, described the Two types are that network generates file.
According to another aspect of the present invention, there is provided a kind of server for sharing data, the server include:Communication Unit, for receiving the request of sharing for treating sharing data from first terminal, and based on it is described share ask from described the The metadata of sharing data is treated described in the acquisition of one terminal;Memory cell;And processing unit, for being treated according to acquired The metadata of sharing data treats the type of sharing data described in judging, and based on the type for treating sharing data, determines institute State treat sharing data share mode.
In addition, according to one embodiment of present invention, when the type when sharing data is the first kind, if institute State and treat that sharing data is structural data, then the processing unit asks the first terminal by described in by the communication unit Treat that sharing data difference is uploaded to the server;And share when the communication unit receives treating from second terminal During the request of data, the processing unit notifies the second terminal to be obtained from the server difference by the communication unit It is described to treat sharing data.
In addition, according to another embodiment of the invention, wherein when the type when sharing data is the first kind, If described treat that sharing data is unstructured data, the processing unit does not notify the first terminal to be treated point described in uploading Enjoy data;And when the communication unit receive from second terminal to it is described when the request of sharing data when, the place Reason unit notifies to treat sharing data described in the second terminal from first terminal acquisition by the communication unit, to make Obtain the second terminal and treat sharing data described in the acquisition of data sharing passage by establishing with the first terminal.
In addition, according to another embodiment of the invention, wherein when the type when sharing data is Second Type, The processing unit is according to the metadata, by the communication unit from web search and the member for treating sharing data The acquisition address of file corresponding to data;If from the web search to the acquisition of file corresponding with the metadata Location, then the processor treat that sharing data stores the acquisition address to the memory cell in association with described;And work as The communication unit receive from second terminal to described when the request of sharing data, the processing unit passes through described Communication unit provides the acquisition address of file corresponding with the metadata to the second terminal.
In addition, according to another embodiment of the invention, wherein the first kind, which is user, generates class file, described the Two types are that network generates file.
According to another aspect of the present invention, there is provided a kind of terminal, the terminal with server communication and including:Processing is single The memory cell of sharing data is treated in member, communication unit and storage, and the communication unit sends to server and treats sharing data Share request, and based on the metadata shared and asked to sharing data is treated described in server upload, the metadata For the server judge described in treat sharing data as the first kind or Second Type, to treat sharing data described in determination Mode to be shared.
In addition, according to another embodiment of the invention, wherein the communication unit receives the server to described The first request of sharing data is treated, the processing unit treats that sharing data difference is uploaded to institute by the communication unit by described Server is stated, to cause the server to treat that sharing data is shared with other-end by described, wherein, first request represents The server treats the type of sharing data as the first kind described in judging, and it is described treat that sharing data is structural data,
In addition, according to another embodiment of the invention, wherein the communication unit receives the server to described Treat the second request of sharing data, not to the server upload described in treat sharing data and receiving pair from another terminal It is described when sharing data when sharing request, the processing unit is directly established by the communication unit with another terminal Data sharing passage so that sharing data is treated described in another terminal acquisition, wherein, second request represents the service Device treats the type of sharing data as the first kind described in judging, and described treats that sharing data is unstructured data.
In addition, according to another embodiment of the invention, wherein the communication unit receives the server to described Treat the 3rd request of sharing data, the processing unit not to the server upload described in treat sharing data, wherein, described the Three requests represent that the servers treat the type of sharing data as Second Type described in judging, and by share web search to The mode of the acquisition address of file corresponding to the metadata treats that sharing data is shared with other-end by described.
In addition, according to another embodiment of the invention, wherein the first kind, which is user, generates class file, described the Two types are that network generates file.
Brief description of the drawings
Fig. 1 is the flow chart of the data sharing method for server according to embodiments of the present invention;
Fig. 2 is the schematic diagram of diagram server according to embodiments of the present invention.
Fig. 3 is the flow chart of the data sharing method for terminal according to embodiments of the present invention;
Fig. 4 is the schematic diagram of diagram terminal according to embodiments of the present invention.
Embodiment
It will be described in detail with reference to the accompanying drawings each embodiment according to the present invention.Here it is to be noted that it in the accompanying drawings, Identical reference, which is assigned, substantially has the part of same or like 26S Proteasome Structure and Function, and will omit on it Repeated description.
Fig. 1 is a kind of flow chart of the method for sharing data according to embodiments of the present invention.Here, Fig. 1 method can be with It is applied to server.
When the user of the terminals such as computer, mobile phone wishes user of the sharing data to other-end, send and treat to server Sharing data shares request, and is shared based on this and ask to upload the metadata for treating sharing data to server, such as Fig. 1 institutes Show, in step s 11, the communication unit of server receives the request of sharing for treating sharing data for carrying out self terminal, and is based on dividing Enjoy request and the metadata for treating sharing data is obtained from terminal.
In step s 12, the processing unit of server judges to wait to share according to the acquired metadata for treating sharing data Data are the first kind or Second Type, and here, the first kind is that user generates class file, refers mainly to number caused by user According to, for example, the personal digital photo of user, personal document, address list etc., it is characterized in that high privacy and general memory space compared with It is small;Second Type is that network generates file, the data as caused by network-side is referred mainly to, for example, disclosed Internet video, music Deng being characterized in that privacy is low and general memory space is larger.Below how server according to metadata will be judged to wait to share Data are that the first kind or Second Type are described by way of example.
Firstly the need of knowledge base is established in the memory cell of server, for storing the data obtained from web search Metadata, as Second Type data i.e. the knowledge base of network generation file.In addition it is also possible to root in the server simultaneously According to search result in a network, the acquisition modes of these data, such as acquisition address in a network are preserved, obtaining address can Can be the BT seeds of data, it is also possible to download URL of data etc..Wish sharing data to other people feelings in terminal user Under condition, after server is got after the metadata of sharing data from terminal, server for example carries out following according to the metadata Matching operation:
A. searched from the knowledge base of foundation treat the metadata of sharing data and the metadata of storage cryptographic Hash whether Match somebody with somebody, if it is, judging to treat sharing data as Second Type, that is, treat that sharing data generates file for network;
B. if cryptographic Hash mismatches, then other attributes and the storage of the metadata for treating sharing data are searched from knowledge base Other attributes of metadata whether match, other attributes are, for example, the protagonist of a film, director, creative time etc., so Code check etc. may be found with treating discrepant another network generation file of sharing data, if sending point for treating sharing data The terminal user for enjoying request receives, and another network can be generated to file as the original alternate data for treating sharing data Shared, and judge data to be shared as Second Type.
C. if other attributes of metadata also mismatch, then data to be shared are judged as the first kind, that is, treat Sharing data is that user generates file.
Certainly, those skilled in the art knows, server judges to treat sharing data as the first kind also according to metadata It is that Second Type is not limited to above procedure.
When the processing unit of server is judged after the data shared are the first kind or Second Type, in step S13 In, the processing unit of server treats the type of sharing data based on what is judged, it is determined that treats sharing data shares mode.Below How sharing mode is determined if being described in detail to server.
According to one embodiment of present invention, in step s 13, the processing unit of server is based on the class for treating sharing data Type, it is determined that treating including the step of sharing mode for sharing data:When processing unit judges to treat the type of sharing data as the first kind During type, if treating that sharing data is structural data(For example, address list, calendar etc.), then processing unit please by communication unit Terminal is asked to treat that sharing data difference uploads onto the server;And treat asking for sharing data from another terminal when receiving When asking, processing unit notifies another terminal obtains from server difference to treat sharing data by communication unit.Here, difference uploads It is meant that and the different piece that corresponding data of the sharing data with being stored in server is treated in terminal uploads onto the server.Example Such as, if particular terminal treats that sharing data is telephone directory, wherein comprising 200 contact persons, and corresponding electricity in the server Talk about it is thin in only 150 contact persons, then difference, which uploads, represents the two different part(50 contact persons)It is uploaded to server. Similarly, difference acquisition is meant that another terminal obtains only from server and treated in server in sharing data and another terminal The different piece of corresponding data.So make it that data transfer throughput is small, so that transmission speed is faster, the bandwidth of occupancy is smaller. Here it is possible to the attribute information by file to be shared(Such as, suffix or metadata)Judgement treats whether sharing data is structuring Data.
In addition, according to another embodiment of the invention, judge to treat the type of sharing data as the first kind in processing unit Type and in the case for the treatment of that sharing data is structural data, processing unit can also will be treated point by communication unit requesting terminal Enjoy data to upload onto the server, that is, will treat that sharing data uploads onto the server completely, when communication unit is received from another During the request for treating sharing data of one terminal, processing unit can also notify another terminal to be obtained from server by communication unit File to be shared is taken, that is, obtains file to be shared completely from server.
In addition, according to another embodiment of the invention, in step s 13, when processing unit judges to treat sharing data When type is the first kind, if treating that sharing data is unstructured data(For example, document, photo etc.), then processing unit is not Notice terminal, which uploads, treats sharing data to server;And work as and receive the request for treating sharing data from another terminal When, notify another terminal obtains from the terminal to treat sharing data, to cause another terminal with the terminal by establishing data sharing Passage obtains and treats sharing data, i.e., realizes data sharing using P2P access mechanisms.In addition, alternately, when due to Netowrk tape When the limitation of width etc. can not establish data sharing passage between two terminals, data relay can also be established by server and led to Road allows another terminal to obtain data from the terminal.
In addition, according to another embodiment of the present invention, judge to treat the type of sharing data as the first kind in processing unit And in the case for the treatment of that sharing data is unstructured data, processing unit can also notify terminal to treat point by communication unit Data are enjoyed to upload onto the server, when receiving the request for treating sharing data from another terminal, notify another terminal from Server obtains and treats sharing data, and in this case, server can provide more data processings to the user of another terminal Option.For example, due to consideration that different terminals are different to the disposal abilities of data, such as the video format ratio that computer terminal plays Mobile phone terminal will be enriched, it is necessary to transcoding be carried out to video, therefore can provide the option on data format adaptation, with pin respectively To several coded formats such as PC, iPhone, Android device;And due to consideration that hardware performance, the Netowrk tape of different terminals Width, such as computer can play the video of higher code check, and mobile phone can only play the video compared with low bit- rate, so needing to video Data carry out different code checks and recompiled, and can provide the option on video code rate adaptation, such as video website is " super Clearly ", the different video quality option such as " high definition ", " standard ", " very fast ".User is being generated into class file, non-structured treated In the case that sharing data uploads onto the server, server can provide the data-handling capacity of more horn of plenty, with preferably suitable Terminal and network environment when sharing using family.
In addition, according to another embodiment of the present invention, in step s 13, based on treating the type of sharing data, it is determined that treating point Enjoy including the step of sharing mode for data:When the type of sharing data generates file for Second Type i.e. network, Processing unit is according to metadata, the acquisition by communication unit from web search file corresponding with the metadata for treating sharing data Address;If from web search to the acquisition address of file corresponding with metadata, with treating that sharing data stores in association Address is obtained to the memory cell of server;And when receiving the request for treating sharing data from another terminal, to Another terminal provides the acquisition address of file corresponding with metadata.So, another terminal can be according to the acquisition address in net Sharing data is treated in network to be shared.It for example can be to treat the BT seeds of sharing data or treat sharing data to obtain address Download URL.When will obtain in memory cell of the address storage to server, address can will be obtained to treating that sharing data is related In the knowledge base that the storage of connection ground refers into the memory cell of server above foundation.
In these cases, send and treat that the terminal user for sharing request of sharing data treats sharing data to clothes without uploading Business device, server, which is also required to not store, treats sharing data, but server is searched and treats sharing data in a network according to metadata, Sharing for data is realized by network, with the bandwidth being preferably adapted to when user accesses and terminal capabilities etc..
Fig. 2 is the schematic block diagram according to the server for sharing data of the embodiment of the present invention.Shown in Fig. 3 with end The server 1 of end communication includes communication unit 11, memory cell 12 and processing unit 13.
Wish to send with other terminal user's sharing datas and to server in terminal user and treat that sharing for sharing data please In the case of the metadata for seeking and treating sharing data, the communication unit 11 of server 1 receive carry out self terminal treat sharing data Share request, and treat the metadata of sharing data based on sharing request and being obtained from terminal.
Processing unit 13 is used for the type that sharing data is treated according to the acquired metadata for treating sharing data judgement, and Based on treating the type of sharing data, it is determined that treats sharing data shares mode.
Specifically, after communication unit 11 is got after the metadata of sharing data from terminal, with the description class for Fig. 1 Seemingly, processing unit 13 judges to treat sharing data as the first kind or Second Type according to acquired metadata first, also Treat that sharing data generates type file for user or network generates file.
According to one embodiment of present invention, when when the type of sharing data is the first kind, if treating sharing data It is structural data, then processing unit 13 will treat that sharing data difference uploads onto the server 1 by the requesting terminal of communication unit 11; And when communication unit 11 receives the request for treating sharing data from another terminal, processing unit 13 passes through communication unit Member 11 notifies another terminal obtains from the difference of server 1 to treat sharing data.In addition, alternately, treating the class of sharing data Type is the first kind and in the case for the treatment of that sharing data is structural data, and processing unit 13 can also pass through communication unit 11 Requesting terminal will treat that sharing data uploads onto the server 1, that is, upload onto the server 1 completely, when communication unit 11 receives During the request for treating sharing data from another terminal, processing unit 13 can also notify another terminal by communication unit 11 Obtained from server 1 and treat sharing data, that is, obtained treat sharing data completely.
In addition, according to another embodiment of the invention, when when the type of sharing data is the first kind, if treated point It is unstructured data to enjoy data, then processing unit 13 does not notify terminal uploads to treat sharing data;And when communication unit 11 connects When receiving the request for treating sharing data from another terminal, processing unit 13 by communication unit 11 notify another terminal from Terminal obtains and treats sharing data, so that another terminal and terminal are by establishing data sharing passage(P2P)Obtain and wait to share Data, in addition, alternately, because the reasons such as network bandwidth can not establish the situation of data sharing passage between two terminals Under, another terminal of data relay passage can also be established by server 1 to treat sharing data from terminal acquisition.
In addition, according to another embodiment of the invention, for the first kind and wait to share in the type for treating sharing data In the case that data are unstructured data, processing unit 13 can also be uploaded by terminal and treat sharing data to server 1, when When communication unit 11 receives the request for treating sharing data from another terminal, processing unit 13 is logical by communication unit 11 Know that another terminal obtains file to be shared from server 1, in this case, similar with the description for Fig. 1, server can carry For more data processing options, to better adapt to the terminal and network environment when user shares.
In addition, according to another embodiment of the invention, when processing unit 13 judges to treat the type of sharing data as second During type, processing unit 13 is corresponding with the metadata for treating sharing data from web search by communication unit 11 according to metadata File acquisition address;If from web search to the acquisition address of file corresponding with metadata, processing unit 13 with Treat that sharing data stores in association and obtain address to memory cell 13;And when communication unit 11 is received from another terminal The request for treating sharing data when, processing unit 13 is provided corresponding with metadata literary by communication unit 11 to another terminal The acquisition address of part.The acquisition address can be BT seeds or URL etc..
Fig. 3 is a kind of flow chart of the method for sharing data according to embodiments of the present invention.Here, Fig. 3 method can be with It is applied to the terminals such as computer, mobile phone.
When the user of the terminals such as computer, mobile phone wishes user of the sharing data to other-end, in step S31, eventually The communication unit at end sends the request of sharing for treating sharing data to server, and is treated based on sharing described in request to server upload The metadata of sharing data, the metadata for server judge described in treat sharing data as the first kind or Second Type, By treated described in determination sharing data wait to share in a manner of.As described in Figure 1, the first kind is that user generates class text above Part, Second Type are that network generates file.Server is how to judge to treat the type of sharing data according to metadata to determine to treat Sharing data shares mode as described in Figure 1.
Then, in step s 32, the communication unit of terminal receives from server and treats the request of sharing data, and according to Received request will be described in detail below to treating that sharing data operates in the memory cell of terminal.
According to one embodiment of present invention, in step s 32, treated if the communication unit of terminal receives server First request of sharing data, then the processing unit of terminal will treat that sharing data difference is uploaded to institute by the communication unit of terminal Server is stated, to cause server to treat that sharing data is shared with other-end.First request represents that server judges to wait to share The type of data is the first kind, and treats that sharing data is structural data.Here, the communication unit of terminal receives from server The first request to be server be sent to the feedback of sharing request and metadata for terminal.Accordingly, terminal will be deemed as The structural data that user generates class file uploads onto the server so that, can when other terminal users wish to share the data Difference acquisition is carried out to treat sharing data from server, to reduce communication flows, so as to save network bandwidth and time.It can replace Dai Di, the first request that server treats sharing data is received in the communication unit of terminal, the processing unit of terminal passes through end The communication unit at end can also will treat that sharing data uploads onto the server, i.e., upload onto the server completely.
In addition, according to another embodiment of the invention, in step s 32, if the communication unit of terminal receives clothes Business device treats the second request of sharing data, then is not uploaded to server and treat sharing data and receiving pair from another terminal It is described directly to establish data sharing passage with another terminal when sharing request when sharing data so that another terminal obtains Sharing data is treated, here, the second request represents that server judges to treat the type of sharing data as the first kind, and treats sharing data For unstructured data.Here, because server judges the unstructured data of data to be shared as the first kind, although connecing Receive the request of server, but the processor of terminal does not upload to server and treats sharing data, but use P2P mechanism with Other terminals, which are realized, to be shared.In addition, alternately, when the limitation due to network bandwidth etc. can not establish number between two terminals During according to sharing passage, another terminal of data relay passage can also be established by server to obtain number from the terminal According to.
In addition, according to another embodiment of the invention, in step s 32, the communication unit of terminal receives server The second request of sharing data is treated, the processing unit of terminal will treat that sharing data is uploaded to service by the communication unit of terminal Device, to cause server to treat that sharing data is shared with other-end, here, the second request represents that server judges number to be shared According to type be the first kind, and treat that sharing data is unstructured data.It is uploaded in the unstructured data of the first kind In the case of server, such as described in Figure 1, server can provide the data-handling capacity of more horn of plenty, with more preferable Ground adapts to the terminal and network environment when user shares.
In addition, according to another embodiment of the invention, in step S32, the communication unit of terminal receives server pair The 3rd request of sharing data is treated, does not treat sharing data to described in server upload.Here, the 3rd request represents that server judges The type for treating sharing data is Second Type, and by with sharing acquisition of the web search to file corresponding with the metadata The mode of location treats that sharing data is shared with other-end by described.Treating sharing data for Second Type i.e. network generation text In the case of part, although the communication unit of terminal receives the request of server, data to be shared are not uploaded actually, But the Network Capture address for treating sharing data is provided from server to other terminals, so it is not only able to save share time, And it can preferably be adapted to bandwidth and equipment performance when user accesses etc..
Fig. 4 is the schematic block diagram according to the terminal organ for sharing data of the embodiment of the present invention.Shown in Fig. 3 with clothes The terminal 2 of business device communication includes communication unit 21, memory cell 22 and processing unit 23.Communication unit 21 is used for server The metadata shared request and treat sharing data for treating sharing data is sent, memory cell 21 treats sharing data for storage, And sharing data is treated in the request for treating sharing data that processing unit 23 is used to be received from server according to communication unit 21 Operated.
When the user of the terminals such as computer, mobile phone 2 wishes user of the sharing data to other-end, the communication unit of terminal 2 First 21 are used to send the request of sharing for treating sharing data to server, and wait to share described in request to server upload based on sharing The metadata of data, the metadata for server judge described in treat sharing data as the first kind or Second Type, with true The fixed mode to be shared for treating sharing data.Such as above as described in Figure 1, the first kind is that user generates class file, Second Type is that network generates file.Server is how to judge to treat the type of sharing data according to metadata to determine to wait to share Data share mode as described in Figure 1.
According to one embodiment of present invention, receive server in the communication unit 21 of terminal 2 and treat sharing data First request, the processing unit 23 of terminal 2 are treated in sharing data difference by communication unit 21 by what is stored in memory cell 22 Server is reached, to cause server to treat that sharing data is shared with other-end.Here, the first request represents that server judges The type for treating sharing data is the first kind, and treats that sharing data is structural data.Alternately, in the communication unit of terminal 2 Member 21 receives the first request that server treats sharing data, and the processing unit 23 of terminal 2 can also by communication unit 21 It will treat that sharing data uploads onto the server, i.e., upload onto the server completely.
In addition, according to another embodiment of the invention, the communication unit 21 of terminal 2, which receives server and treated, shares number According to the second request, do not uploaded to server and to treat sharing data and receive from another terminal to the sharing data for the treatment of Directly data sharing passage is established when sharing request with another terminal so that sharing data is treated described in another terminal acquisition, Here, the second request represents that server judges to treat the type of sharing data as the first kind, and treats that sharing data is unstructured Data.In addition, alternately, when the limitation due to network bandwidth etc. can not establish data sharing passage between two terminals When, another terminal of data relay passage can also be established by server to obtain data from the terminal.
In addition, according to another embodiment of the invention, the communication unit 21 of terminal 2, which receives server and treated, shares number According to second request, the processing unit 23 of terminal 2 will treat that sharing data uploads onto the server by communication unit 21, to take Business device will treat that sharing data is shared with other-end.Here, the second request represent that server judges to treat the type of sharing data For the first kind, and treat that sharing data is unstructured data.Uploaded onto the server in the unstructured data of the first kind In the case of, such as described in Figure 1, server can provide the data-handling capacity of more horn of plenty, to better adapt to use Terminal and network environment when family is shared.
In addition, according to another embodiment of the invention, the communication unit 21 of terminal 2, which receives server and treated, shares number According to the 3rd request, not to server upload described in treat sharing data, the 3rd request represents that server judges to treat sharing data Type is Second Type, and share web search to file corresponding with the metadata obtain address by way of by institute State and treat that sharing data is shared with other-end.
The method of sharing data disclosed by the invention and corresponding server and terminal have advantages below:Can to User data carries out intelligent management, for the different types of data of user, carries out different storages, shares strategy;Provide according to Rely the data sharing of user environment, to be preferably adapted to the current access consideration of user, so as to preferably improve Consumer's Experience.
Each embodiment of the present invention has been described in detail above.However, it should be appreciated by those skilled in the art that do not taking off In the case of principle and spirit from the present invention, these embodiments can be carried out with various modifications, combination or sub-portfolio, and this The modification of sample should be fallen within the scope of the present invention.

Claims (16)

1. a kind of method of sharing data, methods described is applied to server, it is characterised in that methods described includes following step Suddenly:
The request of sharing for treating sharing data from first terminal is received, and shares request from the first terminal based on described The metadata of sharing data is treated described in acquisition;
Treated according to acquired sharing data metadata judge described in treat the type of sharing data as the first kind still Second Type, class file is generated wherein the first kind is user, the Second Type is that network generates file;
Based on the type for treating sharing data, it is determined that it is described treat sharing data share mode.
2. the method for sharing data as claimed in claim 1, wherein,
Based on the type for treating sharing data, it is determined that described treat including the step of sharing mode for sharing data:
When the type when sharing data is the first kind, if described treat that sharing data is structural data, ask The first terminal treats that sharing data difference is uploaded to the server by described;And
When receiving the request for treating sharing data from second terminal, notify that the second terminal is poor from the server Separately win and treat sharing data described in taking.
3. the method for sharing data as claimed in claim 1, wherein,
Based on the type for treating sharing data, it is determined that described treat including the step of sharing mode for sharing data:
When the type when sharing data is the first kind, if described treat that sharing data is unstructured data, no The first terminal is notified to treat sharing data described in uploading;And
When receive from second terminal to it is described when the request of sharing data when, notify the second terminal from described first Terminal treats sharing data described in obtaining, to cause the second terminal to be obtained with the first terminal by establishing data sharing passage Sharing data is treated described in obtaining.
4. the method for sharing data as claimed in claim 1, wherein,
Based on the type for treating sharing data, it is determined that described treat including the step of sharing mode for sharing data:
When the type when sharing data is Second Type, the server according to the metadata, from web search with The acquisition address for treating file corresponding to the metadata of sharing data;
If treat sharing data phase with described to the acquisition address of file corresponding with the metadata from the web search Associatedly store the acquisition address;And
When receive from second terminal to it is described when the request of sharing data when, to the second terminal provide with the member The acquisition address of file corresponding to data.
5. a kind of method of sharing data, methods described is applied to terminal, it is characterised in that the described method comprises the following steps:
The request of sharing for treating sharing data is sent to server, and shares based on described in and is treated described in request to server upload The metadata of sharing data, the metadata for the server judge described in treat sharing data as the first kind or second Type, by treated described in determination sharing data wait to share in a manner of, the first kind be user generate class file, second class Type is that network generates file.
6. the method for sharing data as claimed in claim 5, wherein, the server is received to the sharing data for the treatment of First request, treats that sharing data difference is uploaded to the server, to cause the server by the number to be shared by described According to being shared with other-end, wherein, first request represents that the server treats the type of sharing data as the described in judging One type, and described treat that sharing data is structural data.
7. the method for sharing data as claimed in claim 5, wherein,
The server is received to second request for treating sharing data, not to number to be shared described in server upload Directly number is established when sharing data with another terminal when sharing request to described according to and receiving from another terminal According to sharing passage so that another terminal obtain described in treat sharing data, wherein, second request represents the server The type of sharing data is treated described in judging as the first kind, and described treats that sharing data is unstructured data.
8. the method for sharing data as claimed in claim 5, wherein,
The server is received to the 3rd request for treating sharing data, not to number to be shared described in server upload According to, wherein, the 3rd request represents that the server treats the type of sharing data as Second Type described in judging, and by dividing Enjoy web search and treat that sharing data is shared with other by described to the mode of the acquisition address of file corresponding with the metadata Terminal.
9. a kind of server for sharing data, it is characterised in that the server includes:
Communication unit, share request for receiving the request of sharing for treating sharing data from first terminal, and based on described From the metadata that sharing data is treated described in first terminal acquisition;
Memory cell;And
Processing unit, the type for treating to treat sharing data described in the metadata judgement of sharing data according to acquired are The first kind or Second Type, wherein the first kind, which is user, generates class file, the Second Type generates for network File, and based on the type for treating sharing data, it is determined that it is described treat sharing data share mode.
10. server as claimed in claim 9, wherein, when the type when sharing data is the first kind, if institute State and treat that sharing data is structural data, then the processing unit asks the first terminal by described in by the communication unit Treat that sharing data difference is uploaded to the server;And
When the communication unit receives the request for treating sharing data from second terminal, the processing unit passes through institute Communication unit is stated to notify to treat sharing data described in the second terminal from server difference acquisition.
11. server as claimed in claim 9, wherein, when the type when sharing data is the first kind, if institute State and treat that sharing data is unstructured data, then the processing unit does not notify number to be shared described in the first terminal upload According to;And
When the communication unit receive from second terminal to it is described when the request of sharing data when, the processing unit leads to Cross the communication unit notify the second terminal from the first terminal obtain described in treat sharing data so that described the Two terminals treat sharing data by establishing with the first terminal described in the acquisition of data sharing passage.
12. server as claimed in claim 9, wherein, when the type when sharing data is Second Type, the place Unit is managed according to the metadata, by the communication unit from web search and the metadata pair for treating sharing data The acquisition address for the file answered;
If treated from the web search to the acquisition address of file corresponding with the metadata, the processor with described Sharing data stores the acquisition address to the memory cell in association;And
When the communication unit receive from second terminal to it is described when the request of sharing data when, the processing unit leads to Cross the acquisition address that the communication unit provides file corresponding with the metadata to the second terminal.
13. a kind of terminal, the terminal with server communication and including:Processing unit, communication unit and store number to be shared According to memory cell, it is characterised in that the communication unit sends to server and treats the request of sharing of sharing data, and is based on institute The metadata shared and sharing data is treated described in request to server upload is stated, the metadata judges for the server It is described to treat that sharing data is the first kind or Second Type, wherein the first kind, which is user, generates class file, described the Two types be network generate file, by treated described in determination sharing data wait to share in a manner of.
14. terminal as claimed in claim 13, wherein, the communication unit receives the server to the number to be shared According to the first request, the processing unit treats that sharing data difference is uploaded to the service by the communication unit by described Device, to cause the server to treat that sharing data is shared with other-end by described, wherein, first request represents the clothes Business device treats the type of sharing data as the first kind described in judging, and described treats that sharing data is structural data.
15. terminal as claimed in claim 13, wherein,
The communication unit receives the server to second request for treating sharing data, is not uploaded to the server It is described when sharing data and to receive from another terminal to described when sharing data when sharing request, the processing unit Data sharing passage is directly established with another terminal by the communication unit so that treated described in another terminal acquisition Sharing data, wherein, second request represents that the server treats the type of sharing data as the first kind described in judging, and It is described to treat that sharing data is unstructured data.
16. terminal as claimed in claim 13, wherein,
The communication unit receives the server to the 3rd request for treating sharing data, and the processing unit is not to institute State and treat sharing data described in server upload, wherein, the 3rd request represents that the server treats sharing data described in judging Type be Second Type, and share web search to file corresponding with the metadata obtain address by way of will It is described to treat that sharing data is shared with other-end.
CN201210587452.5A 2012-12-28 2012-12-28 The method and respective server and terminal of sharing data Active CN103905516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210587452.5A CN103905516B (en) 2012-12-28 2012-12-28 The method and respective server and terminal of sharing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210587452.5A CN103905516B (en) 2012-12-28 2012-12-28 The method and respective server and terminal of sharing data

Publications (2)

Publication Number Publication Date
CN103905516A CN103905516A (en) 2014-07-02
CN103905516B true CN103905516B (en) 2017-11-24

Family

ID=50996671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210587452.5A Active CN103905516B (en) 2012-12-28 2012-12-28 The method and respective server and terminal of sharing data

Country Status (1)

Country Link
CN (1) CN103905516B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156486B (en) * 2014-08-28 2017-05-10 百度在线网络技术(北京)有限公司 Method and system for transmitting information through search engine and search engine
US10182114B2 (en) * 2016-07-04 2019-01-15 Novatek Microelectronics Corp. Media content sharing method and server
CN106375479B (en) * 2016-10-26 2019-11-15 北京小米移动软件有限公司 Data sharing method and device
CN106790505B (en) * 2016-12-16 2020-02-14 清华大学 Distributed sharing method and device of unstructured resources based on cloud directory
CN106844714A (en) * 2017-02-08 2017-06-13 河海大学常州校区 A kind of knowledge base management system
CN113542337B (en) 2020-04-30 2023-02-10 北京字节跳动网络技术有限公司 Information sharing method and device, electronic equipment and storage medium
CN114339290B (en) * 2021-12-30 2024-07-19 杭州当虹科技股份有限公司 Large screen management subsystem, large screen synchronous playing system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667191A (en) * 2009-09-04 2010-03-10 北京邮电大学 Information sharing method based on P2P
CN101795240A (en) * 2009-02-03 2010-08-04 宏碁股份有限公司 Instant data sharing system and machine readable media thereof
CN101854376A (en) * 2009-04-03 2010-10-06 鸿富锦精密工业(深圳)有限公司 Peer-to-peer file sharing system and method
CN102254022A (en) * 2011-07-27 2011-11-23 河海大学 Method for sharing metadata of information resources of various data types

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100363030B1 (en) * 2001-03-27 2002-11-30 서영현 Data shared method by using internet and its system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795240A (en) * 2009-02-03 2010-08-04 宏碁股份有限公司 Instant data sharing system and machine readable media thereof
CN101854376A (en) * 2009-04-03 2010-10-06 鸿富锦精密工业(深圳)有限公司 Peer-to-peer file sharing system and method
CN101667191A (en) * 2009-09-04 2010-03-10 北京邮电大学 Information sharing method based on P2P
CN102254022A (en) * 2011-07-27 2011-11-23 河海大学 Method for sharing metadata of information resources of various data types

Also Published As

Publication number Publication date
CN103905516A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103905516B (en) The method and respective server and terminal of sharing data
CN111372100B (en) Distributed election-based end-to-end content distribution network system and distribution method
US10860734B2 (en) Remote data access techniques for portable devices
US9204180B2 (en) Method, server and terminal for audio and video on demand
US10708350B2 (en) Method and system for content delivery of mobile terminal applications
US9065835B2 (en) Redirecting web content
US8392407B2 (en) Method, apparatus and system of searching and downloading mobile telephone file
US20170155927A1 (en) Method, device and system for playing live video
US9319345B2 (en) Methods and systems for rapid data acquisition over the internet
US7873019B2 (en) Systems and methods for establishing gateway bandwidth sharing ad-hoc networks
US20080071907A1 (en) Methods and apparatus for data transfer
EP3110098A1 (en) Mobile terminal and method for achieving sharing of streaming media file of cloud based on dlna
CN102055718B (en) Method, device and system for layering request content in http streaming system
KR20100048858A (en) System and method for enabling p2p application in wireless mobile network
US20060236386A1 (en) Method and apparatus for cooperative file distribution in the presence of firewalls
CN102006368A (en) Streaming media audio file play method based on mobile terminal memory card cache technology
WO2011088725A1 (en) Method and apparatus for synchronization based on hypertext transfer protocol (http)
CN101800731A (en) Network transmission management server, network transmission management method and network transmission system
US9325803B2 (en) Methods, circuits, devices, systems and associated computer executable code for caching content
Meyn Browser to browser media streaming with HTML5
US20130054691A1 (en) Flexible rule based multi-protocol peer-to-peer caching
CN115022660A (en) Parameter configuration method and system for content distribution network
Ramesh et al. Mobile applications in multimedia cloud computing
Baydeti et al. Scalable Models for Redundant Data Flow Analysis in Online Social Networks
CN115834547B (en) Method and system for transmitting HTTP request

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant