Summary of the invention
Technical problem to be solved by this invention is to provide a kind of compression and decompression method, Apparatus and system based on cloud compression link, does not allow file to upload as annex to solve in prior art, the problem that restriction file is shared on network.
In order to solve the problem, the invention discloses a kind of compression method based on cloud compression link, comprising:
Trigger cloud compression request;
Client carries out automatic Compression according to described cloud compression request to the local file data that will compress, and the data upload after compression is stored to server as cloud packed data;
Server generates corresponding cloud compression link according to described cloud compression request, and this cloud compression link is sent to client;
Server is set up and the mapping relations of cloud compression link cloud packed data.
Wherein, described cloud compression link comprises host-host protocol and file identification information, the constituent instruments information of wherein said file identification information corresponding server medium cloud packed data, and described constituent instruments packets of information is containing document directory structure.
Wherein, the described local file data that will compress are Single document, or are multiple file, or are Single document folder, or are multiple file.
Wherein, if described cloud compression request is first compression and uploading data, regeneration cloud compression link, then described server pass on the client complete after, then generate corresponding cloud compression link according to described request; If described cloud compression request is first generate cloud compression link, then described server generates corresponding cloud compression link according to described request after receiving described request, and this cloud compression link is sent to client immediately, receive the cloud packed data of client upload simultaneously.
Preferably, if described cloud compression request is first generate cloud compression link, then also comprise: client do not upload complete in, another client downloads by clicking cloud compression link the part cloud packed data uploaded from described server.
Preferably, after described triggering cloud compression request, also comprise: the constituent instruments information of the local file that client will be compressed is uploaded to server; Whether server stores identical file according to described constituent instruments information inquiry, and Query Result is returned to client, comprises the constituent instruments information of the partial document that server does not store in described Query Result; Client is according to described Query Result, and the local file data do not stored by server carry out automatic Compression, and storage that the cloud packed data after compression is uploaded onto the server; If server has stored the All Files that client will be compressed, then the cloud compression link of correspondence has directly been sent to client by server.
Preferably, the cloud packed data piecemeal after compression to upload onto the server storage by client; If upload failure after client upload partial data, then described method also comprises: client restarts uploading data, if server exists identical data block, then client no longer uploads described identical data block; Or the breakpoint place that client is uploading failure makes marks, then continue uploading data from the breakpoint of described mark.
Preferably, after described triggering cloud compression request, also comprise: client adds password and/or annotation information before compression; Or, during server stores cloud packed data, add password and/or annotation information.
Preferably, after described triggering cloud compression request, also comprise: custom end intelligent judges compression ratio and adjustment compression level compresses automatically.
Present invention also offers a kind of decompression method based on cloud compression link, comprising:
The request of cloud decompress(ion) is triggered by opening cloud compression link;
Client obtains the constituent instruments information of the cloud packed data corresponding with described cloud compression link from server, and described constituent instruments packets of information is containing document directory structure;
Client, according to described cloud compression link, downloads corresponding cloud packed data from server;
Client carries out decompress(ion) according to described constituent instruments information to downloading to local cloud packed data, obtains original file data.
Preferably, described by after opening cloud compression link and triggering the request of cloud decompress(ion), also comprise: client obtains the constituent instruments information of the cloud packed data corresponding with described cloud compression link from other clients that server is specified, and described constituent instruments packets of information is containing document directory structure; Client, according to described cloud compression link, downloads corresponding cloud packed data from other clients described; Client carries out decompress(ion) according to described constituent instruments information to downloading to local cloud packed data, obtains original file data.
Wherein, described cloud compression link comprises host-host protocol and file identification information, the constituent instruments information of wherein said file identification information corresponding server medium cloud packed data, and described constituent instruments packets of information is containing document directory structure.
Preferably, all or part of cloud packed data of described client downloads.
Present invention also offers a kind of compression set based on cloud compression link, comprising: client terminal device and server unit, wherein,
Described client terminal device comprises:
Cloud compression trigger element, for triggering cloud compression request;
Cloud compression unit, for carrying out automatic Compression according to described cloud compression request to the local file data that will compress, and stores the data upload after compression to server as cloud packed data;
Cloud compression link receiving element, for receiving corresponding cloud compression link from server;
Described server unit comprises:
Cloud packed data memory cell, for storing the cloud packed data of client upload;
Cloud compression link generation unit, for generating corresponding cloud compression link according to described cloud compression request, and sends to client by this cloud compression link;
Map unit, for the mapping relations to the foundation of cloud packed data and cloud compression link.
Wherein, described cloud compression link comprises host-host protocol and file identification information, the constituent instruments information of wherein said file identification information corresponding server medium cloud packed data, and described constituent instruments packets of information is containing document directory structure.
Wherein, the described local file data that will compress are Single document, or are multiple file, or are Single document folder, or are multiple file.
Preferably, if described cloud compression request is first compression and uploading data, regeneration cloud compression link, then the cloud compression link generation unit in described server unit pass on the client complete after, then generate corresponding cloud compression link according to described request; If described cloud compression request is first generate cloud compression link, cloud compression link generation unit then in described server unit generates corresponding cloud compression link according to described request after receiving described request, and this cloud compression link is sent to client immediately, the cloud packed data memory cell simultaneously in described server unit receives the cloud packed data of client upload and stores.
Preferably, described client terminal device also comprises:
Constituent instruments information uploading unit, the constituent instruments information for the local file that will compress is uploaded to server;
Described cloud compression unit is also for the Query Result according to server, and the local file data do not stored by server carry out automatic Compression, and storage that the cloud packed data after compression is uploaded onto the server;
Described server unit also comprises:
Query unit, for whether storing identical file according to described constituent instruments information inquiry, and returning to client by Query Result, comprising the constituent instruments information of the partial document that server does not store in described Query Result; If server has stored the All Files that client will be compressed, then the direct cloud compression link by correspondence has sent to client.
Preferably, the cloud packed data piecemeal after compression to upload onto the server storage by the cloud compression unit of described client terminal device; Described client terminal device also comprises: breakpoint transmission unit, for when uploading failure after described cloud compression unit upload unit divided data, and when restarting uploading data, if server exists identical data block, then no longer upload described identical data block; Or, make marks at the breakpoint place uploading failure, then continue uploading data from the breakpoint of described mark.
Preferably, described client terminal device also comprises:
Ciphering unit, for adding password before cloud compression unit compresses;
And/or annotation unit, for adding annotation information before cloud compression unit compresses.
Preferably, described server unit also comprises:
Ciphering unit, adds password during for storing cloud packed data;
And/or annotation unit, adds annotation information during for storing cloud packed data.
Preferably, described client terminal device also comprises:
Compression level adjustment unit, also adjusts compression level automatically for intelligent decision compression ratio;
The compression level that described cloud compression unit adjusts with compression level adjustment unit compresses.
Present invention also offers a kind of decompressing device based on cloud compression link, comprising: client terminal device and server unit, wherein,
Described client terminal device comprises:
Cloud decompress(ion) trigger element, for triggering the request of cloud decompress(ion) by opening cloud compression link;
Constituent instruments information acquisition unit, for obtaining the constituent instruments information of the cloud packed data corresponding with described cloud compression link from server, described constituent instruments packets of information is containing document directory structure;
Download unit, for according to described cloud compression link, downloads corresponding cloud packed data from server;
Decompression unit, for carrying out decompress(ion) according to described constituent instruments information to downloading to local cloud packed data, obtains original file data;
Described server unit comprises:
Constituent instruments information query unit, for searching the constituent instruments information of the cloud packed data corresponding with described cloud compression link, and returns to client;
Cloud packed data query unit, for the cloud packed data corresponding according to described constituent instruments information searching, and returns to client.
Preferably, constituent instruments information acquisition unit other clients also for specifying from server of described client terminal device obtain the constituent instruments information of the cloud packed data corresponding with described cloud compression link, and described constituent instruments packets of information is containing document directory structure; The download unit of described client terminal device, also for according to described cloud compression link, downloads corresponding cloud packed data from other clients described.
Present invention also offers a kind of system based on cloud compression link, comprise the above-mentioned compression set based on cloud compression link, and, the above-mentioned decompressing device based on cloud compression link.
Compared with prior art, the present invention includes following advantage:
First, the present invention proposes a kind of new-type compression method, local file automatic pressing can be contractd upload on the webserver and store, the corresponding cloud packed data of server generates cloud compression link and sends to client again, and client user can issue cloud compression link other client user.User, by clicking described cloud compression link, just can directly download corresponding cloud packed data from network and carry out decompress(ion).Therefore, the file translations of arbitrary size can be cloud compression link by the method for the invention, conveniently send to other people, save transmission bandwidth, be easy to share, almost any can the place of input character, as in instant messaging window, microblogging, forum, mail etc., file can be shared and without the need to uploading annex.
Secondly, compressed file, compared with the mode of net dish upload file, without the need to user's manual compression file, and then is manually uploaded to network by the present invention, but by compression with upload to combine and settle at one go, saves and operate and compress uplink time, very convenient.
Again, the present invention also without the need to user through open any browser, input network address, log in, the complicated net dish operating procedure such as to upload, but in client, cloud compressed software is installed, directly trigger cloud compression by direct click right menu or the mode such as cloud compressed software of opening client, therefore the present invention operates directly convenient.
Finally, the present invention also has Intelligent Selection pressure compression levels, supports breakpoint transmission, can add password and annotation information etc. advantage, and these advantages will describe in detail in a specific embodiment.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
The present invention proposes a kind of new-type compression method, local file automatic pressing can be contractd upload on the webserver and store, the corresponding cloud packed data of server generates cloud compression link and sends to client again, and client user can issue cloud compression link other client user.User, by clicking described cloud compression link, just can directly download corresponding cloud packed data from network and carry out decompress(ion).
Below all data flow to be uploaded onto the server by this employing and the new type of compression mode generating cloud compression link calls that cloud compresses, to compress and cloud packed data after uploading onto the server is called cloud compressed file.
Below by embodiment, this new type of compression mode is described in detail.
With reference to Fig. 1, it is a kind of compression method flow chart based on cloud compression link described in the embodiment of the present invention.
Step 11, triggers cloud compression request;
Generally trigger cloud compression request by user operation, user selects in client the local file data will carrying out cloud compression, is then triggered by certain operation and carries out cloud compression to this file data.
Wherein, described " certain operation " can be click right menu, selects " adding cloud compressed file to " option to trigger; Also can be open the cloud compressed software main window that client installs, select File be also clicked " cloud link " option and is triggered; Or, also can be other operation triggering mode, specific implementation can be carried out according to practical application.
User is after client triggers cloud compression request, and client and server carries out the process of step 121 and step 122 respectively:
Step 121, client carries out automatic Compression according to described cloud compression request to the local file data that will compress, and the data upload after compression is stored to server as cloud packed data;
Namely client is by compression with upload to combine and automatically complete;
Wherein, the described local file data that will compress can be Single document, also can be multiple file, can also be Single document folder or multiple file.Namely can be a cloud compressed file by Single document or multiple file, Single document folder or multiple file automatic Compression, and store on the server.The compressed package of multiple file or folder may be comprised in this cloud compressed file.Above-mentioned cloud packed data can refer to described cloud compressed file.
Further, the local file data that compress can be the file or folders before compression, can also be the files carrying out overcompression in this locality.
Step 122, server generates corresponding cloud compression link according to described cloud compression request, and this cloud compression link is sent to client;
Server can generate unique cloud compression link by corresponding each cloud compressed file, and the client of request is issued in this link.
In the present embodiment, described cloud compression link is a hyperlink, and this hyperlink can comprise host-host protocol and file identification information, and described file identification information can be unique cloud compressed file sequence number.In addition can also comprise the information such as filename, file size, network server address (finding corresponding server for client) in described cloud compression link, these information by client upload to server.Wherein unique cloud compressed file sequence number can adopt Hash (Hash) algorithm or MD5 scheduling algorithm to generate, if hash algorithm then can directly represent with hash value.Such as, one comprise host-host protocol, unique cloud compressed file sequence number, filename, file size cloud compression link be expressed as follows:
cloudzip://57C4862BB8058ADED8CA1AB8667A2C59BB5EE0B3&name=Avatar+1080p&length=7062222453
Wherein, the constituent instruments information of described unique cloud compressed file sequence number corresponding server medium cloud packed data, namely correspond to the constituent instruments information of the cloud compressed file on server in database.Described constituent instruments information comprises the sequence number (being sequence number usually with hash value) of file, the information such as title, the bibliographic structure of file, the size of file of file.
According to the difference of practical application, above-mentioned steps 121 and 122 can be carried out simultaneously, and also can successively carry out, this is described in detail in the content below.
After server generates cloud compression link, server also continues to perform step 13.
Step 13, server is set up and the mapping relations of cloud compression link cloud packed data.
Namely the corresponding relation of cloud compressed file and cloud compression link is set up on the server.
Through the process of above-mentioned steps, a file data can be collapsed into a hyperlink, and this hyperlink can be sent to almost Anywhere.Client user clicks this hyperlink, just can directly download corresponding cloud compressed file from network and carry out decompress(ion), thus utilize the Internet to achieve sharing files.Therefore, method described in the embodiment of the present invention is used, the file of arbitrary size, no matter be 10M, 100M or 500M, 1G, as long as server space is enough large, bandwidth is enough high, all can be compressed into a hyperlink, be convenient to very much send to other people, save transmission bandwidth, be easy to share, almost any can the place of input character, no matter be on MSN, or in microblogging, forum, mail, can file be shared and not account for annex space, without the need to uploading.
In addition, by method described in above-described embodiment compared with the mode of net dish upload file, also there is following difference and advantage:
The first, the mode of net dish upload file, as a rule in order to save the transmission time, needing user first manually to use traditional compressed software to compress local file, generating a compressed package, and then manually use net dish to upload compressed package.And the embodiment of the present invention is by compression with upload to combine and settle at one go, user just can obtain a hyperlink after clicking cloud compression, without the need to manual compression file and then manually upload and wait operation, saves and operates and compress uplink time, very convenient.
The second, the mode of net dish upload file needs user to register, user need through open any browser, input network address, log in, the complicated net dish operating procedure such as to upload.And method described in the embodiment of the present invention installs cloud compressed software in client, directly trigger cloud compression by direct click right menu or the mode such as cloud compressed software of opening client, therefore the present invention operates directly convenient.
Based on content embodiment illustrated in fig. 1, the present invention also can realize more function, and has more advantage, illustrates respectively below.
1, step 121 and 122 can perform simultaneously, also can successively perform;
If described request is first compression and uploading data, regeneration cloud compression link, then described server pass on the client complete after, then generate corresponding cloud compression link according to described request; Namely step 121 first performs, and after treating that step 121 is finished, step 122 starts to perform again;
If described request is first generate cloud compression link, then described server generates corresponding cloud compression link according to described request after receiving described request, and this cloud compression link is sent to client immediately, receives the cloud packed data of client upload simultaneously; Namely step 121 and 122 can perform simultaneously, also can first perform step 122 and perform step 121 again.
For above-mentioned the second situation, time on the data flow in cloud compression process not being uploaded onto the server, can first generate cloud compression link, and then continue uploading data stream, otherwise for some comparatively large files, wait for possibly and just can obtain cloud compression link in tens minutes.Such as the cloud compressed software of client is minimized to pallet slowly to transmit on backstage, user need not wait for just first can send out mail to other people cloud compression link, and when other people see this mail, data flow is end of transmission, can normal decompress(ion).
Such as, if the compressing file of 100M is to 50M size when generating cloud compression link, the data of 50M size need transmission about 8 minutes under 1Madsl broadband.When transmitting data (or transmitting data) after formerly generating cloud compression link simultaneously, only need just can generate cloud compression link in tens seconds, then user A can issue others cloud compression link mail immediately, simultaneously cloud is compressed in backstage and transmitted data with 8 minutes again, and when user B checks mail after several hours data end of transmission can decompress(ion).The user A of such cloud compression has saved 8 minutes.
2, limit decompress(ion) is uploaded in limit compression;
If described request is first generate cloud compression link, then can also comprise:
Client do not upload complete in, another client downloads by clicking cloud compression link the part cloud packed data uploaded from described server.
Formerly generate cloud compression link, and then continue in the mode of uploading data stream, can when not uploading complete, the people of decompress(ion) cloud compression link can download the data flow uploading part and carry out decompression operations.Can allow the people of the people and decompress(ion) cloud compression link that make cloud compression link within the shortest time, realize compression and decompress(ion) like this.
Such as, when limit upload cloud compressed data stream limit downloading data stream carry out decompress(ion), user A is after spending the file of 100M cloud compression in tens seconds, immediately cloud compression link Email attachment is issued user B, now cloud compression limit uploading data stream, user B can carry out download decompress(ion) to the partial data stream uploaded immediately, and both sides do not need to wait for.
3, server avoids the problem of repeated storage;
When use the people of cloud compression many especially after, the storage file on server has a lot of repetition.In order to avoid this problem, can carry out hash value calculating on the server to file, if hash value is identical, so two files are identical, then only can preserve a file on the server.On local client, hash value calculating being carried out to file, by showing to contrast with the Hash on server, if there is identical value, namely server having had identical file, then do not carry out transmitting this file, and then save server space and bandwidth.
And server, when generating cloud compression link, if there is user to carry out the cloud compression of same file, then there is identical file in server, so can save this file of transmission, can complete cloud compression instantaneously, only need 1 second." person of the bearing cat .rmvb " of a such as compressed 100M of user A cloud, then server is present in " person of bearing cat .rmvb " file, then during user B cloud compression " person of bearing cat .rmvb ", owing to eliminating the transmitting procedure of this file, only need within 1 second, cloud compression link can be obtained.
Foregoing can be realized by following steps:
After described triggering cloud compression request, also comprise:
1) the constituent instruments information (comprising hash value) of local file that client will be compressed is uploaded to server;
2) whether server stores identical file according to described constituent instruments information inquiry, and Query Result is returned to client, comprises the constituent instruments information of the partial document that server does not store in described Query Result;
Namely whether store same file by the comparison query of hash value, Query Result generally comprises three kinds:
The first All Files being client will be compressed all stores on the server;
The All Files that during the second, client will be compressed all does not store on the server;
The third is in the client All Files that will compress, and has partial document to store on the server, also has the file of remainder not store on the server.
3) client is according to described Query Result, and the local file data do not stored by server carry out automatic Compression, and storage that the cloud packed data after compression is uploaded onto the server;
4) if server has stored the All Files that client will be compressed, then the cloud compression link of correspondence is directly sent to client by server.
4, breakpoint transmission;
Compression upload procedure can support breakpoint transmission, after namely disconnecting network, can proceed cloud compression when again connecting from breakpoint.
Due to file very large time have network disconnect situation, can cause cloud compress interrupt, cause the partial data stream of transmission transmit in vain and need again to transmit.For this problem, piecemeal process can be carried out to the data of large files, such as, carry out the calculating of piecemeal hash value, if server exists identical data block hash value, then this part need not be transmitted again, thus realize breakpoint transmission, namely realize the continuous pressure of breakpoint with breakpoint transmission.In addition, also directly can do data markers at breakpoint place, realize the cloud compression of breakpoint transmission.
Foregoing can be realized by following steps:
Cloud packed data piecemeal after compression to upload onto the server storage by client;
If upload failure after client upload partial data, then described method also comprises:
Client restarts uploading data, if server exists identical data block, then client no longer uploads described identical data block;
Or the breakpoint place that client is uploading failure makes marks, then continue uploading data from the breakpoint of described mark.
5, password is added;
Cloud compression can Choice encryption, and to realize the encryption to cloud compression link, the people carrying out decompress(ion) cloud compression link needs input password just can open, and improves privacy.Select interpolation password both can encrypt when this locality is compressed then to upload, also can encrypt again after server receives the data uploaded.
Foregoing can be realized by following steps:
After described triggering cloud compression request, also comprise:
Client adds password before compression;
Or, during server stores cloud packed data, add password.
6, annotation is added;
Can select to add annotation when carrying out cloud compression, to realize the annotation to cloud compression link, annotation can comprise: the information such as author, related description making cloud compression link, facilitates download person to check.Namely these annotation information can be stored in cloud compressed file when client compressed file, also can be sent on server by client and also store on the server.
Foregoing can be realized by following steps:
After described triggering cloud compression request, also comprise:
Client adds annotation information before compression;
Or, during server stores cloud packed data, add annotation information.
7, compress with different compression levels;
When carrying out compressing file, different compression levels can be selected to compress.Further, can also intelligent decision compression ratio and automatically compressing with different compression levels, such as to store, the compression level such as the fastest, standard.Such as the file that some compression ratios are very low, as files such as rmvb, mp4, mp3, directly with store compressed mode uploading data stream, CPU can not expended.
Foregoing can be realized by following steps:
After described triggering cloud compression request, also comprise:
Custom end intelligent judges compression ratio and adjustment compression level compresses automatically.
8, cloud compression confirms.
Because user may misoperation, such as " adding cloud compression to " file command is performed by mistake, thus secret files passe causing privacy leakage to server by mistake, cloud compresses this file, to improve the accuracy of operation therefore user can be allowed to be confirmed whether before the compression of execution cloud.
For above-mentioned cloud compression method, the embodiment of the present invention additionally provides corresponding decompression method, as shown in Figure 2.
With reference to Fig. 2, it is a kind of decompression method flow chart based on cloud compression link described in the embodiment of the present invention.
Step 201, triggers the request of cloud decompress(ion) by opening cloud compression link;
Step 202, client obtains the constituent instruments information of the cloud packed data corresponding with described cloud compression link from server, and described constituent instruments packets of information is containing document directory structure;
After the request of described cloud decompress(ion) is sent to server by client, the constituent instruments information of the cloud packed data that whois lookup is corresponding with asked cloud compression link, as the sequence number (being sequence number usually with hash value) of file, the information such as title, the bibliographic structure of file, the size of file of file.
As previously mentioned, host-host protocol and unique cloud compressed file sequence number can be comprised in described cloud compression link, or go back the information such as include file name and file size, the constituent instruments information of wherein said unique cloud compressed file sequence number corresponding server medium cloud packed data.According to this corresponding relation, server can fast finding to corresponding constituent instruments information, then return to client.
Client can obtain document directory structure and file attribute (filename, file size etc.) according to the constituent instruments information that server returns.In actual applications, user clicks the constituent instruments information such as inside catalogue, filename, file size can seeing this cloud compressed file after cloud compression link is opened in a browser, and namely these constituent instruments information obtain from server.Like this, user can open cloud compression link and first check the internal file catalogue of this cloud compression link determines whether to download and decompress(ion) again, for thinking that nugatory file user can not be selected to download and decompress(ion), so just need not download that decompress(ion) is complete to be deleted again.
Certainly, if default setting, then described constituent instruments information also can not show user.
Step 203, client, according to described cloud compression link, downloads corresponding cloud packed data from server;
Server can find the constituent instruments information of corresponding cloud packed data according to the unique cloud compressed file sequence number in cloud compression link, then find corresponding compressed file again according to described constituent instruments information.
Further, client can send download request according to document directory structure and file attribute to server, and client can select all files in described document directory structure to download, and partial document also can be selected to download.
Server searches corresponding cloud compressed file according to described download request, and is transferred to client.If client-requested downloads partial document, then server is according to information such as the sequence number of the file of client-requested or file names, finds corresponding file and passes to client.
Above-mentioned steps 202 and step 203 do not have inevitable sequencing.
Step 204, client carries out decompress(ion) according to described constituent instruments information to downloading to local cloud packed data, obtains original file data.
Client selects storing directory, and according to the document directory structure that described server returns, create directory structure under the storing directory of this locality, and carry out decompress(ion).
In above-mentioned decompression procedure, if described cloud compression link is provided with password, before step 202, also need user to input password, then server is verified, after being verified, just continues to perform step 202.
Based on the decompression method shown in Fig. 2, preferably, if a lot of user compresses the cloud compression link generating same file simultaneously, the so file of these users before respective client this locality may have identical compression or after decompress(ion).Therefore, when decompress(ion) cloud compression link, data flow not only can come from server, can come from the subscription client having identical original document equally.Namely be equivalent to construct the P2P network that is node with cloud compressed file, and safeguard the list of all clients of each cloud compressed file on the server, also need to preserve cloud compression link and original file directories data in client this locality simultaneously.The speed of download that this processing mode will greatly reduce server bandwidth and takies and improve user.
Foregoing can be realized by following steps:
Described by after opening cloud compression link and triggering the request of cloud decompress(ion), also comprise:
Client obtains the constituent instruments information of the cloud packed data corresponding with described cloud compression link from other clients that server is specified, and described constituent instruments packets of information is containing document directory structure; Namely other clients that described server is specified are the clients in the list safeguarded of server;
Client, according to described cloud compression link, is downloaded corresponding cloud packed data from other clients described and downloads;
Client carries out decompress(ion) according to described constituent instruments information to downloading to local cloud packed data, obtains original file data.
In addition, preferably, client can download all or part of cloud packed data.As previously mentioned, formerly generate cloud compression link, and then continue in the mode of uploading data stream, can when not uploading complete, the people of decompress(ion) cloud compression link can download the data flow uploading part and carry out decompression operations.Namely limit is carried out compression and is uploaded, while carry out download decompress(ion), in this case, client downloads be exactly the cloud packed data of part; After uploading, just can all download.Also has a kind of situation downloading part cloud packed data, be exactly that the partial document that only have selected wherein according to constituent instruments information (document directory structure) of client user is downloaded, in this case server can find corresponding file according to information such as the sequence number of the file of client-requested or filenames, and sends to client.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In order to make those skilled in the art more understand content of the present invention, the operation below by Fig. 5 to Figure 10 is described.
1, the process of cloud compression link is generated with system right-click menu:
Select the file by cloud compression:
Click right menu, selects [adding cloud compressed file to], as shown in Fig. 5 .1;
Click then to eject and generate cloud compression link dialog box, as shown in Fig. 5 .2;
If compress mode is selected automatically, then by adjustment compress mode, such as, to store, the fastest, standard etc.
If choice for use password, then can add the password generating cloud compression link, as shown in Fig. 5 .3;
If choice for use annotates, then can add the annotation generating cloud compression link, as shown in Fig. 5 .4;
In superincumbent preparation cloud compression window, click is determined, then eject the progress window starting cloud compression, as shown in Fig. 5 .5;
User can minimize to pallet, tray zone progress displaying, as shown in Fig. 5 .6;
After generating cloud compression link, eject and generate successful dialog box, display cloud compression link also copies, as shown in Fig. 5 .7 automatically;
Opening first generation cloud compression link, during rear uploading data, a cloud compression link will be obtained immediately, as shown in Fig. 5 .8.
2, the process of cloud compression link is generated with system right-click menu one key:
Click right menu on the file compressed wanting cloud, selects [key generates cloud compression link], as shown in Figure 6;
Then eject and generate link Progress box, all the other are with process 1.
3, the process of cloud compression link is generated with cloud compressed software main window:
Open cloud compressed software main window, as shown in Figure 7;
Selection will generate the file of cloud link, and click [cloud link] and both can eject generation link Progress box, all the other are with process 1.
4, user opens the state of a cloud compression link:
A more typical cloud compression link is as follows:
Cloudzip://57C4862BB8058ADED8CA1AB8667A2C59BB5EE0B3&name=Avatar+1080p&length=7062222453
The inside contains cloud compressed file sequence number, title, length etc.
User can click following hyperlink in a browser
Cloudzip://57C4862BB8058ADED8CA1AB8667A2C59BB5EE0B3&name=Avatar+1080p&length=7062222453
Then eject the inside catalogue opening this cloud compression link, as shown in Fig. 8 .1;
Select cloud decompress(ion), then open cloud decompress(ion) and prepare frame, as shown in Fig. 8 .2;
Click is determined, enters into decompress(ion) Progress box, as shown in Fig. 8 .3;
Click minimizes, and can minimize to pallet.
5, the process of a direct decompress(ion) cloud compression link is clicked:
User can click following hyperlink in a browser
Cloudzip://57C4862BB8058ADED8CA1AB8667A2C59BB5EE0B3&name=Avatar+1080p&length=7062222453
If arranging decompress(ion) is immediately acquiescence, select cloud decompress(ion), then open cloud decompress(ion) and prepare frame, as shown in Fig. 9 .1;
Click is determined, enters into decompress(ion) Progress box, as shown in Fig. 9 .2;
Click minimizes, and can minimize to pallet.
6, the state of cloud compression link is clicked in a browser by right key:
After clicking cloud compression link in a browser by right key, popup menu, as shown in Figure 10;
Select [opening cloud compression link with 360 compressions], then open cloud compression link with main window, with state 4.
Select [with 360 Compress softwares cloud compression links], then directly eject decompress(ion) cloud compression link dialog box, with process 5.
Based on the content of said method embodiment, present invention also offers corresponding device and system embodiment.
With reference to Fig. 3, it is a kind of compression set structure chart based on cloud compression link described in the embodiment of the present invention.
Described compression set comprises client terminal device 31 and server unit 32, wherein,
Described client terminal device 31 comprises:
Cloud compression trigger element 311, for triggering cloud compression request;
Cloud compression unit 312, for carrying out automatic Compression according to described cloud compression request to the local file data that will compress, and stores the data upload after compression to server as cloud packed data;
Cloud compression link receiving element 313, for receiving corresponding cloud compression link from server;
Described server unit 32 comprises:
Cloud packed data memory cell 321, for storing the cloud packed data of client upload;
Cloud compression link generation unit 322, for generating corresponding cloud compression link according to described cloud compression request, and sends to client by this cloud compression link;
Map unit 323, for the mapping relations to the foundation of cloud packed data and cloud compression link.
Wherein, described cloud compression link comprises host-host protocol and file identification information, can also comprise the information such as filename, file size, server address, the constituent instruments information of wherein said file identification information corresponding server medium cloud packed data.Concrete, described file identification information can be unique cloud compressed file sequence number, the constituent instruments information of described unique cloud compressed file sequence number corresponding server medium cloud packed data, described constituent instruments packets of information is containing the information such as sequence number, filename, file size of document directory structure, file.
The described local file data that will compress are Single document, or are multiple file, or are Single document folder, or are multiple file.
The file translations of arbitrary size can be cloud compression link by above-mentioned compression set, conveniently send to other people, save transmission bandwidth, be easy to share, almost any can the place of input character, as in instant messaging window, microblogging, forum, mail etc., file can be shared and without the need to uploading annex.
Preferably, if described request is first compression and uploading data, regeneration cloud compression link, then the cloud compression link generation unit 322 in described server unit 32 pass on the client complete after, then generate corresponding cloud compression link according to described request;
If described request is first generate cloud compression link, cloud compression link generation unit 322 then in described server unit 32 generates corresponding cloud compression link according to described request after receiving described request, and this cloud compression link is sent to client immediately, the cloud packed data memory cell 321 simultaneously in described server unit 32 receives the cloud packed data of client upload and stores.
Preferably, in order to avoid the problem of server repeated storage, described client terminal device 31 also comprises:
Constituent instruments information uploading unit 314, the constituent instruments information for the local file that will compress is uploaded to server;
Described cloud compression unit 312 is also for the Query Result according to server, and the local file data do not stored by server carry out automatic Compression, and storage that the cloud packed data after compression is uploaded onto the server;
Described server unit 32 also comprises:
Query unit 324, for whether storing identical file according to described constituent instruments information inquiry, and returning to client by Query Result, comprising the constituent instruments information of the partial document that server does not store in described Query Result; If server has stored the All Files that client will be compressed, then the direct cloud compression link by correspondence has sent to client.
Preferably, described compression set also has breakpoint transmission function, as follows:
Cloud packed data piecemeal after compression uploads onto the server storage by the cloud compression unit 312 of described client terminal device 31;
Described client terminal device 31 also comprises:
Breakpoint transmission unit 315, for when uploading failure after described cloud compression unit 312 upload unit divided data, and when restarting uploading data, if server exists identical data block, then no longer uploads described identical data block; Or, make marks at the breakpoint place uploading failure, then continue uploading data from the breakpoint of described mark.
Preferably, described compression set also has encryption and/or adds the function of annotation, as follows:
Described client terminal device 31 also comprises:
Ciphering unit 316, for adding password before cloud compression unit compresses;
And/or annotation unit 317, for adding annotation information before cloud compression unit compresses.
Described server unit 32 also can also comprise:
Ciphering unit 325, adds password during for storing cloud packed data;
And/or annotation unit 326, adds annotation information during for storing cloud packed data.
Preferably, described compression set also has and carries out with different compression levels the function compressed, as follows:
Described client terminal device 31 also comprises:
Compression level adjustment unit 318, also adjusts compression level automatically for intelligent decision compression ratio;
The compression level that described cloud compression unit 312 adjusts with compression level adjustment unit compresses.
For above-mentioned compression set embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of Fig. 1 embodiment of the method.
With reference to Fig. 4, it is a kind of decompressing device structure chart based on cloud compression link described in the embodiment of the present invention.
Described decompressing device comprises client terminal device 41 and server unit 42, wherein,
Described client terminal device 41 comprises:
Cloud decompress(ion) trigger element 411, for triggering the request of cloud decompress(ion) by opening cloud compression link;
Constituent instruments information acquisition unit 412, for obtaining the constituent instruments information of the cloud packed data corresponding with described cloud compression link from server, described constituent instruments packets of information is containing document directory structure;
Download unit 413, for according to described cloud compression link, downloads corresponding cloud packed data from server;
Decompression unit 414, for carrying out decompress(ion) according to described constituent instruments information to downloading to local cloud packed data, obtains original file data;
Described server unit 42 comprises:
Constituent instruments information query unit 421, for searching the constituent instruments information of the cloud packed data corresponding with described cloud compression link, and returns to client;
Cloud packed data query unit 422, for the cloud packed data corresponding according to described constituent instruments information searching, and returns to client.
Preferably, constituent instruments information acquisition unit 412 other clients also for specifying from server of described client terminal device 41 obtain the constituent instruments information of the cloud packed data corresponding with described cloud compression link, and described constituent instruments packets of information is containing document directory structure;
The download unit 413 of described client terminal device 41, also for according to described cloud compression link, downloads corresponding cloud packed data from other clients described.
For described decompressing device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of Fig. 2 embodiment of the method.
Based on Fig. 3 and Fig. 4, present invention also offers a kind of system embodiment based on cloud compression link.Described system comprises above-mentioned compression set and decompressing device, and due to itself and device embodiment basic simlarity, so be not described in detail in this, relevant part illustrates see Fig. 3 and part embodiment illustrated in fig. 4.
"and/or" above represents and both contained herein " with " relation, also contains the relation of "or", wherein: if option A and option b be " with " relation, then represent in certain embodiment can comprise option A and option b simultaneously; If option A and option b are the relations of "or", then represent in certain embodiment and can comprise option A separately, or comprise option b separately.
Above to a kind of compression and decompression method, Apparatus and system based on cloud compression link provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.