CN102769638A - Method, device and system for downloading files - Google Patents

Method, device and system for downloading files Download PDF

Info

Publication number
CN102769638A
CN102769638A CN2011101151575A CN201110115157A CN102769638A CN 102769638 A CN102769638 A CN 102769638A CN 2011101151575 A CN2011101151575 A CN 2011101151575A CN 201110115157 A CN201110115157 A CN 201110115157A CN 102769638 A CN102769638 A CN 102769638A
Authority
CN
China
Prior art keywords
file
downloaded
sign
obtains
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011101151575A
Other languages
Chinese (zh)
Other versions
CN102769638B (en
Inventor
庄庆
黄琰
吴运声
刘刚
刘俊
梁晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110115157.5A priority Critical patent/CN102769638B/en
Publication of CN102769638A publication Critical patent/CN102769638A/en
Application granted granted Critical
Publication of CN102769638B publication Critical patent/CN102769638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a method, a device and a system for downloading files and belongs to the technical field of multimedia. The method includes: receiving a downloading request with the identification and format of a file to be downloaded; and acquiring the file according to the identification and format of the file to be downloaded, and returning the acquired file. The device comprises a receiving module and an acquisition module. The system comprises a client and a server. By the aid of the method, the device and the system for downloading files, time and resources required by users for file conversion are saved.

Description

A kind of method of file in download, Apparatus and system
Technical field
The present invention relates to multimedia technology field, particularly a kind of method of file in download, Apparatus and system.
Background technology
Along with Development of Multimedia Technology; The Internet provides a large amount of videos for the user; The user can be from the Internet foradownloaded video; And utilize mobile phone, PDA (Personal Digital Assistant, personal digital assistant) and MP4 video players such as (Moving Pictures Experts Group4, dynamic image expert groups 4) to play the video of downloading.
Wherein, Every kind of video player can only be play the video of specific format; The form of the video that the user often downloads from the Internet is not the form that its used video player is supported; Therefore the user needs earlier on client the form that the format conversion with the video of downloading becomes its used video player to support, and then the video transmission after will change utilizes its used video player to play the video after changing in its used video player again.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
The converting video form is a very time-consuming procedure; The video of a hot topic has a large amount of users and downloads and have a large amount of users to use identical video player to play; Make a video repeatedly changed numerous times, not only waste user's time, also waste resource by the user.
Summary of the invention
For the time and the resource of saving the user, the invention provides a kind of method, Apparatus and system of file in download.Said technical scheme is following:
A kind of method of file in download, said method comprises:
Receive download request, said download request is carried the sign and the form of file to be downloaded;
Sign and form according to said file to be downloaded obtain file, and return the said file that obtains.
Said sign and form according to said file to be downloaded obtains file, comprising:
According to the sign and the form of said file to be downloaded, from the corresponding relation of files stored sign, form and file, find out corresponding file.
Before the said reception download request, also comprise:
File server in the monitoring the Internet has new file if monitor out in the said file server, then obtain said new file;
Extraction document sign from said new file becomes the file of different-format with said new file conversion, from the file of said conversion, extracts form;
With the file of the form of the file identification of said extraction, said extraction and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
Said sign and form according to said file to be downloaded obtains file, and returns the said file that obtains, and comprising:
According to the sign of said file to be downloaded, search the corresponding relation of files stored sign, form and file;
If find out corresponding form and file; Judge then whether said form is identical with the form of said file to be downloaded; If identical, then return the said file of searching, if different; Then according to the said file of searching of format conversion of said file to be downloaded, and return the file of said conversion;
If do not find out corresponding form and file; Then, from the Internet, obtain corresponding file, if the form of the said file that obtains is identical with the form of said file to be downloaded according to the sign of said file to be downloaded; Then return the said file that obtains; Otherwise,, and return the file of said conversion according to the said file that obtains of format conversion of said file to be downloaded.
Change after said file of searching or the said file that obtains, also comprise:
With the file of the sign of said file to be downloaded and form and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
Said from the Internet, obtaining after the corresponding file also comprises:
If the form of the said file that obtains is identical with the form of said file to be downloaded, then with the sign of said file to be downloaded and form and the said file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file;
If the form of the said file that obtains is different with the form of said file to be downloaded; Then from the said file that obtains, extract form, with the form of the sign of said file to be downloaded, extraction and the file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file.
Said method also comprises:
In process, return the progress of convert file in real time and give the user according to the format conversion file of said file to be downloaded.
Said method also comprises:
Send identical download request if in process, receive other users according to the format conversion file of said file to be downloaded; The download request of then said other users being sent is filtered, and the progress of said convert file is shared to said other users.
A kind of device of file in download, said device comprises:
Receiver module is used to receive download request, and said download request is carried the sign and the form of file to be downloaded;
Acquisition module is used for obtaining file according to the sign and the form of said file to be downloaded, and returns the said file that obtains.
Said acquisition module specifically is used for sign and form according to said file to be downloaded, from the corresponding relation of files stored sign, form and file, finds out corresponding file, returns the said file of searching.
Said device also comprises:
Monitoring module is used for monitoring the file server of the Internet, if monitor out new file is arranged in the said file server, then obtains said new file;
Extraction module is used for from said new file extraction document sign, and said new file conversion is become the file of different-format, from the file of said conversion, extracts form;
First memory module is used for the file of the form of the file identification of said extraction, said extraction and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
Said acquisition module comprises:
Search the unit, be used for sign, search the corresponding relation of files stored sign, form and file according to said file to be downloaded;
First returns the unit; If be used for finding out corresponding form and file, judge then whether said form is identical with the form of said file to be downloaded, if identical; Then return the said file of searching; If different,, and return the file of said conversion then according to the said file of searching of format conversion of said file to be downloaded;
Second returns the unit, if be used for not finding out corresponding form and file, then according to the sign of said file to be downloaded; From the Internet, obtain corresponding file; If the form of the said file that obtains is identical with the form of said file to be downloaded, then return the said file that obtains, otherwise; According to the said file that obtains of format conversion of said file to be downloaded, and return the file of said conversion.
Said acquisition module also comprises:
First memory cell is used for the file of the sign of said file to be downloaded and form and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
Said acquisition module also comprises:
Second memory cell; If the form that is used for the said file that obtains is identical with the form of said file to be downloaded, then with the sign of said file to be downloaded and form and the said file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file;
The 3rd memory cell; If the form that is used for the said file that obtains is different with the form of said file to be downloaded; Then from the said file that obtains, extract form, with the form of the sign of said file to be downloaded, extraction and the file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file.
Said device also comprises:
Return module, be used for returning the progress of convert file in real time and giving the user in process according to the format conversion file of said file to be downloaded.
Said device also comprises:
Sharing module; Send identical download request if be used for receiving other users in process according to the format conversion file of said file to be downloaded; The download request of then said other users being sent is filtered, and the progress of said convert file is shared to said other users.
A kind of system of file in download, said system comprises client and service end;
Said client is used to send download request, and said download request is carried the sign and the form of file to be downloaded at least;
Said service end is used to receive said download request, obtains file according to the sign and the form of said file to be downloaded, and returns the said file that obtains.
In the present invention; The user is to the sign and the form of client input file to be downloaded; The client transmission is carried the user and is imported the sign of file to be downloaded and the download request of form; Service end receives this download request, and the sign and the form that carry file to be downloaded according to this download request obtain file, and return the file that obtains.Wherein, the form of the form of the file that service end is returned and user input is identical, so user's file of not needing again the Transformation Service end to return, so saves needed time of user's convert file and convert file resource needed.
Description of drawings
Fig. 1 is the method flow diagram of a kind of file in download of providing of the embodiment of the invention 1;
Fig. 2 is the method flow diagram of a kind of file in download of providing of the embodiment of the invention 2;
Fig. 3 is the method flow diagram of a kind of file in download of providing of the embodiment of the invention 3;
Fig. 4 is that the embodiment of the invention 3 provides the service end Organization Chart;
Fig. 5 is the device sketch map of a kind of file in download of providing of the embodiment of the invention 4;
Fig. 6 is the system schematic of a kind of file in download of providing of the embodiment of the invention 5.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides the method for file in download, comprising:
Step 101: receive download request, this download request is carried the sign and the form of file to be downloaded;
Step 102: sign and form according to file to be downloaded obtain file, and return the file that obtains.
In embodiments of the present invention; The user is to the sign and the form of client input file to be downloaded; The client transmission is carried the user and is imported the sign of file to be downloaded and the download request of form; Service end receives this download request, and the sign and the form that carry file to be downloaded according to this download request obtain file, and return the file that obtains.Wherein, the form of the file that service end is returned is identical with the form of user's input, thereby makes that the user does not need the file that returns to be changed again, and has saved needed time of user's convert file and convert file resource needed.
Embodiment 2
As shown in Figure 2, the embodiment of the invention provides a kind of method of file in download, comprising:
Step 201: the file server in the service end monitoring internet, when in the monitoring outfile server new file being arranged, obtain new file;
Wherein, file operator in the Internet during file publishing, earlier with file distribution in file server; And the file server in the service end monitoring the Internet when if monitoring outfile operator issue new file on file server, obtains the new file that file operator issues.
Step 202: service end is the extraction document sign from the new file that obtains, and the new file conversion that will obtain becomes the file of different-format;
Wherein, file identification can be the URL (Universal Resource Locator, URL) of file.
Wherein, In the present embodiment, file can comprise video file and audio file etc., and the form of video file can comprise AVI (Audio Video Interleaved; The Audio Video Interleaved form) and MP4 etc.; The form of audio file can comprise Mp3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3) and WMA (Windows Media Audio, windows media audio frequency) etc.
Step 203: service end is extracted form from the file of conversion, again the corresponding relation between the file three of the form of the file identification of storage extraction, extraction and conversion;
Particularly, service end is extracted form from the file of conversion, with the file of the form of the file identification that extracts, extraction and conversion as a new record and be stored in the corresponding relation of file identification, form and file.
For example; With the video file is example; Suppose that service end obtains a new video files from file server, extraction document is designated URL1 from new video files, and converts new video files to the video file 1 of AVI form and the video file 2 of MP4 form; From video file 1, extracting form is AVI, with the form AVI of the file identification URL1 that extracts, extraction and video file 1 as a new record and be stored in the corresponding relation of file identification as shown in table 1, form and file; And from video file 2, extracting form is MP4, with the form MP4 of the video file sign URL1 that extracts, extraction and video file 2 as a new record and be stored in the corresponding relation of file identification as shown in table 1, form and file.
Table 1
File identification Format information File
URL1 AVI Video file 1
URL1 MP4 Video file 2
…… …… ……
Step 204: service end receives the download request that client is sent, and this download request is carried the sign and the form of file to be downloaded;
Wherein, the user need download the file to be downloaded of required form, and the user imports the sign and the form of file to be downloaded in client, and then sends the sign of the file to be downloaded that carries user's input and the download request of form through client.
For example; If the user wants to play video file to be downloaded through video player; Then the form of the video file to be downloaded that need download of user is the form that video player is supported; Suppose that the user thinks that download formats is the video file 1 of AVI, the user sends the download request of carrying file identification URL1 and form AVI through client again to the sign URL1 of client input video file and the form AVI of video file 1.
Step 205: service end is obtained corresponding file according to the sign and the form of file to be downloaded from the corresponding relation of file identification, form and file;
Step 206: service end is returned the file that obtains and is given client.
For example; Service end receives client and sends the download request of carrying file identification URL1 and form AVI; The file identification URL1 and the form AVI that carry according to this download request; From the corresponding relation of file identification as shown in table 1, form and file, find out corresponding video file 1, return the video file of searching 1 and give client; The video file 1 that on client, service end returned of user is transferred in the video player and plays then.
In embodiments of the present invention; Service end is obtained new file from file server; Extract the sign of new file and new file conversion become the file of different-format; From the file of conversion, extract form, with the file of the form of the file identification that extracts, extraction and conversion as a new record and be stored in the corresponding relation of file identification, form and file; When service end receives download request, according to sign of carrying file to be downloaded in the download request and form, from the corresponding relation of file identification, form and file, obtain corresponding file, return the file that obtains and give the user.So, therefore the file that the user does not need the Transformation Service end to return saves needed time of user's convert file and convert file resource needed.
Embodiment 3
The embodiment of the invention provides a kind of method of file in download.In the present embodiment, the method for down loading that first user and second user utilize present embodiment to provide on first client and second client is respectively downloaded identical file, and referring to Fig. 3, this method comprises:
Step 301: service end receives the download request that first client is sent, and this download request is carried the sign and the form of file to be downloaded at least;
Wherein, First user need download the file to be downloaded of required form; First user is the form of the sign of input file to be downloaded and file to be downloaded in first client earlier, then first client send carry sign and form that first user imports file to be downloaded download request to service end.
Wherein, the sign of file can be the URL of file.File can comprise video file and audio file etc., and the form of video file can comprise AVI and MP4 etc., and the form of audio file can comprise Mp3 and WMA etc.
For example; In the present embodiment; Illustrate with video file; First user need be from the Internet foradownloaded video file 1, and the form that is designated URL1 and video file 1 of video file 1 is AVI, first user is the form AVI of the sign URL1 of input video file 1 and video file 1 in first client at first.The redispatch download request of the sign URL1 that carries video file 1 and form AVI of first client is given service end.
Step 302: service end is carried the sign of file to be downloaded according to this download request; Search the corresponding relation of files stored sign, form and file; If find out corresponding file and form; Then execution in step 303, if do not find out respective file and form, then execution in step 307;
Wherein, in client, store the corresponding relation of file identification, form and file as shown in table 2 in advance.Files stored sign and form are respectively the form of sign and every record files stored of every record files stored in every record in the corresponding relation of file identification, form and file.For example, the second line item storage file of table 2 is designated URL2, form is MP4 and file 2, and file identification URL2 and form MP4 are respectively the file identification of video file 2 and the form of video file 2.
Table 2
File identification Form File
URL2 MP4 Video file 2
URL3 AVI Video file 3
…… …… ?……
For example, service end receives the download request that first client is sent the sign URL1 and the form AVI that carry video file 1, according to the sign URL1 of video file 1, searches the corresponding relation of file identification as shown in table 2, form and file.
Step 303: service end is judged the form search, and the form with file to be downloaded is identical, if identical, then execution in step 304, if different, then execution in step 305;
Step 304: service end is returned the file of searching and is given first client, execution in step 312;
Wherein, the sign of the file of from the corresponding relation of file identification, form and file, searching and form sign and the form with file to be downloaded respectively are identical, and the file of then searching is exactly the file to be downloaded of the required form of first user.After first client received the file that service end returns, the form of the file that service end is returned was that the form of the required downloaded files of first user is identical, the form that therefore first user need the file that the Transformation Service end returns on first client.
Step 305: service end is according to the form of file to be downloaded, the file of conversion lookup, and the file that returns conversion is given client;
Further, service end can also show the progress of conversion to first user; If in the process of the file of conversion lookup; When having new user to ask to download identical with first user file to be downloaded again; Promptly there is new user to send and sends identical download request with first user; Service end can be filtered the download request that new user sends, and shares the progress of convert file to new user simultaneously.
Wherein, first client receives the file that service end is returned conversion, and the form of the file that returns of service end wants the form of downloaded files identical with first user, so the form that first user need the file that the Transformation Service end returns on first client.
Step 306: the corresponding relation between the sign of the file that the service end storage is to be downloaded and the file three of form and conversion, execution in step 312 then;
Particularly, service end with the file of the sign of file to be downloaded and form and conversion as a new record and be stored in the corresponding relation of file identification, form and file.
Step 307: the sign that service end is carried file to be downloaded according to this download request, from the Internet, obtain corresponding file;
Wherein, if from the corresponding relation of file identification, form and file, do not find out corresponding file, show that then service end receives this download request for the first time; The form of the file that from the Internet, obtains maybe be different with the form of file to be downloaded.For example, client is obtained corresponding file according to the sign URL1 of video file 1 from the Internet.
Step 308: whether the form of the file that the service end judgement is obtained is identical with the form of file to be downloaded, if then execution in step 309, if not, then execution in step 310;
Step 309: service end returns to first client with the file that obtains, and store sign and the form of file to be downloaded and the file three that obtains between corresponding relation, execution in step 312 then;
Particularly, service end returns to first client with the file that obtains, with the sign of file to be downloaded and form and the file that obtains as a new record and be stored in the corresponding relation of file identification, form and file.
Step 310: service end is carried the form of file to be downloaded according to this download request, changes into the file that obtains;
Further, service end can also show the progress of conversion to first user; If in the process of the file of conversion lookup; When having new user to ask to download identical with first user file to be downloaded again; Promptly there is new user to send and sends identical download request with first user; Service end can be filtered the request that new user sends, and shares the progress of convert file to new user simultaneously.
For example, it is different with the form of video file 1 that service end is judged the form of the video file that obtains, and then according to the form AVI of video file 1, converts the video file that obtains to video file 1 that form is AVI.
Further, service end can be extracted form from the file that obtains, with the form of the sign of file to be downloaded, extraction and the file that obtains as a new record and be stored in the corresponding relation of file identification, form and file.
Step 311: service end is sent the file of conversion and is given first client, and stores this download request and carry the corresponding relation between the file three of sign and form and conversion of file to be downloaded;
Particularly, service end is sent the file of conversion and is given first client, and the file of the sign of the file to be downloaded that this download request is carried and form and conversion is as a new record and be stored in the corresponding relation of file identification, form and file.
For example; Service end is sent the video file 1 of conversion and is given first client; Then with the form AVI of the sign URL1 of video file 1 and video file 1 and the video file 1 that is converted to as a new record and be stored in the corresponding relation of file identification as shown in table 2, form and file, the result who obtains is as shown in table 3.First client receives the video file 1 that service end is returned, and first user can be transferred to the video file 1 that service end is returned in self employed video player then, and utilizes self employed video player playing video file 1.
Table 3
File identification Form File
URL1 AVI Video file 1
URL2 MP4 Video file 2
URL3 AVI Video file 3
…… …… ……
Wherein, Second user need download the file identical with first user; Second user is to the sign and the form of second client input file to be downloaded, and second user is identical to the sign and the form of first client input file to be downloaded with first user respectively with form to the sign of second client input file to be downloaded; The redispatch sign of carrying file to be downloaded and form of second client given service end, and the service end execution in step 312 then.
Step 312: service end receives the download request that second client is sent; This download request is carried the sign and the form of file to be downloaded; Wherein, the sign and the form of the file to be downloaded that carries with the download request that first client is sent respectively of this download request sign of carrying file to be downloaded and form are identical;
For example, second user need download the video file 1 that first user is downloaded, and second user is to the sign URL1 of the second client input video file 1 and the form AVI of video file 1; The redispatch download request of the sign URL1 that carries video file 1 and form AVI of second client is given service end then.
Step 313: service end is carried the sign and the form of file to be downloaded according to this download request, finds out corresponding file from the corresponding relation of files stored sign, form and file;
Wherein, It is identical that second client-requested is downloaded file to be downloaded and the download of first client-requested file to be downloaded; And before second client-requested was downloaded file to be downloaded, service end was stored in the corresponding relation between the sign of file to be downloaded and form and the file three to be downloaded in the corresponding relation of file identification, form and file; So when second client-requested file to be downloaded, can be directly from the corresponding relation of file identification, form and file, find out corresponding file according to the sign and the form of file to be downloaded.
For example; Service end receives the download request that second client is sent the sign URL1 and the form AVI that carry file 1; Sign URL1 and form AVI according to file find out corresponding file 1 from the corresponding relation of file identification as shown in table 3, form and file.
Step 314: service end returns to second client with the file of searching.
Wherein, Second client receives the file that service end is returned; Because the form of the file that service end is returned wants the form of downloaded files identical with second user; Make that second user does not need on second client, to change downloaded files again, thereby save the needed time of second user's convert file and save the convert file resource needed.
Wherein, During other each user's download to be downloaded file identical with first user; Other each users download the file after changing from service end, therefore save other each needed times of user's convert file and save the convert file resource needed.
Wherein, in the present embodiment, referring to Fig. 4, service end can comprise task management server, off-line task Distributor, transcoding task Distributor, Download Server cluster, transcoding server cluster, index data base and cloud storage server; The corresponding relation of the common maintenance documentation sign of index data base and cloud storage server, form and file; And the corresponding relation of file identification, form and file is made up of index relative table in the index data base and the file in the cloud storage server; Every in the index relative table is write down sign, the form of this document and the index that this document is stored of storage file at least in the cloud storage server; In addition, the information such as size of all right storage file of index relative table.
Wherein, The task management server of service end receives the download request of first client, and searches index data base according to the sign that this download request is carried file to be downloaded, if find out corresponding form and index; Judge then whether the form search is identical with the form of file to be downloaded; If identical, then obtain corresponding file and return to first client from the cloud storage server, if different according to the index of searching; Then submit to the transcoding task to give transcoding task Distributor, and this transcoding task is carried sign and the form of file to be downloaded and the index of searching; Transcoding task Distributor is selected the process of a free time from the transcoding server cluster; And this transcoding task submitted to this process; This process is obtained corresponding file according to the index of searching from the cloud storage server; The file that obtains according to the format conversion of file to be downloaded; While transcoding task Distributor returns the progress of transcoding and gives the task management server; The task management server returns the progress of transcoding to first client again, during the file that obtains when this process switch is intact, the file that transcoding task Distributor returns conversion give first client and with the file of sign, form and the conversion of file to be downloaded as a new record and be stored in the corresponding relation of file identification, form and file.
If the task management server does not find out corresponding form and index; Then the task management server issues the off-line downloading task and gives off-line downloading task Distributor; Off-line task Distributor is selected Download Server from the Download Server cluster; The off-line downloading task is submitted to the Download Server of selection; This Download Server is downloaded corresponding file according to the sign of file to be downloaded from the Internet, if the form of downloaded files is identical with the form of file to be downloaded, then returns downloaded files and give client; Downloaded files is stored in the cloud storage server; And with the index of the sign of file to be downloaded and form and storage file as in a record and the index data base, if different, then issue the transcoding task and give transcoding task Distributor; Transcoding task Distributor is selected the process of a free time from the transcoding server cluster; This process converts downloaded files the form corresponding file of file to be downloaded to, and in real time the progress of conversion is returned to the task management server at the process transit code task Distributor of conversion, and the task management server returns to first client with the progress of conversion; The file that transcoding task Distributor returns conversion behind EOC is given first client, with the file storage of conversion in the cloud storage server and sign that will file to be downloaded and the index of the file of form and storage conversion write down and store in the index data base as one.
Wherein, When transcoding task Distributor receives the transcoding task; If there is not idle process in the transcoding server cluster; Then transcoding task Distributor is placed on this transcoding task in the formation and waits for, again this transcoding task is submitted to idle process when idle process is arranged and change in the transcoding server cluster.In addition; If carrying out in the process of convert file the task management server in this process receives other clients and sends the download request identical with first client; Then task manager can filter this download request, and the progress of convert file is shared to other clients.
In embodiments of the present invention, when first client during to service end request file to be downloaded, service end is according to the sign of file to be downloaded; The corresponding relation of locating file sign, form and file; If find out corresponding file and form, judge then whether the form of file to be downloaded is identical with the form of searching, if identical; Then return to first client; If different, be the file of the form of file to be downloaded then with the file conversion of searching, the file that returns conversion is given first client and is stored the corresponding relation between the file three of sign and form and conversion of file to be downloaded; If do not find out the file after the conversion; The file that then from the Internet, obtains corresponding file and obtain according to the format conversion of file to be downloaded according to the sign of file to be downloaded; Then with the file after the sign of file to be downloaded and form and the conversion as in the corresponding relation that writes down and be stored in file identification, form and file; When so other users ask the file identical with first client-requested; Service end just can directly be obtained the file of other user's requests and return to other users from the corresponding relation of file identification, form and file; And therefore the file that other users do not need the Transformation Service end to return again saves needed time of user's convert file and convert file resource needed.
Embodiment 4
As shown in Figure 5, the embodiment of the invention provides a kind of device of file in download, comprising:
Receiver module 401 is used to receive download request, and this download request is carried the sign and the form of file to be downloaded;
Acquisition module 402 is used for obtaining file according to the sign and the form of file to be downloaded, and returns the file that obtains.
Wherein, acquisition module 402 specifically is used for sign and form according to file to be downloaded, from the corresponding relation of files stored sign, form and file, finds out corresponding file, returns the file of searching.
Further, this device also comprises:
Monitoring module is used for monitoring the file server of the Internet, if in the monitoring outfile server new file is arranged, then obtains new file;
Extraction module is used for from new file extraction document sign, and new file conversion is become the file of different-format, from the file of conversion, extracts form;
First memory module is used for the file of the form of the file identification that extracts, extraction and conversion as a new record and be stored in the corresponding relation of file identification, form and file.
Wherein, acquisition module 402 comprises:
Search the unit, be used for sign, search the corresponding relation of files stored sign, form and file according to file to be downloaded;
First returns the unit; If be used for finding out corresponding form and file, judge then whether the form searched is identical with the form of file to be downloaded, if identical; Then return the file of searching; If different, the file of then searching according to the format conversion of file to be downloaded, and return the file of conversion;
Second returns the unit, if be used for not finding out corresponding form and file, then according to the sign of file to be downloaded; From the Internet, obtain corresponding file; If the form of the file that obtains is identical with the form of file to be downloaded, then return the file that obtains, otherwise; The file that obtains according to the format conversion of file to be downloaded, and return the file of conversion.
Further, acquisition module 402 also comprises:
First memory cell is used for the file of the sign of file to be downloaded and form and conversion as a new record and be stored in the corresponding relation of file identification, form and file.
Further, acquisition module 402 also comprises:
Second memory cell; If the form of the file that is used for obtaining is identical with the form of file to be downloaded, then with the sign of file to be downloaded and form and the file that obtains as a new record and be stored in the corresponding relation of file identification, form and file;
The 3rd memory cell; If the form of the file that is used for obtaining is different with the form of file to be downloaded; Then from the file that obtains, extract form, with the form of the sign of file to be downloaded, extraction and the file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file.
Further, this device also comprises:
Return module, be used for, return the progress of convert file in real time and give the user in process according to the format conversion file of file to be downloaded.
Further, this device also comprises:
Sharing module; Send identical download request if be used for receiving other users in process according to the format conversion file of file to be downloaded; The download request of then other users being sent is filtered, and the progress of convert file is shared to said other users.
In embodiments of the present invention, when client during to service end request file to be downloaded, service end is according to the sign of file to be downloaded; The corresponding relation of locating file sign, form and file; If find out corresponding file and form, judge then whether the form of file to be downloaded is identical with the form of searching, if identical; Then return to client; If different, be the file of the form of file to be downloaded then with the file conversion of searching, the file that returns conversion is given client and is stored the corresponding relation between the file three of sign and form and conversion of file to be downloaded; If do not find out the file after the conversion; The file that then from the Internet, obtains corresponding file and obtain according to the format conversion of file to be downloaded according to the sign of file to be downloaded; Then with the file after the sign of file to be downloaded and form and the conversion as in the corresponding relation that writes down and be stored in file identification, form and file; When so other users ask the file identical with first client-requested; Service end just can directly be obtained the file of other user's requests and return to other users from the corresponding relation of file identification, form and file; And therefore the file that other users do not need the Transformation Service end to return again saves needed time of user's convert file and convert file resource needed.
Embodiment 5
As shown in Figure 5, the embodiment of the invention provides a kind of system of file in download, comprises client 501 and service end 502;
Client 501 is used to send download request, and this download request is carried the sign and the form of file to be downloaded at least;
Service end 502 is used to receive this download request, obtains file according to the sign and the form of file to be downloaded, and returns the file that obtains.
In embodiments of the present invention; The user is to the sign and the form of client input file to be downloaded; The client transmission is carried the user and is imported the sign of file to be downloaded and the download request of form; Service end receives this download request, carries the sign of file to be downloaded and the corresponding relation of form and file identification, form and file obtains file according to this download request, and returns the file that obtains.Wherein, the form of the file that service end is returned is identical with the form of user's input, thereby makes that the user does not need to change what return again, has saved needed time of user's convert file and convert file resource needed.
All or part of content in the technical scheme that above embodiment provides can realize that through software programming its software program is stored in the storage medium that can read, storage medium for example: the hard disk in the computer, CD or floppy disk.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. the method for a file in download is characterized in that, said method comprises:
Receive download request, said download request is carried the sign and the form of file to be downloaded;
Sign and form according to said file to be downloaded obtain file, and return the said file that obtains.
2. the method for claim 1 is characterized in that, said sign and form according to said file to be downloaded obtains file, comprising:
According to the sign and the form of said file to be downloaded, from the corresponding relation of files stored sign, form and file, find out corresponding file.
3. method as claimed in claim 2 is characterized in that, before the said reception download request, also comprises:
File server in the monitoring the Internet has new file if monitor out in the said file server, then obtain said new file;
Extraction document sign from said new file becomes the file of different-format with said new file conversion, from the file of said conversion, extracts form;
With the file of the form of the file identification of said extraction, said extraction and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
4. the method for claim 1 is characterized in that, said sign and form according to said file to be downloaded obtains file, and returns the said file that obtains, and comprising:
According to the sign of said file to be downloaded, search the corresponding relation of files stored sign, form and file;
If find out corresponding form and file; Judge then whether said form is identical with the form of said file to be downloaded; If identical, then return the said file of searching, if different; Then according to the said file of searching of format conversion of said file to be downloaded, and return the file of said conversion;
If do not find out corresponding form and file; Then, from the Internet, obtain corresponding file, if the form of the said file that obtains is identical with the form of said file to be downloaded according to the sign of said file to be downloaded; Then return the said file that obtains; Otherwise,, and return the file of said conversion according to the said file that obtains of format conversion of said file to be downloaded.
5. method as claimed in claim 4 is characterized in that, changes after said file of searching or the said file that obtains, and also comprises:
With the file of the sign of said file to be downloaded and form and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
6. method as claimed in claim 4 is characterized in that, said from the Internet, obtaining after the corresponding file also comprises:
If the form of the said file that obtains is identical with the form of said file to be downloaded, then with the sign of said file to be downloaded and form and the said file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file;
If the form of the said file that obtains is different with the form of said file to be downloaded; Then from the said file that obtains, extract form, with the form of the sign of said file to be downloaded, extraction and the file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file.
7. like the described method of each claim of claim 4-6, it is characterized in that said method also comprises:
In process, return the progress of convert file in real time and give the user according to the format conversion file of said file to be downloaded.
8. method as claimed in claim 7 is characterized in that, said method also comprises:
Send identical download request if in process, receive other users according to the format conversion file of said file to be downloaded; The download request of then said other users being sent is filtered, and the progress of said convert file is shared to said other users.
9. the device of a file in download is characterized in that, said device comprises:
Receiver module is used to receive download request, and said download request is carried the sign and the form of file to be downloaded;
Acquisition module is used for obtaining file according to the sign and the form of said file to be downloaded, and returns the said file that obtains.
10. device as claimed in claim 9 is characterized in that,
Said acquisition module specifically is used for sign and form according to said file to be downloaded, from the corresponding relation of files stored sign, form and file, finds out corresponding file, returns the said file of searching.
11. device as claimed in claim 10 is characterized in that, said device also comprises:
Monitoring module is used for monitoring the file server of the Internet, if monitor out new file is arranged in the said file server, then obtains said new file;
Extraction module is used for from said new file extraction document sign, and said new file conversion is become the file of different-format, from the file of said conversion, extracts form;
First memory module is used for the file of the form of the file identification of said extraction, said extraction and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
12. device as claimed in claim 9 is characterized in that, said acquisition module comprises:
Search the unit, be used for sign, search the corresponding relation of files stored sign, form and file according to said file to be downloaded;
First returns the unit; If be used for finding out corresponding form and file, judge then whether said form is identical with the form of said file to be downloaded, if identical; Then return the said file of searching; If different,, and return the file of said conversion then according to the said file of searching of format conversion of said file to be downloaded;
Second returns the unit, if be used for not finding out corresponding form and file, then according to the sign of said file to be downloaded; From the Internet, obtain corresponding file; If the form of the said file that obtains is identical with the form of said file to be downloaded, then return the said file that obtains, otherwise; According to the said file that obtains of format conversion of said file to be downloaded, and return the file of said conversion.
13. device as claimed in claim 12 is characterized in that, said acquisition module also comprises:
First memory cell is used for the file of the sign of said file to be downloaded and form and said conversion as a new record and be stored in the corresponding relation of said file identification, form and file.
14. device as claimed in claim 12 is characterized in that, said acquisition module also comprises:
Second memory cell; If the form that is used for the said file that obtains is identical with the form of said file to be downloaded, then with the sign of said file to be downloaded and form and the said file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file;
The 3rd memory cell; If the form that is used for the said file that obtains is different with the form of said file to be downloaded; Then from the said file that obtains, extract form, with the form of the sign of said file to be downloaded, extraction and the file that obtains as a new record and be stored in the corresponding relation of said file identification, form and file.
15., it is characterized in that said device also comprises like the described device of each claim of claim 12-14:
Return module, be used for returning the progress of convert file in real time and giving the user in process according to the format conversion file of said file to be downloaded.
16. device as claimed in claim 15 is characterized in that, said device also comprises:
Sharing module; Send identical download request if be used for receiving other users in process according to the format conversion file of said file to be downloaded; The download request of then said other users being sent is filtered, and the progress of said convert file is shared to said other users.
17. the system of a file in download is characterized in that, said system comprises client and service end;
Said client is used to send download request, and said download request is carried the sign and the form of file to be downloaded at least;
Said service end is used to receive said download request, obtains file according to the sign and the form of said file to be downloaded, and returns the said file that obtains.
CN201110115157.5A 2011-05-05 2011-05-05 A kind of download the method for file, Apparatus and system Active CN102769638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110115157.5A CN102769638B (en) 2011-05-05 2011-05-05 A kind of download the method for file, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110115157.5A CN102769638B (en) 2011-05-05 2011-05-05 A kind of download the method for file, Apparatus and system

