CN104536790A - File downloading method - Google Patents

File downloading method Download PDF

Info

Publication number
CN104536790A
CN104536790A CN201410836724.XA CN201410836724A CN104536790A CN 104536790 A CN104536790 A CN 104536790A CN 201410836724 A CN201410836724 A CN 201410836724A CN 104536790 A CN104536790 A CN 104536790A
Authority
CN
China
Prior art keywords
file
download request
terminal
memory capacity
room
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410836724.XA
Other languages
Chinese (zh)
Inventor
李运财
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410836724.XA priority Critical patent/CN104536790A/en
Publication of CN104536790A publication Critical patent/CN104536790A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a file downloading method. The file downloading method comprises the steps that when a file downloading order, input by a user, for a first file is received, the remaining storage capacity of a terminal is inquired; according to the remaining storage capacity of the terminal, a file downloading request is sent to a file server, so that the file server is made to search for a second file according to the file downloading request, wherein the content of the second file is identical with that of the first file, and the occupied space of the second file is smaller than that of the first file; the second file which is fed back by the file server by responding to the file downloading request is received. By the adoption of the file downloading method, the file with an appropriate size can be downloaded according to the remaining storage capacity of the terminal, the operation performance of the terminal can be effectively improved, and therefore user experience is improved.

Description

