CN101820439A - Display method, device and client for files - Google Patents
Display method, device and client for files Download PDFInfo
- Publication number
- CN101820439A CN101820439A CN201010111293A CN201010111293A CN101820439A CN 101820439 A CN101820439 A CN 101820439A CN 201010111293 A CN201010111293 A CN 201010111293A CN 201010111293 A CN201010111293 A CN 201010111293A CN 101820439 A CN101820439 A CN 101820439A
- Authority
- CN
- China
- Prior art keywords
- file
- address information
- information
- identification information
- obtains
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a display method, a device and a client for files, which is used for solving the problem that when the URL address of a file can not be accessed, the existent browser can not display the file in the prior art. The method of the invention comprises the following steps: when a webpage is opened, acquiring the address information of a second file which has the same content as that of a first file to be accessed in the webpage; and acquiring the second file from a storage space indicated by the acquired address information and displaying the second file.
Description
Technical field
The present invention relates to Internet technical field, relate in particular to a kind of display packing, device and client of file.
Background technology
From comprising picture file, the webpage of files such as FLASH file is (as news web page, forum's model webpage, blog web page etc.) in, obtaining the required path of file is to be present in the web page code with the form of shape as URL (Uniform Resource Locator) the URL(uniform resource locator) address of " http://img.aaa.com/abc.jpg ", when opening webpage, browser obtains file from the URL address corresponding server that web page code comprises, and according to the corresponding file location information that comprises in the web page code file that obtains is shown in relevant position in the webpage.
At present, when opening webpage, if the URL address of certain file that this web page code comprised can't be visited, then browser can't obtain this document, and browser can should show in webpage that the position of this document shows one " little red fork ", can't be shown with expression this document.
Summary of the invention
The embodiment of the invention provides a kind of display packing, device and client of file, in order to solve the problem that the browser that exists in the prior art can not show this document when the URL address of file can't be visited.
The embodiment of the invention is by the following technical solutions:
A kind of display packing of file comprises: when opening webpage, first file to be visited in acquisition and the webpage has the address information of second file of identical content; From the memory space of the described address information indication that obtains, obtain described second file and show.
Preferably, the address information that obtains to have with first file to be visited second file of identical content specifically comprises: the raw address information of determining first file to be visited from web page code; According to described raw address information, from the corresponding relation of the identification information of the address information of the file set up in advance and file, determine the identification information of described first file corresponding with described raw address information, wherein, corresponding at least one of the identification information of any one file in the described corresponding relation has the address information of the alternative document of same identification information with this any one file; According to the described identification information of determining, from described corresponding relation, determine to have the address information of second file of same identification information with described first file, wherein, described first file that identification information is identical has identical content with described second file.
Preferably, determine the identification information of described first file from described corresponding relation before, also comprise: the raw address information of determining described first file is invalid address information.
Preferably, the process of setting up of described corresponding relation specifically comprises: the address information of the identification information of the file that exists in the acquisition Internet and the file of described existence; Whether the identification information of file of judging described existence is identical; Set up the address information of the identical file of identification information and the corresponding relation of this identification information, wherein, file can be picture file, described identification information is the identification information of picture file, and judges that the identification information of file of described existence is whether identical and specifically comprise: form and the target resolution of determining the identification information of a file destination; According to described form and the target resolution determined, the identification information of each picture file of obtaining is transformed the identification information of each picture file after obtaining to transform; Whether the identification information of judging each picture file after transforming is identical.
Preferably, the process of setting up of described corresponding relation specifically comprises: obtain to be present in the address information of the file of the identification information of the file in the Internet and described existence, judge whether the identification information of file is identical; Set up the address information of the identical file of identification information and the corresponding relation of this identification information; Wherein, the described file that is present in the Internet is the file in the Internet of being present in that utilizes that the web crawlers program determines; Or the described file of file that is present in the Internet for visiting by web browser; Or the described file that is present in the Internet file that is client downloads in the memory space of self, the address information of the described file that the described address information that is present in the file in the Internet is a client downloads in the memory space of self.
Preferably, the process of setting up of described corresponding relation also comprises: from the described corresponding relation of setting up, determine the number of all address informations of arbitrary identification information correspondence; Judge that whether described number is less than predetermined first threshold; When being, from the memory space of the address information indication of described arbitrary identification information corresponding file, obtain this document in judged result; This document is stored to server, and the memory space address information of adding the described server of storage this document in the identification information corresponding address information of this document in described corresponding relation, described server is for inserting the Internet time greater than scheduled duration and/or the network insertion bandwidth server greater than preset value.
Preferably, the process of setting up of described corresponding relation also comprises: at pairing each address information of the arbitrary identification information in the described corresponding relation, determine to be connected to the indicated required time value of memory space of described each address information respectively; From the described time value of determining, determine time value greater than scheduled time threshold value, and relatively determine corresponding to described arbitrary identification information greater than the number of the time value of scheduled time threshold value whether greater than predetermined second threshold value; At comparative result when being, from the indicated memory space of described arbitrary identification information corresponding address information, obtain this document, this document is stored to server, and the memory space address information of adding the described stable server of storage this document in the identification information corresponding address information of this document in described corresponding relation, described server is for inserting the Internet time greater than scheduled duration and/or the network insertion bandwidth server greater than preset value.
Preferably, obtaining described second file from the memory space that the described address information that obtains is indicated specifically comprises: according to the address information of the alternative document except that described first file that comprises in the described web page code, from described corresponding relation, determine the identification information of the described alternative document corresponding with the address information of described alternative document; According to the identification information of the described alternative document of determining, from described corresponding relation, determine the identification information corresponding address information of mating the 3rd consistent file respectively with the identification information of described alternative document; According to the address information of described second file and the address information of each the 3rd file of determining, judge with described second file whether to be stored in the number of the 3rd file in the same memory space greater than predetermined the 3rd threshold value together; In judged result when being, identification information according to described first file, determine that from described corresponding relation indication is different from second address information of the memory space of described same memory space, and from the memory space of described second address information indication, obtain the file that has same identification information with described first file; And in judged result for not the time, from the memory space of the address information indication of described second file, obtain described second file.
A kind of display unit of file comprises: obtain the unit, be used for when opening webpage, first file to be visited in acquisition and the webpage has the address information of second file of identical content; Acquiring unit is used for obtaining described second file from the memory space that the described address information that obtains the unit acquisition is indicated; Display unit is used for described second file that acquiring unit obtains is shown.
A kind of display packing of file comprises: client is determined the raw address information of first file to be visited from web page code when opening webpage, and described raw address information is offered the server of network side; Described client receives described server and has the address information of second file of identical content according to described raw address feedback information with described first file; And described client is obtained described second file and is shown from the memory space of the address information of described second file indication.
A kind of client comprises: determining unit, be used for when opening webpage, and from web page code, determine the raw address information of first file to be visited; The unit is provided, is used for the raw address information that determining unit is determined is offered the server of network side; Receiving element, be used to receive described server according to described raw address feedback information that the unit provides is provided have the address information of second file of identical content with described first file; Acquiring unit, the memory space that is used for the address information indication of second file that receives from receiving element obtains described second file; Display unit is used for second file that acquiring unit obtains is shown.
The embodiment of the invention is by when opening webpage, and first file to be visited in acquisition and the webpage has the address information of second file of identical content; And from the memory space of the address information indication that obtains, obtain second file and show, therefore even the address information of this first file to be visited of comprising of current web page code is invalid, the scheme that adopts the embodiment of the invention to provide, also can obtain to have second file of identical content with this first file and show, thereby solve the problem that the browser that exists when the URL address when file that exists in the prior art can't be visited can not show this document.
Description of drawings
The idiographic flow schematic diagram of the display packing of a kind of file that Fig. 1 provides for the embodiment of the invention;
Fig. 2 is the idiographic flow schematic diagram of performing step 11 in the embodiment of the invention;
Fig. 3 is for setting up the idiographic flow schematic diagram of corresponding relation in the embodiment of the invention;
The schematic diagram of the step that Fig. 4 can also comprise for the process of setting up corresponding relation in the embodiment of the invention;
The schematic diagram of the step that Fig. 5 can also comprise for the process of setting up corresponding relation in the embodiment of the invention;
Fig. 6 obtains the idiographic flow schematic diagram of second file from the memory space of the address information indication of second file of acquisition for realization in the embodiment of the invention;
The concrete structure schematic diagram of the display unit of a kind of file that Fig. 7 provides for the embodiment of the invention;
The idiographic flow schematic diagram of the display packing of a kind of file that Fig. 8 provides for the embodiment of the invention;
The concrete structure schematic diagram of a kind of client that Fig. 9 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of displaying scheme of file, by obtaining to have the address information of second file of identical content with first file to be visited; And then from the memory space of the address information indication that obtains, obtain second file and show, when thereby the address information of first file to be visited that the current web page code comprises is invalid, the scheme that adopts the embodiment of the invention to provide, also can obtain and have second file of identical content with this document and show, solve the problem that the browser that exists when the URL address when file that exists in the prior art can't be visited can not show this document from other address informations.
Be explained in detail to the main realization principle of embodiment of the invention technical scheme, embodiment and to the beneficial effect that should be able to reach below in conjunction with each accompanying drawing.
The embodiment of the invention at first provides a kind of display packing of file, and the idiographic flow schematic diagram of this method may further comprise the steps as shown in Figure 1:
This method that provides according to the embodiment of the invention as can be known, file destination to be visited is first file, and the final file that shows is second file, though this first file and second file are not identical file, but because first file has identical content with second file, therefore, visit the user of this first file for needs, the file of being seen from the window reality of display file is the same with the file of wanting to visit, therefore this programme can not reduce user's experience, mention in the background technology part, according to present prior art, if the URL address of certain file can't be visited, then browser can should show in webpage that the position of this document shows one " little red fork ", can't be shown with expression this document, and this scheme that provides according to the embodiment of the invention, because when the URL address of first file can't be visited, can obtain and have second file of identical content with this first file and show, therefore, after adopting the scheme that the embodiment of the invention provides, the file on the webpage can both normally show and need not to show " little red fork " again.
In embodiments of the present invention,, can adopt multiple implementation in order to realize above-mentioned steps 11,12, such as, in order to realize above-mentioned steps 11, can adopt following step as shown in Figure 2:
In addition, in order to realize above-mentioned steps 12, in the embodiment of the invention when the file that obtains is shown, can adopt dual mode, a kind of mode is according to the positional information that is used to indicate the file display position that comprises in the web page code, second file that obtains in corresponding position display, another kind of mode then is in newly-built display window (the display window here can be a browser window, also can be that other anyly can carry out window displayed to file) second file that obtains to be shown.
And based on above-mentioned two kinds of display modes, can be in buffer area in the embodiment of the invention with second file storage obtained, and the routing information of record storage second file, according to the routing information of record, obtain second file and adopt one of above-mentioned two kinds of display modes that file is shown then; In addition, can also be according to the address information of determining, the address information of first file that comprises in the web page code is replaced with the address information of the second definite file, web page code after generate upgrading, and then obtain second file and adopt one of above-mentioned two kinds of display modes that second file is shown the indicated memory space of the address information of second file that comprises of the web page code after upgrading.
In embodiments of the present invention, can also further improve,, specifically improve as follows to obtain better technique effect to step as shown in Figure 2:
At " corresponding relation of the identification information of the address information of the file of Jian Liing and file in advance " described in the above-mentioned steps 22, in the embodiment of the invention, set up this corresponding relation and can adopt as shown in Figure 3 following step:
Need to prove that in the above-mentioned steps as shown in Figure 3, " being present in the file in the Internet " of acquisition can be the file in the Internet of being present in that utilizes that the web crawlers program determines; Perhaps, also can be the file of visiting by web browser; Perhaps, can also be the file of client downloads in the memory space of self, this moment file the address information of the address information file that then is client downloads in the memory space of self.
In actual applications, owing to may exist the pairing address information number of identification information of some files less, the pairing address information instability of identification information (the unsettled implication of address information promptly is connected to the required time value of the indicated memory space of address information greater than scheduled time threshold value) that perhaps may have some files, therefore, at the less situation of the pairing address information number of the identification information of file, the process of setting up above-mentioned corresponding relation can further include step as shown in Figure 4, that is:
Whether step 42, this number of judge determining less than predetermined first threshold, and in judged result when being, execution in step 43;
Adopt step as shown in Figure 4, the address information that can avoid the pairing address information number of identification information when file more after a little while may occur lost efficacy simultaneously and caused obtaining the problem of file.And at the unsettled situation of the pairing address information of the identification information of some files, the process of setting up above-mentioned corresponding relation can also comprise following step as shown in Figure 5:
After adopting above-mentioned steps as shown in Figure 5, it is follow-up when file is shown, can from the corresponding memory space of server, obtain file with this identification information, and needn't from the indicated memory space of unsettled address information, obtain file, therefore improved the speed of obtaining with display file greatly.
In embodiments of the present invention, can adopt the form of form that the identification information of file and the corresponding relation of address information (URL address) are carried out record, the form of form can be as shown in table 1 below:
Table 1:
When above-mentioned steps 12 was introduced, having mentioned " identification information of file " in the embodiment of the invention can be " file fingerprint " information of determining according to the content information of file, and followingly just the implication of " file fingerprint " information was made an explanation:
In embodiments of the present invention, when setting up above-mentioned corresponding relation, can at first determine each file and each file corresponding address information that exist in the Internet, then, determine the content-data of each file more respectively, and according to the content-data of each file of determining, utilize predetermined file identification information account form, carry out calculating respectively to the identification information of each definite file, obtain and each file difference corresponding identification information of determining, here said predetermined file identification information account form can be any particular algorithms that can corresponding obtain the different disposal result after the different content data are handled, it also can be any particular algorithms that the repetition rate of the result that obtains after the different content data are handled is not more than predetermined repetition rate, wherein, content-data according to each file of determining, the identification information that utilizes predetermined file identification information account form to calculate can be called as " file fingerprint " information, and, can determine the corresponding relation of " file fingerprint " information and each file corresponding address information according to " file fingerprint " information that calculates.
In embodiments of the present invention, content-data for each definite file of the basis in the performing step 12, utilize predetermined file identification information account form, carry out calculating respectively to the identification information of each definite file, obtain and each file difference corresponding identification information of determining, can adopt dual mode as described below:
First kind of mode:
At first, at arbitrary file of determining, from the content-data that the different Documents Department branch of this document comprises, choose the content-data of predetermined quantity, such as, three file parts before, during and after this document can being divided into, and from above-mentioned three file parts, choose the content-data of 32KB respectively;
Then, the content-data of choosing is updated in the hash algorithm calculates, obtain the first Hash operation end value corresponding to different file parts, wherein, can choose md5-challenge (MD, Message-Digest Algorithm) 5, MD4, SHA (SHA, Secure HashAlgorithm) in the hash algorithm, SHA (SHS, Secure Hash Standard) etc. calculates content-data;
At last, the first Hash operation end value is updated in the hash algorithm calculates, obtain the second Hash operation end value corresponding to this document, and this second Hash operation end value is defined as the identification information of this document, wherein, can be according to the different file parts front and back order of present position hereof, the first Hash operation end value is carried out respective combination, after the first Hash operation end value after obtaining making up, the first Hash operation end value after utilizing hash algorithm to combination is again calculated, and obtains the second Hash operation end value.
The second way:
At first, the arbitrary file at determining is divided at least two file parts with content-data of equal number with this document, such as, this quantity can be 20KB, also can 30KB or the like;
Then, the content-data that comprises of the file part that division is obtained is updated in the hash algorithm and calculates respectively, obtain the first Hash operation result corresponding to different file parts, this first Hash operation result can be called piecemeal user supplied video content using fingerprints (BCID, Block Content Identity);
At last, BCID is updated in the hash algorithm calculates, obtain the second Hash operation end value corresponding to this document, and this second Hash operation end value is defined as the identification information of this document, wherein, this second Hash operation result can be called overall user supplied video content using fingerprints (GCID, Global Content Identity).
The account form of above-mentioned " file fingerprint " information that provides according to the embodiment of the invention, though the name information difference of two files, but so long as the content information of file is identical, " file fingerprint " information that then calculates also is identical.
Because in actual applications, when a lot of files in the web page code are all deposited in the consolidated network terminal (whether file deposits in consolidated network interrupts and can assign to judge according to domain name part in the URL address or IP Address Part), can consider to obtain file from the different network terminals respectively, the benefit of doing like this is to improve the speed that comprises the webpage of a lot of files of opening.Such as, the quantity of documents of depositing in the consolidated network terminal in the webpage of supposing to open has surpassed a predetermined value, then when from the corresponding relation of the address information of the identification information of file and file, determining the address information of each file according to the identification information of each file, can limit the higher limit of the number of the address information of indicating the consolidated network terminal, such as including 20 files as if in a webpage, then can establish this higher limit is 5, thereby in the address information of determining, have 5 address informations at most and indicate the same network terminal, when therefore the memory space of indicating, obtaining file from the address information of determining, can disperse access request burden to the network terminal, avoid obtaining heap file and may cause the problem of network congestion, thereby accelerated the acquisition speed of file to a certain extent from the same network terminal.Such scheme is summarized, promptly realizes from the memory space of the address information indication of second file that obtains, obtaining second file in embodiments of the present invention and specifically can adopt as shown in Figure 6 following step:
Correspondingly, the embodiment of the invention also provides a kind of display unit of file, and the concrete structure schematic diagram of this device comprises following functional unit as shown in Figure 7:
Obtain unit 71, be used for when opening webpage, first file to be visited in acquisition and the webpage has the address information of second file of identical content;
Acquiring unit 72 is used for obtaining second file from the memory space that the address information that obtains unit 71 acquisitions is indicated;
Corresponding to a kind of implementation that obtains unit 71 functions, the embodiment of the invention can also further be divided obtaining unit 71, and the concrete functional module that obtains of dividing is as follows:
Raw address information determination module is determined the raw address information of first file to be visited from web page code;
The identification information determination module, be used for the raw address information definite according to raw address information determination module, from the corresponding relation of the identification information of the address information of the file set up in advance and file, determine the identification information of first file corresponding with raw address information, wherein, corresponding at least one of the identification information of any one file in this corresponding relation has the address information of the alternative document of same identification information with this any one file, preferably, this identification information determination module can also be used for before determining the identification information of first file from this corresponding relation, and the raw address information of determining first file is invalid address information;
The address information determination module, be used for the identification information definite according to the identification information determination module, from above-mentioned corresponding relation, determine to have the address information of second file of same identification information with first file, wherein, described first file that identification information is identical has identical content with described second file.
Preferably, corresponding to a kind of implementation of acquiring unit 72 functions, the sea can be divided into following functional module with acquiring unit 72 in the embodiment of the invention, comprising:
First determination module is used for the address information of the alternative document except that first file that comprises according to web page code, from above-mentioned corresponding relation, determines the identification information of other question papers corresponding with the address information of alternative document;
Second determination module is used for the identification information according to the definite alternative document of first determination module, determines the identification information corresponding address information of mating the 3rd consistent file respectively with the identification information of alternative document from above-mentioned corresponding relation;
Judge module, be used for according to the address information that obtains second file that the unit obtains and the address information of each the 3rd file that second determination module is determined, judge with second file with whether being stored in the number of the 3rd file in the same memory space greater than predetermined the 3rd threshold value;
Acquisition module, be used for the judged result that obtains at judge module when being, identification information according to first file, determine that from above-mentioned corresponding relation indication is different from second address information of the memory space of same memory space, and from the memory space of second address information indication, obtain the file that has same identification information with first file; And the judged result that obtains at judge module is not for the time, obtains second file from the memory space of the address information indication of second file.
Preferably, corresponding to the another kind of implementation of acquiring unit 72 functions, the sea can be divided into following functional module with acquiring unit 72 in the embodiment of the invention, comprising:
Replace module, be used for, the address information of first file that comprises in the web page code is replaced with the address information of second file, generate the web page code after upgrading according to the address information that obtains second file that the unit obtains; Acquisition module, the indicated memory space of address information that is used for second file that comprises from the web page code of replacing after the renewal that module obtains obtains second file.
Preferably, display unit further can also be divided into following functional module in the embodiment of the invention, comprise:
Logging modle is used for second file that acquiring unit obtains is stored, and the routing information of record storage second file; Acquisition module is used for the routing information according to the logging modle record, obtains second file; Display module is used for second file that acquisition module obtains is shown.
Need to prove, in embodiments of the present invention, the identification information of the file in the above-mentioned corresponding relation can be the name information of file, the format information of file, the content information of file, in the shared storage size information of the characteristic information of file and file one or multinomial, and when file was picture file, the characteristic information of file can be the color histogram information of picture file, the color convergence vector information of picture file, the gray level co-occurrence matrixes information of picture file, the boundary characteristic information of utilizing the boundary characteristic method that picture file is handled and obtaining, the characteristic information that utilizes Fourier's shape description symbols method that picture file is handled and obtain, the shape invariance square information of characteristic information that utilizes the geometric parameter method that picture file is handled and obtain or picture file etc.
In addition, the embodiment of the invention also provides a kind of display packing of file, in order to solve the problem that the browser that exists when the URL address when file that exists in the prior art can't be visited can not show this document, the idiographic flow schematic diagram of this display packing comprises the steps: as shown in Figure 8
Correspondingly, the embodiment of the invention also provides a kind of client, and in order to solve the problem that the browser that exists when the URL address when file that exists in the prior art can't be visited can not show this document, the concrete structure schematic diagram of this client comprises as shown in Figure 9:
Determining unit 91 is used for when opening webpage, determines the raw address information of first file to be visited from web page code;
Unit 92 is provided, be used for the raw address information that determining unit 91 is determined is offered the server of network side, preferably, provide unit 92 specifically can be used for after to determine raw address information that determining unit 91 determines be invalid address information, the raw address information that determining unit 91 is determined offer the server of network side again;
Receiving element 93 is used for reception server and has the address information of second file of identical content according to what raw address feedback information that unit 92 provides was provided with first file;
Acquiring unit 94, the memory space that is used for the address information indication of second file that receives from receiving element 93 obtains second file;
Display unit 95 is used for second file that acquiring unit 94 obtains is shown that preferably, second file that display unit 94 can obtain acquiring unit 94 shows in newly-built display window.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (28)
1. the display packing of a file is characterized in that, comprising:
When opening webpage, first file to be visited in acquisition and the webpage has the address information of second file of identical content;
From the memory space of the described address information indication that obtains, obtain described second file and show.
2. the method for claim 1 is characterized in that, the address information that obtains to have with first file to be visited second file of identical content specifically comprises:
From web page code, determine the raw address information of first file to be visited;
According to described raw address information, from the corresponding relation of the identification information of the address information of the file set up in advance and file, determine the identification information of described first file corresponding with described raw address information, wherein, corresponding at least one of the identification information of any one file in the described corresponding relation has the address information of the alternative document of same identification information with this any one file;
According to the described identification information of determining, from described corresponding relation, determine to have the address information of second file of same identification information with described first file, wherein, described first file that identification information is identical has identical content with described second file.
3. method as claimed in claim 2 is characterized in that, determine the identification information of described first file from described corresponding relation before, also comprises:
The raw address information of determining described first file is invalid address information.
4. method as claimed in claim 2, it is characterized in that the identification information of described file is in the characteristic information of content information, picture file of format information, the file of name information, the file of file and the shared storage size information of file one or multinomial; Wherein, the characteristic information of described picture file be color convergence vector information, the picture file of color histogram information, the picture file of picture file gray level co-occurrence matrixes information, utilize the boundary characteristic method that picture file is handled the boundary characteristic information that obtains, utilized Fourier's shape description symbols method that picture file is handled the characteristic information that obtains, utilized the geometric parameter method that picture file is handled the characteristic information that obtains or the shape invariance square information of picture file.
5. method as claimed in claim 2 is characterized in that, the process of setting up of described corresponding relation specifically comprises:
The address information of the identification information of the file that exists in the acquisition Internet and the file of described existence;
Whether the identification information of file of judging described existence is identical;
Set up the address information of the identical file of identification information and the corresponding relation of this identification information.
6. method as claimed in claim 5 is characterized in that, described file is a picture file, and described identification information is the identification information of picture file, and judges that the identification information of file of described existence is whether identical and specifically comprise:
Determine the form and the target resolution of the identification information of a file destination;
According to described form and the target resolution determined, the identification information of each picture file of obtaining is transformed the identification information of each picture file after obtaining to transform;
Whether the identification information of judging each picture file after transforming is identical.
7. method as claimed in claim 2 is characterized in that, the process of setting up of described corresponding relation specifically comprises:
Acquisition is present in the address information of the file of the identification information of the file in the Internet and described existence, judges whether the identification information of file is identical; Set up the address information of the identical file of identification information and the corresponding relation of this identification information;
Wherein, the described file that is present in the Internet is the file in the Internet of being present in that utilizes that the web crawlers program determines; Or
The described file of file that is present in the Internet for visiting by web browser; Or
The address information of the described file that the file that the described file that is present in the Internet is a client downloads in the memory space of self, the described address information that is present in the file in the Internet are client downloads in the memory space of self.
8. as claim 5 or 7 described methods, it is characterized in that the process of setting up of described corresponding relation also comprises:
From the described corresponding relation of setting up, determine the number of all address informations of arbitrary identification information correspondence;
Judge that whether described number is less than predetermined first threshold;
When being, from the memory space of the address information indication of described arbitrary identification information corresponding file, obtain this document in judged result;
This document is stored to server, and the memory space address information of adding the described server of storage this document in the identification information corresponding address information of this document in described corresponding relation, described server is for inserting the Internet time greater than scheduled duration and/or the network insertion bandwidth server greater than preset value.
9. as claim 5 or 7 described methods, it is characterized in that the process of setting up of described corresponding relation also comprises:
At pairing each address information of the arbitrary identification information in the described corresponding relation, determine to be connected to the indicated required time value of memory space of described each address information respectively;
From the described time value of determining, determine time value greater than scheduled time threshold value, and relatively determine corresponding to described arbitrary identification information greater than the number of the time value of scheduled time threshold value whether greater than predetermined second threshold value;
At comparative result when being, from the indicated memory space of described arbitrary identification information corresponding address information, obtain this document, this document is stored to server, and the memory space address information of adding the described stable server of storage this document in the identification information corresponding address information of this document in described corresponding relation, described server is for inserting the Internet time greater than scheduled duration and/or the network insertion bandwidth server greater than preset value.
10. method as claimed in claim 2 is characterized in that, obtains described second file and specifically comprise from the memory space that the described address information that obtains is indicated:
According to the address information of the alternative document except that described first file that comprises in the described web page code, from described corresponding relation, determine the identification information of the described alternative document corresponding with the address information of described alternative document;
According to the identification information of the described alternative document of determining, from described corresponding relation, determine the identification information corresponding address information of mating the 3rd consistent file respectively with the identification information of described alternative document;
According to the address information of described second file and the address information of each the 3rd file of determining, judge with described second file whether to be stored in the number of the 3rd file in the same memory space greater than predetermined the 3rd threshold value together;
In judged result when being, identification information according to described first file, determine that from described corresponding relation indication is different from second address information of the memory space of described same memory space, and from the memory space of described second address information indication, obtain the file that has same identification information with described first file; And
For not the time, from the memory space of the address information indication of described second file, obtain described second file in judged result.
11. method as claimed in claim 2 is characterized in that, obtains described second file and specifically comprise from the memory space that the described address information that obtains is indicated:
According to the address information of described second file, the address information of described first file that comprises in the described web page code is replaced with the address information of described second file, generate the web page code after upgrading;
Obtain described second file the indicated memory space of the address information of described second file that the web page code after described renewal comprises.
12. the method for claim 1 is characterized in that, described second file is shown specifically comprise:
Described second file that obtains is stored, and the routing information of described second file of record storage;
According to described routing information, obtain described second file and show.
13. the method for claim 1 is characterized in that, in newly-built display window described second file that obtains is shown.
14. the display unit of a file is characterized in that, comprising:
Obtain the unit, be used for when opening webpage, first file to be visited in acquisition and the webpage has the address information of second file of identical content;
Acquiring unit is used for obtaining described second file from the memory space that the described address information that obtains the unit acquisition is indicated;
Display unit is used for described second file that acquiring unit obtains is shown.
15. device as claimed in claim 14 is characterized in that, described acquisition unit specifically comprises:
Raw address information determination module is determined the raw address information of first file to be visited from web page code;
The identification information determination module, be used for the described raw address information definite according to raw address information determination module, from the corresponding relation of the identification information of the address information of the file set up in advance and file, determine the identification information of described first file corresponding with described raw address information, wherein, corresponding at least one of the identification information of any one file in the described corresponding relation has the address information of the alternative document of same identification information with this any one file;
The address information determination module, be used for the described identification information definite according to the identification information determination module, from described corresponding relation, determine to have the address information of described second file of same identification information with described first file, wherein, described first file that identification information is identical has identical content with described second file.
16. device as claimed in claim 15 is characterized in that, described identification information determination module also was used for before determining the identification information of described first file from described corresponding relation, and the raw address information of determining described first file is invalid address information.
17. device as claimed in claim 14, it is characterized in that the identification information of described file is in the characteristic information of content information, picture file of format information, the file of name information, the file of file and the shared storage size information of file one or multinomial; Wherein, the characteristic information of described picture file be color convergence vector information, the picture file of color histogram information, the picture file of picture file gray level co-occurrence matrixes information, utilize the boundary characteristic method that picture file is handled the boundary characteristic information that obtains, utilized Fourier's shape description symbols method that picture file is handled the characteristic information that obtains, utilized the geometric parameter method that picture file is handled the characteristic information that obtains or the shape invariance square information of picture file.
18. device as claimed in claim 15 is characterized in that, described acquiring unit specifically comprises:
First determination module is used for the address information of the alternative document except that described first file that comprises according to described web page code, from described corresponding relation, determines the identification information of described other question papers corresponding with the address information of described alternative document;
Second determination module is used for the identification information according to the definite described alternative document of first determination module, determines the identification information corresponding address information of mating the 3rd consistent file respectively with the identification information of described alternative document from described corresponding relation;
Judge module, be used for according to the address information that obtains second file that the unit obtains and the address information of each the 3rd file that second determination module is determined, judge with described second file with whether being stored in the number of the 3rd file in the same memory space greater than predetermined the 3rd threshold value;
Acquisition module, be used for the judged result that obtains at judge module when being, identification information according to described first file, determine that from described corresponding relation indication is different from second address information of the memory space of described same memory space, and from the memory space of described second address information indication, obtain the file that has same identification information with described first file; And the judged result that obtains at judge module is not for the time, obtains described second file from the memory space of the address information indication of described second file.
19. device as claimed in claim 15 is characterized in that, described acquiring unit specifically comprises:
Replace module, be used for, the address information of described first file that comprises in the described web page code is replaced with the address information of described second file, generate the web page code after upgrading according to the address information that obtains second file that the unit obtains;
Acquisition module, the indicated memory space of address information that is used for described second file that comprises from the web page code of replacing after the renewal that module obtains obtains described second file.
20. device as claimed in claim 14 is characterized in that, described display unit specifically comprises:
Logging modle is used for second file that acquiring unit obtains is stored, and the routing information of described second file of record storage;
Acquisition module is used for the described routing information according to the logging modle record, obtains described second file;
Display module is used for described second file that acquisition module obtains is shown.
21., it is characterized in that described display unit specifically is used at newly-built display window second file that acquiring unit obtains being shown as claim 14 or 20 described devices.
22. the display packing of a file is characterized in that, comprising:
Client is determined the raw address information of first file to be visited from web page code when opening webpage, and described raw address information is offered the server of network side;
Described client receives described server and has the address information of second file of identical content according to described raw address feedback information with described first file; And
Described client is obtained described second file and is shown from the memory space of the address information indication of described second file.
23. method as claimed in claim 22 is characterized in that, described client also comprises the server that described raw address information offers network side before:
Described client determines that the raw address information of described first file is invalid address information.
24. method as claimed in claim 22 is characterized in that, described server specifically comprises to the process of the address information of described second file of described client feedback:
Described server obtains the raw address information that described client provides, and according to described raw address information, from the corresponding relation of the identification information of the address information of the file set up in advance and file, determine the identification information of described first file corresponding with described raw address information, wherein, corresponding at least one of the identification information of any one file in the described corresponding relation has the address information of the alternative document of same identification information with this any one file; And
According to the described identification information of determining, from described corresponding relation, determine to have the address information of described second file of same identification information with described first file, wherein, described first file that identification information is identical has identical content with described second file; And
The address information of described second file is fed back to described client.
25. method as claimed in claim 22 is characterized in that, described client shows described second file that obtains in newly-built display window.
26. a client is characterized in that, comprising:
Determining unit is used for when opening webpage, determines the raw address information of first file to be visited from web page code;
The unit is provided, is used for the raw address information that determining unit is determined is offered the server of network side;
Receiving element, be used to receive described server according to described raw address feedback information that the unit provides is provided have the address information of second file of identical content with described first file;
Acquiring unit, the memory space that is used for the address information indication of second file that receives from receiving element obtains described second file;
Display unit is used for second file that acquiring unit obtains is shown.
27. client as claimed in claim 26, it is characterized in that, the described unit that provides specifically is used for after to determine described raw address information that determining unit determines be invalid address information, and the raw address information that determining unit is determined offers the server of network side.
28. client as claimed in claim 26 is characterized in that, described display unit shows second file that acquiring unit obtains in newly-built display window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010111293A CN101820439A (en) | 2010-02-03 | 2010-02-03 | Display method, device and client for files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010111293A CN101820439A (en) | 2010-02-03 | 2010-02-03 | Display method, device and client for files |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101820439A true CN101820439A (en) | 2010-09-01 |
Family
ID=42655386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010111293A Pending CN101820439A (en) | 2010-02-03 | 2010-02-03 | Display method, device and client for files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101820439A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214223A (en) * | 2011-06-15 | 2011-10-12 | 奇智软件(北京)有限公司 | Method and system for browser access control |
CN102789470A (en) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Method and device for uploading pictures in webpage |
CN102802129A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Method and system for transmitting picture through mobile equipment |
CN104572909A (en) * | 2014-12-26 | 2015-04-29 | 深圳市金立通信设备有限公司 | Terminal |
CN104636392A (en) * | 2013-11-13 | 2015-05-20 | 腾讯科技(北京)有限公司 | Method and system for issuing recommending information, server and browser |
CN107404508A (en) * | 2016-05-20 | 2017-11-28 | 阿里巴巴集团控股有限公司 | Access method, client and the electronic equipment of customer terminal webpage |
CN108174244A (en) * | 2017-12-29 | 2018-06-15 | 深圳Tcl新技术有限公司 | File Mapping method, mapping server, TV and storage medium |
CN109471858A (en) * | 2018-09-28 | 2019-03-15 | 沈文策 | Address conversion method, article access method, device and electronic equipment |
CN109977332A (en) * | 2019-03-19 | 2019-07-05 | 广州品唯软件有限公司 | The picture access method, apparatus and storage medium of mobile terminal |
-
2010
- 2010-02-03 CN CN201010111293A patent/CN101820439A/en active Pending
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789470A (en) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Method and device for uploading pictures in webpage |
CN102789470B (en) * | 2011-05-20 | 2016-08-24 | 腾讯科技(深圳)有限公司 | The method and apparatus of the picture in loading webpage |
CN102802129A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Method and system for transmitting picture through mobile equipment |
CN102214223A (en) * | 2011-06-15 | 2011-10-12 | 奇智软件(北京)有限公司 | Method and system for browser access control |
CN104636392A (en) * | 2013-11-13 | 2015-05-20 | 腾讯科技(北京)有限公司 | Method and system for issuing recommending information, server and browser |
CN104636392B (en) * | 2013-11-13 | 2018-07-27 | 腾讯科技(北京)有限公司 | Carry out method, system, server and browser that recommendation information issues |
CN104572909A (en) * | 2014-12-26 | 2015-04-29 | 深圳市金立通信设备有限公司 | Terminal |
CN107404508A (en) * | 2016-05-20 | 2017-11-28 | 阿里巴巴集团控股有限公司 | Access method, client and the electronic equipment of customer terminal webpage |
CN108174244A (en) * | 2017-12-29 | 2018-06-15 | 深圳Tcl新技术有限公司 | File Mapping method, mapping server, TV and storage medium |
CN109471858A (en) * | 2018-09-28 | 2019-03-15 | 沈文策 | Address conversion method, article access method, device and electronic equipment |
CN109977332A (en) * | 2019-03-19 | 2019-07-05 | 广州品唯软件有限公司 | The picture access method, apparatus and storage medium of mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101820439A (en) | Display method, device and client for files | |
US20200204349A1 (en) | Blockchain compression using summary and padding blocks | |
CN103152398B (en) | File synchronisation method and system between the file of a kind of multiple terminals | |
CN108429777B (en) | Data updating method based on cache and server | |
CN101409706A (en) | Method, system and relevant equipment for distributing data of edge network | |
CN103347092A (en) | Method and device for recognizing cacheable file | |
CN103338249A (en) | Cache method and device | |
CN102752371A (en) | Method for achieving splash on client side and client side | |
CN109873855A (en) | A kind of resource acquiring method and system based on block chain network | |
CN113347269A (en) | Data updating method of industrial system, electronic equipment and storage medium | |
CN102905251B (en) | A kind of number information acquisition methods, relevant device and system | |
EP2423837A1 (en) | Method and system for viewing web page and computer program product thereof | |
CN105391642A (en) | Data traffic saving method and data traffic saving device | |
CN108959393B (en) | Dynamic picture processing method, device and storage medium | |
CN108011934B (en) | Method and device for processing resource data | |
CN103327026B (en) | A kind of data-updating method and the system of renewal | |
CN105227514A (en) | Based on document transmission processing method and the browser of browser | |
CN102970380A (en) | Method for acquiring media data of cloud storage files and cloud storage server | |
WO2019194794A1 (en) | Social media content management | |
CN103365892A (en) | Method and device for processing multiple contact objects | |
CN101170576A (en) | A method, system and device for file upload | |
EP2959661B1 (en) | Method, apparatus and system for processing user generated content | |
CN103220327B (en) | user information storage method and device | |
US10853393B2 (en) | Expired map data based anti-counterfeiting method, apparatus, storage medium and device | |
CN111614750B (en) | Data updating method, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100901 |