Publications (2)

Publication Number Publication Date
CN102769638A true CN102769638A (en) 2012-11-07
CN102769638B CN102769638B (en) 2016-08-24

Family

ID=47096888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110115157.5A Active CN102769638B (en) 2011-05-05 2011-05-05 A kind of download the method for file, Apparatus and system

Country Status (1)

Country Link
CN (1) CN102769638B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982116A (en) * 2012-11-09 2013-03-20 中国联合网络通信集团有限公司 Multi-media transfer method and system based on cloud
CN103929478A (en) * 2014-04-10 2014-07-16 中央电视台 Video and audio file storing and downloading method and system
CN104750738A (en) * 2013-12-30 2015-07-01 中国移动通信集团公司 Data information updating method, data node, management node and system
CN105025391A (en) * 2014-04-30 2015-11-04 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN105744372A (en) * 2014-12-11 2016-07-06 深圳都好看互动电视有限公司 Video-on-demand broadcast method and system, server, and on-demand client
CN106227734A (en) * 2016-07-08 2016-12-14 大唐融合通信股份有限公司 A kind of data processing method based on problem search system and system
WO2017000929A1 (en) * 2015-07-01 2017-01-05 北京金山安全软件有限公司 Client-based media information delivery method and device
CN103841159B (en) * 2012-11-26 2017-04-19 北京新媒传信科技有限公司 Offline file transmission system and method
CN106657288A (en) * 2016-11-30 2017-05-10 安徽金曦网络科技股份有限公司 File transmission system
CN108574855A (en) * 2018-03-15 2018-09-25 西安万像电子科技有限公司 Video streaming method, apparatus and system
CN110247909A (en) * 2019-06-12 2019-09-17 湖南快乐阳光互动娱乐传媒有限公司 Media resource intelligence CDN optimization method, system and device
CN110362546A (en) * 2019-07-22 2019-10-22 网易(杭州)网络有限公司 Acquisition methods, device and the document conversion system of convert file
CN110650371A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Video-on-demand method and device
WO2021012723A1 (en) * 2019-07-23 2021-01-28 上海哔哩哔哩科技有限公司 Multimedia file storage and access method
CN117311698A (en) * 2023-08-14 2023-12-29 广州致远电子股份有限公司 Software package release method, software package download method, terminal device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023081A1 (en) * 2000-08-15 2002-02-21 Bazan Silvia L. System and method for providing medical information via the internet without the need for broadband connectivity
CN101594241A (en) * 2009-06-26 2009-12-02 北京大学 A kind of method for down loading of Internet video and system
CN101668255A (en) * 2008-09-02 2010-03-10 杨明极 Self-adaptive method for mobile terminal to display or download pictures through network
CN101877721A (en) * 2010-06-02 2010-11-03 中兴通讯股份有限公司 Terminal downloading automatic adaptation method and downloading server
CN102487375A (en) * 2010-12-01 2012-06-06 腾讯科技(深圳)有限公司 Method, device and system for downloading videos online
CN102710673A (en) * 2011-03-28 2012-10-03 腾讯科技(深圳)有限公司 Method and device for downloading data by terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020023081A1 (en) * 2000-08-15 2002-02-21 Bazan Silvia L. System and method for providing medical information via the internet without the need for broadband connectivity
CN101668255A (en) * 2008-09-02 2010-03-10 杨明极 Self-adaptive method for mobile terminal to display or download pictures through network
CN101594241A (en) * 2009-06-26 2009-12-02 北京大学 A kind of method for down loading of Internet video and system
CN101877721A (en) * 2010-06-02 2010-11-03 中兴通讯股份有限公司 Terminal downloading automatic adaptation method and downloading server
CN102487375A (en) * 2010-12-01 2012-06-06 腾讯科技(深圳)有限公司 Method, device and system for downloading videos online
CN102710673A (en) * 2011-03-28 2012-10-03 腾讯科技(深圳)有限公司 Method and device for downloading data by terminal

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982116A (en) * 2012-11-09 2013-03-20 中国联合网络通信集团有限公司 Multi-media transfer method and system based on cloud
CN103841159B (en) * 2012-11-26 2017-04-19 北京新媒传信科技有限公司 Offline file transmission system and method
CN104750738A (en) * 2013-12-30 2015-07-01 中国移动通信集团公司 Data information updating method, data node, management node and system
CN103929478A (en) * 2014-04-10 2014-07-16 中央电视台 Video and audio file storing and downloading method and system
CN103929478B (en) * 2014-04-10 2018-03-30 中央电视台 A kind of video and audio file storage, the method and system downloaded
CN105025391A (en) * 2014-04-30 2015-11-04 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN105744372A (en) * 2014-12-11 2016-07-06 深圳都好看互动电视有限公司 Video-on-demand broadcast method and system, server, and on-demand client
WO2017000929A1 (en) * 2015-07-01 2017-01-05 北京金山安全软件有限公司 Client-based media information delivery method and device
CN106227734B (en) * 2016-07-08 2019-06-25 大唐融合通信股份有限公司 A kind of data processing method and system based on problem search system
CN106227734A (en) * 2016-07-08 2016-12-14 大唐融合通信股份有限公司 A kind of data processing method based on problem search system and system
CN106657288A (en) * 2016-11-30 2017-05-10 安徽金曦网络科技股份有限公司 File transmission system
CN108574855A (en) * 2018-03-15 2018-09-25 西安万像电子科技有限公司 Video streaming method, apparatus and system
CN110650371A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Video-on-demand method and device
CN110247909A (en) * 2019-06-12 2019-09-17 湖南快乐阳光互动娱乐传媒有限公司 Media resource intelligence CDN optimization method, system and device
CN110362546A (en) * 2019-07-22 2019-10-22 网易(杭州)网络有限公司 Acquisition methods, device and the document conversion system of convert file
WO2021012723A1 (en) * 2019-07-23 2021-01-28 上海哔哩哔哩科技有限公司 Multimedia file storage and access method
CN112287127A (en) * 2019-07-23 2021-01-29 上海哔哩哔哩科技有限公司 Multimedia file storage and reading method
CN112287127B (en) * 2019-07-23 2022-10-14 上海哔哩哔哩科技有限公司 Multimedia file storage and reading method
CN117311698A (en) * 2023-08-14 2023-12-29 广州致远电子股份有限公司 Software package release method, software package download method, terminal device and storage medium
CN117311698B (en) * 2023-08-14 2024-05-17 广州致远电子股份有限公司 Software package release method, software package download method, terminal device and storage medium