A kind of document down loading method
Technical field
The present invention relates to communication technical field, particularly relate to a kind of document down loading method.
Background technology
Along with the development of infotech, the requirement of user to document quality is more and more higher, but along with the raising of document quality, taking up room of file also increases thereupon.In addition, the file that content is identical can have different quality, and the image file of such as same content is due to ratio of compression difference, and its quality is not identical yet.In prior art, when user needs to download files into terminal, the document quality that terminal is selected according to user usually carries out file download, if user downloads the file of better quality always, the file that the limited memory capacity of terminal can be held is less, especially when the residue memory capacity of terminal is less, download take up room larger file can cause terminal become card, slack-off, seriously reduce Consumer's Experience.
Summary of the invention
The embodiment of the present invention provides a kind of document down loading method, can download sizeable file according to the residue memory capacity of terminal, effectively to improve the runnability of terminal, thus promotes Consumer's Experience.
Embodiments provide a kind of document down loading method, described document down loading method comprises:
When receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal;
Send file download request according to the residue memory capacity of described terminal to file server, search identical with the content of described first file according to described file download request to make described file server and take up room and be less than the second file of described first file;
Receive described file server and respond described second file that described file download request returns.
The embodiment of the present invention is by the residue memory capacity of the inquiry terminal when receiving the file download instructions for the first file of user's input, thus download to take up room from file server according to the residue memory capacity of described terminal and be less than the second file of described first file, because described terminal can download sizeable file according to the residue memory capacity of self, thus effectively improve the runnability of terminal, and save storage space, and then promote Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below the accompanying drawing used required for embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of document down loading method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of document down loading method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of another document down loading method that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of another document down loading method that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of transmitting element in the embodiment of the present invention;
Fig. 7 is the structural representation of the another kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
Terminal in the embodiment of the present invention can comprise PC, smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC, mobile internet device (MID, Mobile Internet Devices) or wearable intelligent equipment etc.
Fig. 1 is the schematic flow sheet of a kind of document down loading method in the embodiment of the present invention, and as shown in Figure 1, this document down loading method can comprise the following steps:
S101, when receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal.
In specific implementation, user for the file download instructions of the first file, when described terminal receives this file download instructions, inquires about the residue memory capacity of self to terminal input.Wherein, described first file can comprise image file, video file, audio file or text.
S102, send file download request according to the residue memory capacity of described terminal to file server, search identical with the content of described first file according to described file download request to make described file server and take up room and be less than the second file of described first file.
In specific implementation, described terminal can send file download request according to the residue memory capacity of self to file server, wherein, described file download request is for identical with the content of described first file and take up room and be less than the file of described first file, namely according to described file download request, described file server can determine that the file that described terminal needs to download is identical with the content of described first file, but takes up room and be less than described first file; After described file server receives described file download request, can search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file.Such as, if described first file is image file, described second file can be the image file of image compression rate higher than described first file; If described first file is video file, described second file can be the video file of video code rate lower than described first file; If described first file is audio file, described second file can be greater than the audio file of described first file for compression losses.Wherein, described image compression rate is taking up room and the ratio taken up room of compressed image file of original image file, and ratio of compression is higher, and taking up room of compressed image file is less.Such as compression after image file take up room for original image file take up room 1/2, then the ratio of compression of the image file after described compression is 2.
Optionally, the step S102 in method shown in Fig. 1 can comprise:
Determine that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then send described file download request to described file server, search identical with the content of described first file according to described file download request to make described file server and take up room and be less than the second file of described first file.
Concrete, described terminal can arrange described first predetermined threshold value, when the residue memory capacity of described terminal is lower than described first predetermined threshold value, described terminal is downloaded identical with the content of described first file from described file server and is taken up room and be less than the second file of described first file.Such as described terminal arrange that described first predetermined threshold value is described terminal total memory capacity 20%, if then described terminal performs the residue memory capacity that step S101 inquires about self when being 15% of total memory capacity, described file download request can be sent to described file server.Wherein, described file download request is for identical with the content of described first file and take up room and be less than the second file of described first file.Optionally, if not identical with the content of described first file and take up room and be less than the second file of described first file in described file server, described terminal can cancel download, also can download described first file.
S103, receives described file server and responds described second file that described file download request returns.
In specific implementation, described terminal receives described second file that described file server finds according to described file download request, namely completes download.
In a kind of embodiment, the method shown in Fig. 1 can also comprise the following steps:
11), on the screen of described terminal display reminding information, the storage time information of described information in order to point out the user of described terminal to arrange described second file;
12), information storage time of described second file that arranges according to described information of the user that receives described terminal, described storage time, information comprised thresholding storage time;
13), from receiving described second file, when arriving described thresholding storage time, described second file is deleted.
In specific implementation, described terminal can on the screen of self display reminding information, with information storage time pointing out the user of described terminal to arrange described second file, described storage time, information comprised thresholding storage time, from receiving described second file, to when arriving described thresholding storage time, described terminal can delete described second file.Such as, thresholding storage time that the user of described terminal arranges described second file is 10 days, then, from described terminal receives described second file when 10 days, described terminal can delete described second file.
Optionally, if the file that the user of described terminal downloads is described first file, described terminal also can perform above-mentioned steps 11 for described first file) ~ 13).
In another kind of embodiment, in the method shown in Fig. 1, described terminal, before execution step S102, first can determine that the residue memory capacity of described terminal is greater than or equal to the second predetermined threshold value.
Concrete, described terminal can arrange the second predetermined threshold value, when the residue memory capacity of self is greater than or equal to described second predetermined threshold value, can perform step S102; If the residue memory capacity of self lower than described second predetermined threshold value, then cancels download.Wherein, described second predetermined threshold value is less than described first predetermined threshold value.
In the embodiment of the present invention, terminal is when receiving the file download instructions for the first file of user's input, inquire about the residue memory capacity of self, thus download to take up room from file server according to self residue memory capacity and be less than the second file of described first file, because described terminal can download sizeable file according to the residue memory capacity of self, thus effectively improve the runnability of terminal, and save storage space, and then promote Consumer's Experience.
Fig. 2 is the schematic flow sheet of the another kind of document down loading method in the embodiment of the present invention, and as shown in Figure 2, this document down loading method can comprise the following steps:
S201, when receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal.
S202, determines that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then display reminding information on the screen of described terminal, and described information is less than the file of described first file in order to point out the user of described terminal to download to take up room.
S203, if the user of described terminal responds described information input validation information, then send described file download request to described file server, search identical with the content of described first file according to described file download request to make described file server and take up room and be less than the second file of described first file.
In specific implementation, if described terminal determines that the residue memory capacity of self is lower than the first predetermined threshold value, can on the screen of self display reminding information, such as described terminal display reminding information on self screen is " your terminal current residual storage space is lower than 20% of total memory capacity; lower file of whether selecting to take up room is downloaded ", and provides " determination " and " cancellation " button; If the user of described terminal selects described " determination " button, then described terminal is downloaded identical with the content of described first file from described file server and is taken up room and be less than the second file of described first file; If the user of described terminal selects described " cancellation " button, then described terminal still downloads described first file.
Optionally, if described terminal determines that the residue memory capacity of self is lower than the first predetermined threshold value, can inquire about in described file server and whether comprise identical with the content of described first file and take up room and be less than the second file of described first file, if so, then display reminding information on the screen of self; If not, then described first file is downloaded.
S204, receives described file server and responds described second file that described file download request returns.
Optionally, described terminal can arrange at least one predetermined threshold value, at least one predetermined threshold value described comprises described first predetermined threshold value, and described terminal carries out different operations according to the residue memory capacity of self respectively from least one predetermined threshold value described.Such as, described terminal is provided with 5 predetermined threshold value, is respectively 40% of self total memory capacity, 30%, 20%, 10% and 5%, and the residue memory capacity of described terminal and the ratio of self total memory capacity are c; When described terminal receives the file download instructions for the first file that user inputs to described terminal, if 30%<c<40%, described terminal notifying user arranges the storage space of described terminal, and downloads described first file; If 20%<c<30%, described terminal notifying user arranges thresholding storage time of described first file, downloads described first file, and from receiving described first file, during to described thresholding storage time, delete described first file; If 10%<c<20%, described terminal notifying user downloads to take up room and is less than the file of described first file, if user responds described prompting input validation information, then download identical with the content of described first file and take up room and be less than the second file of described first file; If 5%<c<10%, described terminal is directly downloaded identical with the content of described first file and is taken up room and be less than the second file of described first file; If c<5%, described terminal cancels download.
In the embodiment of the present invention, terminal is when receiving the file download instructions for the first file of user's input, inquire about the residue memory capacity of self, if determine, the residue memory capacity of described terminal is lower than the first predetermined threshold value, then display reminding information on self screen, described information is less than the file of described first file in order to point out the user of described terminal to download to take up room, if the user of described terminal responds described information input validation information, then download to take up room from file server according to self residue memory capacity and be less than the second file of described first file, because described terminal can download sizeable file according to the residue memory capacity of self, thus effectively improve the runnability of terminal, and save storage space, and then lifting Consumer's Experience.
Fig. 3 is the schematic flow sheet of another document down loading method in the embodiment of the present invention, and as shown in Figure 3, this document down loading method can comprise the following steps:
S301, when receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal.
S302, determine residue memory capacity the taking up room lower than described first file of described terminal, then send described file download request to described file server, search the second file that is identical with the content of described first file and the residue memory capacity being less than described terminal that takes up room to make described file server according to described file download request.
In specific implementation, if described terminal determines residue memory capacity the taking up room lower than described first file of self, then described terminal is downloaded identical with the content of described first file from described file server and is taken up room and be less than the second file of described first file.Such as described first file take up room as 200MB, and the residue memory capacity of described terminal is 100MB, described file server comprises identical with described first file content and takes up room as second file of 50MB, then described terminal downloads described second file from described file server.Optionally, if not identical with the content of described first file and take up room and be less than the second file of described first file in described file server, described terminal can cancel download, also and the file identification information of the take up room residue memory capacity that is less than described terminal identical with the file type of described first file can be obtained from described file server, and the file identification information of at least one file described is presented on self screen and selects for user, down operation is carried out in the selection according to user.
Optionally, if described file server comprises at least one file that is identical with the content of described first file and the residue memory capacity being less than described terminal that takes up room, then described terminal can download described and any one file of taking up room at least one file of the residue memory capacity that is less than described terminal identical with the content of described first file, also the minimum file that wherein takes up room can be downloaded, also the maximum file that wherein takes up room can be downloaded.
S303, receives described file server and responds described second file that described file download request returns.
In the embodiment of the present invention, terminal is when receiving the file download instructions for the first file of user's input, inquire about the residue memory capacity of self, if determine residue memory capacity the taking up room lower than described first file of described terminal, then download to take up room from file server according to self residue memory capacity and be less than the second file of described first file, because described terminal can download sizeable file according to the residue memory capacity of self, thus effectively improve the runnability of terminal, and save storage space, and then promote Consumer's Experience.
Fig. 4 is the schematic flow sheet of another document down loading method in the embodiment of the present invention, and as shown in Figure 4, this document down loading method can comprise the following steps:
S401, when receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal.
S402, residue memory capacity according to described terminal sends file download request to file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and determine described second file from least one file described.
In a kind of embodiment, the step S402 in method shown in Fig. 4 can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and determine that any one file at least one file described is described second file.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, then described file download request can for any one file at least one file described, and namely according to described file download request, described file server determines that any one file at least one file described is the second file.
In another kind of embodiment, the step S402 in method shown in Fig. 4 can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and minimum file of determining to take up room at least one file described is described second file.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, then described file download request can for the minimum file that takes up room at least one file described, namely described file server is the second file according to described file download request minimum file of determining to take up room at least one file described, to save the storage space of terminal while meeting consumers' demand to greatest extent.
In another embodiment, the step S402 in method shown in Fig. 4 can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and the residue memory capacity that is less than described terminal and the maximum file that takes up room is described second file of determining to take up room at least one file described.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, the then described file download request residue memory capacity and the maximum file that takes up room that can be less than described terminal for taking up room at least one file described, namely described file server to be determined to take up room at least one file described the residue memory capacity that is less than described terminal and the maximum file that takes up room is the second file according to described file download request, to promote the visual experience of user to file to greatest extent while saving terminal storage space.
In another embodiment, the step S402 in method shown in Fig. 4 can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, searches file identification information that is identical with the content of described first file and at least one file being less than described first file that takes up room to make described file server according to described file download request;
Receive the file identification information of at least one file described that described file server sends;
On the screen of described terminal, the file identification information of display at least one file described, determines described second file according to the file identification information of at least one file described to make the user of described terminal from least one file described;
The user receiving described terminal determines the file identification information of described second file that described second file returns;
Send the file identification information of described second file to described file server, search described second file to make described file server according to the file identification information of described second file.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, then described terminal first can receive the file identification information of at least one file described that described file server sends, and on the screen of self, showing the file identification information of at least one file described, the file selecting it to need to make the user of described terminal is described second file.
S403, receives described file server and responds described second file that described file download request returns.
In the embodiment of the present invention, terminal is when receiving the file download instructions for the first file of user's input, inquire about the residue memory capacity of self, and download to take up room from file server according to self residue memory capacity and be less than the second file of described first file, because described terminal can download sizeable file according to the residue memory capacity of self, thus effectively improve the runnability of terminal, and save storage space, and then promote Consumer's Experience.
Fig. 5 is the structural representation of a kind of terminal in the embodiment of the present invention, and as shown in Figure 5, the terminal in the embodiment of the present invention can comprise:
Receiving element 501, for receiving the file download instructions for the first file of user's input.
Query unit 502, for receive when described receiving element user input the file download instructions for the first file time, the residue memory capacity of inquiry terminal.
In specific implementation, user inputs the file download instructions for the first file to terminal, and when described receiving element 501 receives this file download instructions, described query unit 502 inquires about the residue memory capacity of described terminal.Wherein, described first file can comprise image file, video file, audio file or text.
Transmitting element 503, for sending file download request according to the residue memory capacity of described terminal to file server, searching identical with the content of described first file according to described file download request to make described file server and taking up room and be less than the second file of described first file.
In specific implementation, described transmitting element 503 can send file download request according to the residue memory capacity of described terminal to file server, wherein, described file download request is for identical with the content of described first file and take up room and be less than the file of described first file, namely according to described file download request, described file server can determine that the file that described terminal needs to download is identical with the content of described first file, but takes up room and be less than described first file; After described file server receives described file download request, can search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file.Wherein, if described first file is image file, described second file can be the image file of image compression rate higher than described first file; If described first file is video file, described second file can be the video file of video code rate lower than described first file; If described first file is audio file, described second file can be greater than the audio file of described first file for compression losses.Wherein, described image compression rate is taking up room and the ratio taken up room of compressed image file of original image file, and ratio of compression is higher, and taking up room of compressed image file is less.Such as compression after image file take up room for original image file take up room 1/2, then the ratio of compression of the image file after described compression is 2.
In a kind of embodiment, described transmitting element 503 may be used for:
Determine that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then send described file download request to described file server, search identical with the content of described first file according to described file download request to make described file server and take up room and be less than the second file of described first file.
Concrete, described terminal can arrange described first predetermined threshold value, when the residue memory capacity of described terminal is lower than described first predetermined threshold value, described terminal is downloaded identical with the content of described first file from described file server and is taken up room and be less than the second file of described first file.Such as described terminal arrange that described first predetermined threshold value is described terminal total memory capacity 20%, if then described query unit 502 inquires about the residue memory capacity of self when being 15% of total memory capacity, described transmitting element 503 can send described file download request to described file server.Wherein, described file download request is for identical with the content of described first file and take up room and be less than the second file of described first file.Optionally, if not identical with the content of described first file and take up room and be less than the second file of described first file in described file server, described terminal can cancel download, also can download described first file.
And then in an alternative embodiment, described transmitting element 503 may be used for:
Determine that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then display reminding information on the screen of described terminal, described information is less than the file of described first file in order to point out the user of described terminal to download to take up room;
If the user of described terminal responds described information input validation information, then send described file download request to described file server.
In specific implementation, if described transmitting element 503 determines that the residue memory capacity of described terminal is lower than the first predetermined threshold value, can on the screen of described terminal display reminding information, such as, on the screen of described terminal, display reminding information is " your terminal current residual storage space is lower than 20% of total memory capacity; lower file of whether selecting to take up room is downloaded ", and provides " determination " and " cancellation " button; If the user of described terminal selects described " determination " button, then described transmitting element 503 sends described file download request to described file server, to download from described file server identical with the content of described first file and to take up room and be less than the second file of described first file; If the user of described terminal selects described " cancellation " button, then described terminal still downloads described first file.
Optionally, if described transmitting element 503 determines that the residue memory capacity of described terminal is lower than the first predetermined threshold value, can inquire about in described file server and whether comprise identical with the content of described first file and take up room and be less than the second file of described first file, if so, then display reminding information on the screen of described terminal; If not, then described file download request is sent to described file server.
In another kind of embodiment, described transmitting element 503 may be used for:
Determine residue memory capacity the taking up room lower than described first file of described terminal, then send described file download request to described file server, search the second file that is identical with the content of described first file and the residue memory capacity being less than described terminal that takes up room to make described file server according to described file download request.
In specific implementation, if described transmitting element 503 determines residue memory capacity the taking up room lower than described first file of described terminal, then described transmitting element 503 sends described file download request to described file server, to download from described file server identical with the content of described first file and to take up room and be less than the second file of described first file.Such as described first file take up room as 200MB, and the residue memory capacity of described terminal is 100MB, described file server comprises identical with described first file content and takes up room as second file of 50MB, then described terminal downloads described second file from described file server.Optionally, if not identical with the content of described first file and take up room and be less than the second file of described first file in described file server, described terminal can cancel download, also and the file identification information of at least one file of the take up room residue memory capacity that is less than described terminal identical with the file type of described first file can be obtained from described file server, and the file identification information of at least one file described is presented on self screen and selects for user, down operation is carried out in the selection according to user.
Optionally, if described file server comprises at least one file that is identical with the content of described first file and the residue memory capacity being less than described terminal that takes up room, then described terminal can download described and any one file of taking up room at least one file of the residue memory capacity that is less than described terminal identical with the content of described first file, also the minimum file that wherein takes up room can be downloaded, also the maximum file that wherein takes up room can be downloaded.
In another embodiment, described transmitting element 503 may be used for:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and determine that any one file at least one file described is described second file.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, then described file download request can for any one file at least one file described, and namely according to described file download request, described file server determines that any one file at least one file described is the second file.
In another embodiment, described transmitting element 503 may be used for:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and minimum file of determining to take up room at least one file described is described second file.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, then described file download request can for the minimum file that takes up room at least one file described, namely described file server is the second file according to described file download request minimum file of determining to take up room at least one file described, to save the storage space of terminal while meeting consumers' demand to greatest extent.
In another embodiment, described transmitting element 503 may be used for:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and the residue memory capacity that is less than described terminal and the maximum file that takes up room is described second file of determining to take up room at least one file described.
In specific implementation, if described file server comprises, at least one is identical with the content of described first file and take up room and be less than the file of described first file, the then described file download request residue memory capacity and the maximum file that takes up room that can be less than described terminal for taking up room at least one file described, namely described file server to be determined to take up room at least one file described the residue memory capacity that is less than described terminal and the maximum file that takes up room is the second file according to described file download request, to promote the visual experience of user to file to greatest extent while saving terminal storage space.
In another embodiment, as shown in Figure 6, described transmitting element 503 can comprise:
Download request transmitting element 5301, send file download request for the residue memory capacity according to described terminal to described file server, search file identification information that is identical with the content of described first file and at least one file being less than described first file that takes up room to make described file server according to described file download request;
Information receiving unit 5302, for receiving the file identification information of at least one file described in the transmission of described file server;
Information display unit 5303, on the screen in described terminal, the file identification information of display at least one file described, determines described second file according to the file identification information of at least one file described to make the user of described terminal from least one file described;
Information receiving unit 5302, the user also for receiving described terminal determines the file identification information of described second file that described second file returns;
Information transmitting unit 5304, for sending the file identification information of described second file to described file server, searches described second file to make described file server according to the file identification information of described second file.
Described receiving element 501, also responds for receiving described file server described second file that described file download request returns.
In specific implementation, described receiving element 501 receives described second file that described file server finds according to described file download request, namely completes download.
In a kind of embodiment, the terminal shown in Fig. 5 can also comprise:
Display unit 504, display reminding information on the screen in described terminal, the storage time information of described information in order to point out the user of described terminal to arrange described second file;
Described receiving element 501, information storage time of described second file also arranged according to described information for the user receiving described terminal, described storage time, information comprised thresholding storage time;
Delete cells 505, for receiving described second file from described receiving element, when arriving described thresholding storage time, deletes described second file.
In specific implementation, described display unit 504 can on the screen of described terminal display reminding information, with information storage time pointing out the user of described terminal to arrange described second file, described storage time, information comprised thresholding storage time, from described receiving element 501 receives described second file, to when arriving described thresholding storage time, described delete cells 505 can delete described second file.Such as, thresholding storage time that the user of described terminal arranges described second file is 10 days, then, from described receiving element 501 receives described second file when 10 days, described delete cells 505 can delete described second file.
In another kind of embodiment, the terminal shown in Fig. 5 can also comprise:
Determining unit 506, before sending file download request according to the residue memory capacity of described terminal to file server at described transmitting element 503, determines that the residue memory capacity of described terminal is greater than or equal to the second predetermined threshold value.
Concrete, described terminal can arrange the second predetermined threshold value, if described determining unit 506 determines that the residue memory capacity of described terminal is greater than or equal to described second predetermined threshold value, described transmitting element 503 can be triggered and send file download request according to the residue memory capacity of described terminal to file server; If described determining unit 506 determines that the residue memory capacity of described terminal is lower than described second predetermined threshold value, then cancel download.Wherein, described second predetermined threshold value is less than described first predetermined threshold value.
In the embodiment of the present invention, terminal is when receiving the file download instructions for the first file of user's input, inquire about the residue memory capacity of self, thus download to take up room from file server according to self residue memory capacity and be less than the second file of described first file, because described terminal can download sizeable file according to the residue memory capacity of self, thus effectively improve the runnability of terminal, and save storage space, and then promote Consumer's Experience.
Fig. 7 is the structural representation of the another kind of terminal in the embodiment of the present invention, and as shown in Figure 7, the terminal in the embodiment of the present invention can comprise:
At least one input media 701, at least one output unit 702, at least one processor 703, such as CPU, storer 704 and at least one bus 705; Above-mentioned input media 701, output unit 702, processor 703 are connected by bus 705 with storer 704.
Wherein, above-mentioned input media 701 specifically can be the contact panel of terminal, and above-mentioned output unit 702 specifically can be the display screen of terminal; Above-mentioned storer 704 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as magnetic disk memory.Above-mentioned storer 704 is for storing batch processing code, and above-mentioned input media 701, output unit 702 and processor 703 call the program code stored in storer 704, for performing following operation:
Above-mentioned input media 701, for receiving the file download instructions for the first file of user's input;
Above-mentioned processor 703, for when receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal;
Above-mentioned processor 703, also for sending file download request according to the residue memory capacity of described terminal to file server, searching identical with the content of described first file according to described file download request to make described file server and taking up room and be less than the second file of described first file;
Above-mentioned processor 703, also responds for receiving described file server described second file that described file download request returns.
In a kind of embodiment, above-mentioned processor 703 sends file download request according to the residue memory capacity of described terminal to file server, specifically can comprise:
Determine that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then send described file download request to described file server.
And then in an alternative embodiment, above-mentioned processor 703 determines that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then send described file download request to described file server, specifically can comprise:
When above-mentioned processor 703 determines the residue memory capacity of described terminal lower than the first predetermined threshold value, above-mentioned output unit 702 display reminding information, described information is less than the file of described first file in order to point out the user of described terminal to download to take up room;
If the user of described terminal responds described information input validation information, then above-mentioned processor 703 sends described file download request to described file server.
In another kind of embodiment, above-mentioned processor 703 sends file download request according to the residue memory capacity of described terminal to file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file, specifically can comprise:
Determine residue memory capacity the taking up room lower than described first file of described terminal, then send described file download request to described file server, search the second file that is identical with the content of described first file and the residue memory capacity being less than described terminal that takes up room to make described file server according to described file download request.
In another embodiment, above-mentioned processor 703 sends file download request according to the residue memory capacity of described terminal to file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file, specifically can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and determine that any one file at least one file described is described second file.
In another embodiment, above-mentioned processor 703 sends file download request according to the residue memory capacity of described terminal to file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file, specifically can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and minimum file of determining to take up room at least one file described is described second file.
In another embodiment, above-mentioned processor 703 sends file download request according to the residue memory capacity of described terminal to file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file, specifically can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and the residue memory capacity that is less than described terminal and the maximum file that takes up room is described second file of determining to take up room at least one file described.
In another embodiment, above-mentioned processor 703 sends file download request according to the residue memory capacity of described terminal to file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than the second file of described first file, specifically can comprise:
Residue memory capacity according to described terminal sends file download request to described file server, searches file identification information that is identical with the content of described first file and at least one file being less than described first file that takes up room to make described file server according to described file download request;
Receive the file identification information of at least one file described that described file server sends;
Above-mentioned output unit 702, for showing the file identification information of at least one file described, determines described second file according to the file identification information of at least one file described to make the user of described terminal from least one file described;
Above-mentioned input media 701, the user for receiving described terminal determines the file identification information of described second file that described second file returns;
Above-mentioned processor 703, for sending the file identification information of described second file to described file server, searches described second file to make described file server according to the file identification information of described second file.
In another embodiment, above-mentioned output unit 702, for display reminding information, the storage time information of described information in order to point out the user of described terminal to arrange described second file;
Above-mentioned input media 701, information storage time of described second file also arranged according to described information for the user receiving described terminal, described storage time, information comprised thresholding storage time;
Above-mentioned processor 703, also for from receiving described second file, when arriving described thresholding storage time, deletes described second file.
In another embodiment, above-mentioned processor 703, also for before sending file download request according to the residue memory capacity of described terminal to file server, determines that the residue memory capacity of described terminal is greater than or equal to the second predetermined threshold value.
In another embodiment, described first file comprises image file, video file, audio file or text;
Described the second file being less than described first file that takes up room comprises:
Image compression rate higher than the image file of described first file, video code rate lower than described first file video file or take up room and be less than the first file and the video different from the first file layout or audio file.
In specific implementation, the input media 701 described in the embodiment of the present invention, output unit 702 and processor 703 can perform the implementation in the inventive method embodiment one to four, do not repeat them here.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessing Unit, central processing unit), or realized by ASIC (Application Specific IntegratedCircuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a document down loading method, is characterized in that, described document down loading method comprises:
When receiving the file download instructions for the first file of user's input, the residue memory capacity of inquiry terminal;
Send file download request according to the residue memory capacity of described terminal to file server, search identical with the content of described first file according to described file download request to make described file server and take up room and be less than the second file of described first file;
Receive described file server and respond described second file that described file download request returns.
2. document down loading method as claimed in claim 1, is characterized in that, the described residue memory capacity according to described terminal sends file download request to file server and comprises:
Determine that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then send described file download request to described file server.
3. document down loading method as claimed in claim 2, is characterized in that, describedly determines that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then send described file download request to described file server and comprise:
Determine that the residue memory capacity of described terminal is lower than the first predetermined threshold value, then display reminding information on the screen of described terminal, described information is less than the file of described first file in order to point out the user of described terminal to download to take up room;
If the user of described terminal responds described information input validation information, then send described file download request to described file server.
4. document down loading method as claimed in claim 1, it is characterized in that, the described residue memory capacity according to described terminal sends file download request to file server, searches and take up room second file that be less than described first file identical with the content of described first file comprise to make described file server according to described file download request:
Determine residue memory capacity the taking up room lower than described first file of described terminal, then send described file download request to described file server, search the second file that is identical with the content of described first file and the residue memory capacity being less than described terminal that takes up room to make described file server according to described file download request.
5. document down loading method as claimed in claim 1, it is characterized in that, the described residue memory capacity according to described terminal sends file download request to file server, searches and take up room second file that be less than described first file identical with the content of described first file comprise to make described file server according to described file download request:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and determine that any one file at least one file described is described second file.
6. document down loading method as claimed in claim 1, it is characterized in that, the described residue memory capacity according to described terminal sends file download request to file server, searches and take up room second file that be less than described first file identical with the content of described first file comprise to make described file server according to described file download request:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and minimum file of determining to take up room at least one file described is described second file.
7. document down loading method as claimed in claim 1, it is characterized in that, the described residue memory capacity according to described terminal sends file download request to file server, searches and take up room second file that be less than described first file identical with the content of described first file comprise to make described file server according to described file download request:
Residue memory capacity according to described terminal sends file download request to described file server, to make described file server search identical with the content of described first file according to described file download request and take up room and be less than at least one file of described first file, and the residue memory capacity that is less than described terminal and the maximum file that takes up room is described second file of determining to take up room at least one file described.
8. document down loading method as claimed in claim 1, it is characterized in that, the described residue memory capacity according to described terminal sends file download request to file server, searches and take up room second file that be less than described first file identical with the content of described first file comprise to make described file server according to described file download request:
Residue memory capacity according to described terminal sends file download request to described file server, searches file identification information that is identical with the content of described first file and at least one file being less than described first file that takes up room to make described file server according to described file download request;
Receive the file identification information of at least one file described that described file server sends;
On the screen of described terminal, the file identification information of display at least one file described, determines described second file according to the file identification information of at least one file described to make the user of described terminal from least one file described;
The user receiving described terminal determines the file identification information of described second file that described second file returns;
Send the file identification information of described second file to described file server, search described second file to make described file server according to the file identification information of described second file.
9. the document down loading method as described in any one of claim 1 ~ 8, is characterized in that, described document down loading method also comprises:
Display reminding information on the screen of described terminal, the storage time information of described information in order to point out the user of described terminal to arrange described second file;
Information storage time of described second file that the user receiving described terminal is arranged according to described information, described storage time, information comprised thresholding storage time;
From receiving described second file, when arriving described thresholding storage time, delete described second file.
10. the document down loading method as described in any one of claim 1 ~ 8, is characterized in that, before the described residue memory capacity according to described terminal sends file download request to file server, described method also comprises:
Determine that the residue memory capacity of described terminal is greater than or equal to the second predetermined threshold value.
CN201410836724.XA 2014-12-26 2014-12-26 File downloading method Pending CN104536790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410836724.XA CN104536790A (en) 2014-12-26 2014-12-26 File downloading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410836724.XA CN104536790A (en) 2014-12-26 2014-12-26 File downloading method

Publications (1)

Publication Number Publication Date
CN104536790A true CN104536790A (en) 2015-04-22

Family

ID=52852322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410836724.XA Pending CN104536790A (en) 2014-12-26 2014-12-26 File downloading method

Country Status (1)

Country Link
CN (1) CN104536790A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006036285A2 (en) * 2004-09-20 2006-04-06 Comcast Cable Holdings, Llc Methods and system for creating and sending electronic mail having multi-media files
CN103384275A (en) * 2013-07-19 2013-11-06 贝壳网际(北京)安全技术有限公司 Cross-terminal downloading method, system cloud server and terminal
CN103516748A (en) * 2012-06-25 2014-01-15 北京智慧风云科技有限公司 Method and system for self-adaption file downloading processing of cloud server and cloud server
CN103902312A (en) * 2012-12-27 2014-07-02 腾讯科技(深圳)有限公司 Method and device for transmitting application programs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006036285A2 (en) * 2004-09-20 2006-04-06 Comcast Cable Holdings, Llc Methods and system for creating and sending electronic mail having multi-media files
CN103516748A (en) * 2012-06-25 2014-01-15 北京智慧风云科技有限公司 Method and system for self-adaption file downloading processing of cloud server and cloud server
CN103902312A (en) * 2012-12-27 2014-07-02 腾讯科技(深圳)有限公司 Method and device for transmitting application programs
CN103384275A (en) * 2013-07-19 2013-11-06 贝壳网际(北京)安全技术有限公司 Cross-terminal downloading method, system cloud server and terminal

Similar Documents

Publication Publication Date Title
US11337042B2 (en) Short message processing method and apparatus, and electronic device
US9888061B2 (en) Method for organizing home screen and electronic device implementing the same
CN104461504A (en) Managing method of terminal application program
CN105740425A (en) File storage method and apparatus
CN105630461A (en) Managing method of android application interface
CN104320161A (en) Method and system for rapid Bluetooth pairing
CN104601683A (en) File download management method, mobile terminal and communication system
US20160234340A1 (en) Systems and methods for adaptive cloning of mobile devices
CN103455330A (en) Application program management method, terminal, equipment and system
CN104991705A (en) Interface display method and terminal
CN104461505A (en) Terminal
CN105159548A (en) List interface operating method and electronic terminal
CN105512033A (en) Automated testing method and device of mobile terminal and mobile terminal
CN104219356A (en) Method and device for displaying and searching contact man information and mobile terminal
CN105187562A (en) System and method for operating remote file
US10042856B2 (en) Method and electronic device for processing data
CN103559091A (en) Data scheduling method and split type terminal system
CN106664637B (en) Routing information configuration method and device
US20150286392A1 (en) Electronic device and display method thereof
CN108874591A (en) Document handling method and Related product
CN104243693A (en) Terminal
CN105094881A (en) Terminal and terminal application management method
CN104536790A (en) File downloading method
CN104572909A (en) Terminal
KR102144587B1 (en) Apparatus and method for editing display information in an electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150422

WD01 Invention patent application deemed withdrawn after publication