Also Published As

Publication number Publication date
CN102769638B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN102769638A (en) Method, device and system for downloading files
JP5204893B2 (en) Distributed media fingerprint repository
US8156122B2 (en) Information reproduction device and method and program
AU2009201232B2 (en) Managing media files from multiple sources
US8261178B2 (en) Audio data distribution system and method for generating a photo slideshow which automatically selects music
CN101179474B (en) Download method, system and device
CN102906747A (en) Method and apparatus for portable index on removable storage medium
CN101729442A (en) Method and device for realizing content sharing
US20090043815A1 (en) System and method for processing downloaded data
CN101677325A (en) Method, device and system for publishing media description information and acquiring media
CN102546836A (en) Method, terminal, server and system for uploading files
CN103607461A (en) Information sharing method and cloud server
CN102004994B (en) Online product recommendation and selection method, device and system
CN102289520A (en) Traffic video retrieval system and realization method thereof
CN103051690B (en) In a kind of local area network (LAN), on-vehicle host plays system and the implementation method of mobile phone music
CN103634736A (en) A hot news sharing method based on geographical information, an apparatus and a system
US20170091197A1 (en) Multimedia Display Method, Apparatus, and Device
CN110636345B (en) Multimedia information sharing method and system under same identity account
CN101409657A (en) Household network system and method for searching information
CN103780676A (en) File transmission method, device and system
CN102486926A (en) Method and system for acquiring personalized music media information
CN102722405A (en) Counting method in high concurrent and multithreaded application and system
CN103761256A (en) Maintenance system and method of branch points of remote directories
CN101699443B (en) Method and device for managing network files
CN101945100A (en) Digital house streaming media server and serving method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant