CN103701852A - File transmission method and terminal - Google Patents

File transmission method and terminal Download PDF

Info

Publication number
CN103701852A
CN103701852A CN201310611437.4A CN201310611437A CN103701852A CN 103701852 A CN103701852 A CN 103701852A CN 201310611437 A CN201310611437 A CN 201310611437A CN 103701852 A CN103701852 A CN 103701852A
Authority
CN
China
Prior art keywords
file
attribute information
sent
compression
module
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
CN201310611437.4A
Other languages
Chinese (zh)
Other versions
CN103701852B (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201310611437.4A priority Critical patent/CN103701852B/en
Publication of CN103701852A publication Critical patent/CN103701852A/en
Application granted granted Critical
Publication of CN103701852B publication Critical patent/CN103701852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a file transmission method and a terminal. The method comprises the following steps: receiving an instruction of transmitting a file to a receiving party; receiving a request for the compression of the file to be transmitted from the receiving party; compressing the file to be transmitted according to the request; transmitting the compressed file. The terminal comprises a receiving module, a compression module and a transmission module, wherein the receiving module is used for receiving the instruction of transmitting the file to the receiving party, and receiving the request for the compression of the file to be transmitted from the receiving part; the compression module is used for compressing the file to be transmitted according to the request received by the receiving module; the transmission module is used for transmitting the compressed file. According to the method and the terminal, convenience in file transmission operation can be improved.

Description

The method of Transmit message and terminal
Technical field
The present invention relates to transmission control technology, particularly relate to a kind of method and terminal of Transmit message.
Background technology
Along with the development of internet, increasing people utilize internet to link up and exchange, and utilize internet to carry out the transmission of file, for example, use JICQ transfer files between user, to realize sharing of file.
But, people utilize internet to carry out in the process of file transfer, usually because file is restricted too greatly, recognizing that file is too large, caused transmitting the spent time when too much, the transmission of file will be interrupted, carry out the transmission of the file after extra manual compression is compressed afterwards again, very inconvenient in operation.
Summary of the invention
Based on this, be necessary the technical problem of the operational inconvenience that file too large for file and that cause sends, a kind of method that can improve the Transmit message of the convenience in file transmit operation is provided.
In addition, be also necessary to provide a kind of terminal that can improve the convenience in file transmit operation.
A method for Transmit message, is characterized in that, described method comprises:
Reception is to the instruction of recipient's Transmit message;
Reception is from the request of recipient's compression file to be sent;
According to described request, to sent file, compress processing;
Send the file of processing through described compression.
In an embodiment, described method also comprises step therein: whether the memory capacity that judges described file exceeds preset capacity threshold;
The described step of processing of compressing to sent file according to described request, is specially:
When being judged as YES, according to described request, to sent file, compress processing.
In an embodiment, described when being judged as YES therein, according to described request, to sent file, compress the step of processing, comprising:
When being judged as YES, obtain the attribute information of file to be sent;
According to the attribute information obtaining, determine the compression algorithm that has preset corresponding relation with described attribute information;
According to the compression algorithm that described request utilization is definite, to sent file, compress processing.
In an embodiment, described attribute information comprises the first attribute information or the second attribute information therein;
Described method also comprises step:
There is the first corresponding relation in preset the first attribute information and Lossy Compression Algorithm;
There is the second corresponding relation in preset the second attribute information and lossless compression algorithm;
The attribute information that described basis is obtained is determined the step that has the compression algorithm of preset corresponding relation with described attribute information, is specially:
When the attribute information obtaining is the first attribute information, according to described the first corresponding relation, determine Lossy Compression Algorithm;
Or
When the attribute information obtaining is the second attribute information, according to described the second corresponding relation, determine lossless compression algorithm.
In an embodiment, described when being judged as YES therein, according to described request, to sent file, compress the step of processing, comprising:
When being judged as YES, calculate file to be sent memory capacity after overcompression is processed;
Determine when result of calculation is more than or equal to capacity threshold, according to described request, to sent file, divide rolling compression to process.
The present invention also proposes a kind of terminal, and described terminal comprises:
Receiver module, for receiving to the instruction of recipient's Transmit message;
Described receiver module, also for receiving the request from recipient's compression file to be sent;
Compression module, compresses processing for the request receiving according to described receiver module to sent file;
Sending module, for sending the file of processing through described compression.
In an embodiment, it is characterized in that therein, described terminal also comprises judge module, for judging whether the memory capacity of described file exceeds preset capacity threshold;
Described compression module, specifically for when judgment result is that of described judge module is, the request receiving according to described receiver module is compressed processing to sent file.
In an embodiment, described compression module, comprising therein:
Attribute acquiring unit, for when judgment result is that of described judge module is, obtains the attribute information of file to be sent;
Algorithm determining unit, determines for the attribute information obtaining according to described attribute acquiring unit the compression algorithm that has preset corresponding relation with described attribute information;
Compression processing unit, utilizes the definite compression algorithm of described algorithm determining unit to compress processing to sent file for the request receiving according to described receiver module.
In an embodiment, it is characterized in that therein, described attribute information comprises the first attribute information or the second attribute information;
Described terminal also comprises preset module, for preset the first attribute information and Lossy Compression Algorithm, has the first corresponding relation; , also for preset the second attribute information and lossless compression algorithm, there is the second corresponding relation in described preset module;
Described algorithm determining unit, while being the first attribute information specifically for the attribute information obtaining when attribute acquiring unit, determines Lossy Compression Algorithm according to the first corresponding relation that described preset module is preset;
Or
When the attribute information obtaining when attribute acquiring unit is the second attribute information, according to the second corresponding relation that described preset module is preset, determine lossless compression algorithm.
In an embodiment, it is characterized in that therein, described compression module, comprising:
Calculation of capacity unit, for when judgment result is that of described judge module is, calculates file to be sent memory capacity after overcompression is processed;
Bundling compression unit, when determining that the result of calculation of described calculation of capacity unit is more than or equal to capacity threshold, the request receiving according to described receiver module divide rolling compression processing to sent file.
The method of above-mentioned Transmit message and terminal, by receiving the instruction to recipient's Transmit message, then receive the request from recipient's compression file to be sent, according to request, to sent file, compress processing, send the file of processing through described compression.Therefore, according to recipient's request, do not carry out extra operation and directly file compressed, having improved the operational convenience that file sends.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of method of Transmit message in embodiments of the invention;
Fig. 2 is the flow chart of the method for another kind of Transmit message in embodiments of the invention;
Fig. 3 is the structural representation of a kind of terminal in embodiments of the invention;
Fig. 4 is the structural representation of another kind of terminal in embodiments of the invention;
Fig. 5 is the structural representation of a kind of compression module in embodiments of the invention;
Fig. 6 is the structural representation of another kind of compression module in embodiments of the invention.
Embodiment
As shown in Figure 1, in one embodiment, the present invention proposes a kind of method of Transmit message, the method is carried out by terminal, specifically comprises following content:
110, receive the instruction to recipient's Transmit message.
User, by terminal Transmit message, distinguishes according to transmission direction, and terminal is as transmit leg, and the opposing party who receives file is the recipient who describes in step 110.User will can input instruction to recipient's Transmit message on the display interface of terminal, and terminal receives to the instruction of recipient's Transmit message.Wherein, display interface can be the interface of file management application in terminal, or the interface of transmission class application, or the interface of other application programs, at this, does not limit.
120, receive the request from recipient's compression file to be sent.
For guaranteeing the reliability of file transfer, recipient can ask to compress to sent file, and terminal can receive this request and process.File to be sent, the state of the file that will send that specifically finger is mentioned in step 110 before formal transmission.
130, according to request, to sent file, compress processing.
Terminal receives after the request from recipient, starts to compress processing to sent file.The detailed process that compression is processed can be to use to comprise that the various compression algorithms of Lossy Compression Algorithm and/or lossless compression algorithm compress to sent file, finally obtains the file of processing through overcompression.The memory capacity of file generally can significantly reduce after overcompression, and less being more conducive to of file to be sent memory capacity after overcompression sends.
140, send the file of processing through overcompression.
Terminal sends to recipient by the file of processing through overcompression, completes the process that file sends.
In sum, the present invention does not carry out extra operation according to recipient's request and directly file is compressed, and has improved the operational convenience that file sends.
As shown in Figure 2, proposed in one embodiment the method for another kind of Transmit message, the method is carried out by terminal, specifically comprises following content:
210, receive the instruction to recipient's Transmit message.
User, by terminal Transmit message, distinguishes according to transmission direction, and terminal is as transmit leg, and the opposing party who receives file is the recipient who describes in step 210.User will can input instruction to recipient's Transmit message on the display interface of terminal, and terminal receives to the instruction of recipient's Transmit message.Wherein, display interface can be the interface of file management application in terminal, or the interface of transmission class application, or the interface of other application programs, at this, does not limit.
220, receive the request from recipient's compression file to be sent.
For guaranteeing the reliability of file transfer, recipient can ask to compress to sent file, and terminal can receive this request and process.File to be sent, the state of the file that will send that specifically finger is mentioned in step 110 before formal transmission.
Whether the memory capacity that 230, judges file exceeds preset capacity threshold.
In theory to obtaining the memory capacity less than original document after compressing file, but in the practice of the method for Transmit message, no matter whether some file is through overcompression, for the convenient degree of transmission speed and transmission, do not improve too many.For example memory capacity is the small documents of tens k, before and after compression, memory capacity changes little, no matter this is directly to send this document according to the scheme of prior art if directly having caused, or after file being compressed to processing by recipient's request in the present embodiment, send again, all do not bring the improvement of transmission speed and the convenient degree of transmission.But for large file, memory capacity changes greatly before and after compression, after file being compressed to processing by recipient's request in the present embodiment, send and have better effect again.So, can be by setting in advance a capacity threshold, then whether the memory capacity by terminal judges file to be sent exceeds preset capacity threshold, then carries out the processing of follow-up correspondence.By the memory capacity to sent file, carry out intelligent decision, directly improve the efficiency that the present embodiment is processed.
240,, when being judged as YES, according to request, to sent file, compress processing.
When the memory capacity that judgment result is that file to be sent obtaining when step 230 has exceeded capacity threshold, assert that file to be sent is larger, terminal is compressed processing according to recipient's request to sent file.The detailed process that compression is processed can be to use to comprise that the various compression algorithms of Lossy Compression Algorithm and/or lossless compression algorithm compress to sent file, finally obtains the file of processing through overcompression.
250, send the file of processing through overcompression.
Terminal sends to recipient by the file of processing through overcompression, completes the process that file sends.
In an embodiment, step 240 specifically can realize by following steps 241 to 243 therein.Be that step 240 specifically comprises:
241,, when being judged as YES, obtain the attribute information of file to be sent.
When the memory capacity that judgment result is that file to be sent obtaining when step 230 has exceeded capacity threshold, terminal starts to obtain the attribute information of file to be sent.For example, in attribute information, can be the information of the type of supporting paper, by the type of file, can learn that this document is the file of audio file, video file, text, image file or other types.Attribute information can also be the information of other attributes of description document, at this, does not limit.
242, according to the attribute information obtaining, determine the compression algorithm that has preset corresponding relation with attribute information.
In file to be sent, can be the set of the file that attribute information is identical, can be also the set of the different file of attribute information.When the attribute information of file to be sent is different, by same compression algorithm, compress processing, can not obtain best effect.So can, by setting in advance the mode that has corresponding relation between the attribute information of file and compression algorithm, determine and use which kind of compression algorithm according to the attribute information of file to be sent.With file including video file A to be sent and text B, the attribute information of file is that the type of file is example, to A and B, use same compression algorithm can not obtain best compression effectiveness, thus can be different according to the type of A and B, determine and use different compression algorithms.
243, according to request, utilize definite compression algorithm to compress processing to sent file.
When step 242 has been determined after compression algorithm, terminal, according to recipient's request, utilizes definite compression algorithm to compress processing to sent file.
In an embodiment, the attribute information of mentioning in step 241 comprises the first attribute information or the second attribute information therein;
The present embodiment method also comprises step:
There is the first corresponding relation in preset the first attribute information and Lossy Compression Algorithm;
There is the second corresponding relation in preset the second attribute information and lossless compression algorithm.
Step 242 is specially:
When the attribute information obtaining is the first attribute information, according to the first corresponding relation, determine Lossy Compression Algorithm; Maybe, when the attribute information obtaining is the second attribute information, according to the second corresponding relation, determine lossless compression algorithm.
Still with file including video file A to be sent and text B, the type that the attribute information of file is file is example, and wherein, text type belongs to the first attribute information, and video type belongs to the second attribute information; Compression algorithm comprises Lossy Compression Algorithm C1 and lossless compression algorithm C2.In terminal, set in advance video type and Lossy Compression Algorithm and had the first corresponding relation; There is the second corresponding relation in text type and lossless compression algorithm.Particularly, when getting file A to be sent and be video type, according to the first corresponding relation, determine Lossy Compression Algorithm C1, correspondingly, the follow-up Lossy Compression Algorithm C1 that utilizes compresses processing to file A; Maybe, when obtaining file B to be sent and be text type, according to the second corresponding relation, determine lossless compression algorithm C2, correspondingly, the follow-up Lossy Compression Algorithm C2 that utilizes compresses processing to file B.By distinguishing the different attribute information of file to be sent, use corresponding compression algorithm to compress processing to each file, can obtain good compression effectiveness.
When receiving file, recipient there are some restrictions, for example only can receive the file of particular memory capacity at every turn, even if still may occur that the memory capacity of the file after overcompression is processed is greater than recipient's restriction in this case after file compresses processing, make the process of Transmit message become difficult.So in an embodiment, step 240 specifically can realize by following steps 244 to 245 therein.Be that step 240 specifically comprises:
244,, when being judged as YES, calculate file to be sent memory capacity after overcompression is processed.
When the memory capacity that judgment result is that file to be sent obtaining when step 230 has exceeded capacity threshold, start to calculate file to be sent memory capacity after overcompression is processed.Now do not compress, by calculating the mode of memory capacity, estimate file to be sent situation after overcompression is processed.
245, determine when result of calculation is more than or equal to capacity threshold, according to request, to sent file, divide rolling compression to process.
According to the result of calculation obtaining in step 244, to determine when file to be sent memory capacity after overcompression is processed is more than or equal to capacity threshold, terminal divides rolling compression to process according to recipient's request to sent file.
Capacity threshold can be adjusted into and be less than or equal to the numerical value that recipient receives file restriction, then by the mode of estimating, calculate, according to result of calculation, determine that file to be sent memory capacity after overcompression is processed is more than or equal to capacity threshold, according to a minute method for rolling compression processing, compressing file to be sent is become to several small documents, the memory capacity of each small documents meets recipient's restriction requirement.
As shown in Figure 3, the present invention also proposes a kind of terminal, and terminal comprises:
Receiver module 310, for receiving to the instruction of recipient's Transmit message;
Receiver module 310, also for receiving the request from recipient's compression file to be sent;
Compression module 320, compresses processing for the request receiving according to receiver module 310 to sent file;
Sending module 330, for sending the file that 320 compressions are processed through compression module.
The instruction that receiver module 310 receives to recipient's Transmit message; The request that receiver module 310 receives from recipient's compression file to be sent; The request that compression module 320 receives according to receiver module 310 is compressed processing to sent file; Sending module 330 sends the file that 320 compressions are processed through compression module.
User, by terminal Transmit message, distinguishes according to transmission direction, and terminal is as transmit leg, and the opposing party who receives file is recipient.User will can input instruction to recipient's Transmit message on the display interface of terminal, and 310 receptions of receiver module are to the instruction of recipient's Transmit message.Wherein, display interface can be the interface of file management application in terminal, or the interface of transmission class application, or the interface of other application programs, at this, does not limit.
For guaranteeing the reliability of file transfer, recipient can ask to compress to sent file, and receiver module 310 can receive this request and process.File to be sent, the state of the file that specifically finger will send before informal transmission.
The request that compression module 320 receives according to receiver module 310 is compressed processing to sent file, the detailed process that wherein compression is processed can be to use to comprise that the various compression algorithms of Lossy Compression Algorithm and/or lossless compression algorithm compress to sent file, finally obtains the file of processing through overcompression.The memory capacity of file generally can significantly reduce after overcompression, and less being more conducive to of file to be sent memory capacity after overcompression sends.Then by sending module 330, the file that 320 compressions are processed through compression module is sent.
Therefrom can find out, the present invention does not carry out extra operation according to recipient's request and directly file is compressed, and has improved the operational convenience that file sends.
As shown in Figure 4, proposed in one embodiment another kind of terminal, this terminal comprises:
Receiver module 410, for receiving to the instruction of recipient's Transmit message;
Receiver module 410, also for receiving the request from recipient's compression file to be sent;
Judge module 420, judges for the request receiving according to receiver module 410 whether the memory capacity of file exceeds preset capacity threshold;
Compression module 430, for when judgment result is that of judge module 340 is, the request receiving according to receiver module 410 is compressed processing to sent file;
Sending module 440, for sending the file that 430 compressions are processed through compression module.
The instruction that receiver module 410 receives to recipient's Transmit message; Receiver module 410 also receives the request from recipient's compression file to be sent; The request that judge module 420 receives according to receiver module 410 judges whether the memory capacity of file to be sent exceeds preset capacity threshold; Compression module 430 is when judgment result is that of judge module 340 is, the request receiving according to receiver module 410 is compressed processing to sent file; Sending module 440 sends the file that 430 compressions are processed through compression module.
In theory to obtaining the memory capacity less than original document after compressing file, but in practice, no matter whether some file is through overcompression, for the convenient degree of transmission speed and transmission, do not improve too many.For example memory capacity is the small documents of tens k, before and after compression, memory capacity changes little, no matter this is directly to send this document according to the scheme of prior art if directly having caused, or after file being compressed to processing by recipient's request, send again, all do not bring the improvement of transmission speed and the convenient degree of transmission.But for large file, before and after compression, memory capacity changes greatly, compression module 430 sends and has better effect again after file being compressed to processing by recipient's request.So, can be by setting in advance a capacity threshold, the request then being received according to receiver module 410 by judge module 420 judges whether the memory capacity of file to be sent exceeds preset capacity threshold, then carries out the processing of follow-up correspondence.By the memory capacity to sent file, carry out intelligent decision, directly improve the efficiency that the present embodiment is processed.
When the memory capacity that judgment result is that file to be sent obtaining when judge module 420 has exceeded capacity threshold, assert that file to be sent is larger, compression module 430 compresses processing to sent file again.The detailed process that compression is processed can be to use to comprise that the various compression algorithms of Lossy Compression Algorithm and/or lossless compression algorithm compress to sent file, finally obtains the file of processing through overcompression.
As shown in Figure 5, in an embodiment, compression module 430 comprises attribute acquiring unit 510, algorithm determining unit 520 and compression processing unit 530 therein.
Attribute acquiring unit 510, for when judgment result is that of judge module 420 is, obtains the attribute information of file to be sent; For example, in attribute information, can be the information of the type of supporting paper, by the type of file, can learn that this document is the file of audio file, video file, text, image file or other types.Attribute information can also be other attribute information of description document, at this, does not limit.
Algorithm determining unit 520, determines for the attribute information obtaining according to attribute acquiring unit 510 compression algorithm that has preset corresponding relation with attribute information.In file to be sent, can be the set of the file that attribute information is identical, can be also the set of the different file of attribute information.When the attribute information of file to be sent is different, by same compression algorithm, compress processing, can not obtain best effect.So can, by setting in advance the mode that has corresponding relation between the attribute information of file and compression algorithm, determine and use which kind of compression algorithm according to the attribute information of file to be sent.With file including video file A to be sent and text B, the attribute information of file is that the type of file is example, to A and B, use same compression algorithm can not obtain best compression effectiveness, thus can be different according to the type of A and B, determine and use different compression algorithms.
Compression processing unit 530, utilizes the definite compression algorithm of algorithm determining unit 520 to compress processing to sent file for the request receiving according to receiver module 410.When algorithm determining unit 520 has been determined after compression algorithm, terminal, according to recipient's request, utilizes definite compression algorithm to compress processing to sent file.
In an embodiment, the attribute information that attribute acquiring unit 510 will obtain comprises the first attribute information or the second attribute information therein.Terminal also comprises preset module, for preset the first attribute information and Lossy Compression Algorithm, has the first corresponding relation; , also for preset the second attribute information and lossless compression algorithm, there is the second corresponding relation in preset module.Algorithm determining unit 520, while being the first attribute information specifically for the attribute information obtaining when attribute acquiring unit 510, determines Lossy Compression Algorithm according to the first corresponding relation that preset module is preset; Or the attribute information obtaining when attribute acquiring unit 510 is while being the second attribute information, according to the second corresponding relation that preset module is preset, determines lossless compression algorithm.
Still with file including video file A to be sent and text B, the type that the attribute information of file is file is example, and wherein, text type belongs to the first attribute information, and video type belongs to the second attribute information; Compression algorithm comprises Lossy Compression Algorithm C1 and lossless compression algorithm C2.Preset module has set in advance video type and Lossy Compression Algorithm exists the first corresponding relation; There is the second corresponding relation in text type and lossless compression algorithm.Particularly, when attribute acquiring unit 510 gets file A to be sent and is video type, algorithm determining unit 520 is determined Lossy Compression Algorithm C1 according to the first corresponding relation, and correspondingly, 530 of subsequent compression processing units utilize Lossy Compression Algorithm C1 to compress processing to file A; Or when attribute acquiring unit 510 obtains file B to be sent and is text type, algorithm determining unit 520 is determined lossless compression algorithm C2 according to the second corresponding relation, correspondingly, 530 of subsequent compression processing units utilize Lossy Compression Algorithm C2 to compress processing to file B.By distinguishing the different attribute information of file to be sent, use corresponding compression algorithm to compress processing to each file, can obtain good compression effectiveness.
When receiving file, recipient there are some restrictions, for example only can receive the file of particular memory capacity at every turn, even if still may occur that the memory capacity of the file after overcompression is processed is greater than recipient's restriction in this case after file compresses processing, make the process of Transmit message become difficult.So as shown in Figure 6, in an embodiment, compression module 430 comprises calculation of capacity unit 610 and bundling compression unit 620 therein.
Calculation of capacity unit 610, for when judgment result is that of judge module 420 is, calculates file to be sent memory capacity after overcompression is processed; When the memory capacity that judgment result is that file to be sent obtaining when judge module 420 has exceeded capacity threshold, start to calculate file to be sent memory capacity after overcompression is processed.Now do not compress, by calculation of capacity unit 610, calculate and estimate file to be sent memory capacity after overcompression is processed.
Bundling compression unit 620, when determining that the result of calculation of calculation of capacity unit 610 is more than or equal to capacity threshold, the request receiving according to receiver module 410 divide rolling compression processing to sent file.The result of calculation obtaining according to calculation of capacity unit 610, determine when file to be sent memory capacity after overcompression is processed is more than or equal to capacity threshold, bundling compression unit 620 divides rolling compression to process according to recipient's request to sent file.Particularly, capacity threshold can be adjusted into and be less than or equal to the numerical value that recipient receives file restriction, then calculation of capacity unit 610 calculates and estimates; Bundling compression unit 620 determines that according to result of calculation file to be sent memory capacity after overcompression is processed is more than or equal to capacity threshold, according to a minute method for rolling compression processing, compressing file to be sent is become to several small documents, the memory capacity of each small documents meets recipient's restriction requirement.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of 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.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a method for Transmit message, is characterized in that, described method comprises:
Reception is to the instruction of recipient's Transmit message;
Reception is from the request of recipient's compression file to be sent;
According to described request, to sent file, compress processing;
Send the file of processing through described compression.
2. method according to claim 1, is characterized in that, described method also comprises step: whether the memory capacity that judges described file exceeds preset capacity threshold;
The described step of processing of compressing to sent file according to described request, is specially:
When being judged as YES, according to described request, to sent file, compress processing.
3. method according to claim 2, is characterized in that, described when being judged as YES, and compresses the step of processing according to described request to sent file, comprising:
When being judged as YES, obtain the attribute information of file to be sent;
According to the attribute information obtaining, determine the compression algorithm that has preset corresponding relation with described attribute information;
According to the compression algorithm that described request utilization is definite, to sent file, compress processing.
4. method according to claim 3, is characterized in that, described attribute information comprises the first attribute information or the second attribute information;
Described method also comprises step:
There is the first corresponding relation in preset the first attribute information and Lossy Compression Algorithm;
There is the second corresponding relation in preset the second attribute information and lossless compression algorithm;
The attribute information that described basis is obtained is determined the step that has the compression algorithm of preset corresponding relation with described attribute information, is specially:
When the attribute information obtaining is the first attribute information, according to described the first corresponding relation, determine Lossy Compression Algorithm;
Or
When the attribute information obtaining is the second attribute information, according to described the second corresponding relation, determine lossless compression algorithm.
5. method according to claim 2, is characterized in that, described when being judged as YES, and compresses the step of processing according to described request to sent file, comprising:
When being judged as YES, calculate file to be sent memory capacity after overcompression is processed;
Determine when result of calculation is more than or equal to capacity threshold, according to described request, to sent file, divide rolling compression to process.
6. a terminal, is characterized in that, described terminal comprises:
Receiver module, for receiving to the instruction of recipient's Transmit message;
Described receiver module, also for receiving the request from recipient's compression file to be sent;
Compression module, compresses processing for the request receiving according to described receiver module to sent file;
Sending module, for sending the file of processing through described compression.
7. terminal according to claim 6, is characterized in that, described terminal also comprises judge module, for judging whether the memory capacity of described file exceeds preset capacity threshold;
Described compression module, specifically for when judgment result is that of described judge module is, the request receiving according to described receiver module is compressed processing to sent file.
8. terminal according to claim 7, is characterized in that, described compression module, comprising:
Attribute acquiring unit, for when judgment result is that of described judge module is, obtains the attribute information of file to be sent;
Algorithm determining unit, determines for the attribute information obtaining according to described attribute acquiring unit the compression algorithm that has preset corresponding relation with described attribute information;
Compression processing unit, utilizes the definite compression algorithm of described algorithm determining unit to compress processing to sent file for the request receiving according to described receiver module.
9. terminal according to claim 8, is characterized in that, described attribute information comprises the first attribute information or the second attribute information;
Described terminal also comprises preset module, for preset the first attribute information and Lossy Compression Algorithm, has the first corresponding relation; , also for preset the second attribute information and lossless compression algorithm, there is the second corresponding relation in described preset module;
Described algorithm determining unit, while being the first attribute information specifically for the attribute information obtaining when attribute acquiring unit, determines Lossy Compression Algorithm according to the first corresponding relation that described preset module is preset;
Or
When the attribute information obtaining when attribute acquiring unit is the second attribute information, according to the second corresponding relation that described preset module is preset, determine lossless compression algorithm.
10. terminal according to claim 7, is characterized in that, described compression module, comprising:
Calculation of capacity unit, for when judgment result is that of described judge module is, calculates file to be sent memory capacity after overcompression is processed;
Bundling compression unit, when determining that the result of calculation of described calculation of capacity unit is more than or equal to capacity threshold, the request receiving according to described receiver module divide rolling compression processing to sent file.
CN201310611437.4A 2013-11-11 2013-11-26 Send the method and terminal of file Active CN103701852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310611437.4A CN103701852B (en) 2013-11-11 2013-11-26 Send the method and terminal of file

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201310557755.7 2013-11-11
CN201310557755 2013-11-11
CN2013105577557 2013-11-11
CN201310611437.4A CN103701852B (en) 2013-11-11 2013-11-26 Send the method and terminal of file

Publications (2)

Publication Number Publication Date
CN103701852A true CN103701852A (en) 2014-04-02
CN103701852B CN103701852B (en) 2017-12-12

Family

ID=50363248

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201310611912.8A Pending CN103701853A (en) 2013-11-11 2013-11-26 File sending method and terminal
CN201310611437.4A Active CN103701852B (en) 2013-11-11 2013-11-26 Send the method and terminal of file

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201310611912.8A Pending CN103701853A (en) 2013-11-11 2013-11-26 File sending method and terminal

Country Status (1)

Country Link
CN (2) CN103701853A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866350A (en) * 2015-05-27 2015-08-26 小米科技有限责任公司 Terminal partition space optimizing method, device and terminal
CN107454282A (en) * 2017-08-23 2017-12-08 惠州Tcl移动通信有限公司 Photo be shared processing method and storage medium between mobile terminal and mobile terminal

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951710A (en) * 2015-06-23 2015-09-30 小米科技有限责任公司 Rapid access method and device
CN105427403A (en) * 2015-11-03 2016-03-23 深圳市凯立德科技股份有限公司 Automobile traveling record data storage method and automobile traveling data recorder
WO2020222727A1 (en) * 2019-04-29 2020-11-05 Hitachi Vantara Llc Optimizing storage and retrieval of compressed data
CN112749129B (en) * 2019-10-30 2024-03-19 大唐移动通信设备有限公司 File processing method, file processing server, file aggregation server and device
CN111935261B (en) * 2020-07-30 2023-08-08 北京达佳互联信息技术有限公司 Response message processing method, device, electronic equipment and storage medium
CN112600941B (en) * 2021-01-20 2023-04-18 广东金赋科技股份有限公司 Method, device and storage medium for automatically updating transmission data size optimization
CN113590027B (en) * 2021-06-30 2022-10-11 展讯半导体(南京)有限公司 Data storage method, data acquisition method, system, device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427599A (en) * 2001-12-21 2003-07-02 西门子公司 Method for transmitting compressible data
US20050044158A1 (en) * 2000-05-04 2005-02-24 Bellsouth Intellectual Property Corporation Data compression in electronic communications
US20060143180A1 (en) * 2000-03-09 2006-06-29 Pkware, Inc. System and method for manipulating and managing computer archive files
CN101079879A (en) * 2006-12-19 2007-11-28 腾讯科技(深圳)有限公司 An Email transport system and method
CN101409686A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 System and method for checking e-mail accessory content
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device
CN103401933A (en) * 2013-08-05 2013-11-20 天闻数媒科技(湖南)有限公司 Method and system for batch uploading resource information and corresponding resource file

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7600031B2 (en) * 2006-04-27 2009-10-06 Microsoft Corporation Sharing digital content via a packet-switched network
JP2007336263A (en) * 2006-06-15 2007-12-27 Fujifilm Corp Image processing method, apparatus, and program
CN102802197A (en) * 2011-05-23 2012-11-28 中兴通讯股份有限公司 Method and device for transmitting application data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060143180A1 (en) * 2000-03-09 2006-06-29 Pkware, Inc. System and method for manipulating and managing computer archive files
US20050044158A1 (en) * 2000-05-04 2005-02-24 Bellsouth Intellectual Property Corporation Data compression in electronic communications
CN1427599A (en) * 2001-12-21 2003-07-02 西门子公司 Method for transmitting compressible data
CN101079879A (en) * 2006-12-19 2007-11-28 腾讯科技(深圳)有限公司 An Email transport system and method
CN101409686A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 System and method for checking e-mail accessory content
CN102638580A (en) * 2012-03-30 2012-08-15 奇智软件(北京)有限公司 Webpage information processing method and webpage information processing device
CN103401933A (en) * 2013-08-05 2013-11-20 天闻数媒科技(湖南)有限公司 Method and system for batch uploading resource information and corresponding resource file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866350A (en) * 2015-05-27 2015-08-26 小米科技有限责任公司 Terminal partition space optimizing method, device and terminal
CN104866350B (en) * 2015-05-27 2018-03-27 小米科技有限责任公司 Optimization method, device and the terminal in terminal partitions space
CN107454282A (en) * 2017-08-23 2017-12-08 惠州Tcl移动通信有限公司 Photo be shared processing method and storage medium between mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN103701852B (en) 2017-12-12
CN103701853A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103701852A (en) File transmission method and terminal
WO2021217964A1 (en) Screen projection method and apparatus, electronic device, and storage medium
CN108494788B (en) Data transmission method, data transmission device and computer readable storage medium
US11315365B2 (en) Method for registering fingerprint, terminal and computer-readable storage medium
CN102724122B (en) Reliable serial port transmission method and device based on hardware system
CN108536753B (en) Method for determining repeated information and related device
CN103023796A (en) Network data compression method and network data compression system
CN105635133A (en) Multimedia content transmission method and terminal
CN110601872A (en) Transmission method and device and storage medium
CN102917127A (en) Audio transmission method and system
CN105306773A (en) Picture transmission method and device
CN111917813A (en) Communication method, device, equipment, system and storage medium
CN112291341A (en) File transmission method, device and equipment
WO2020258942A1 (en) Data compression method and device
US9437205B2 (en) Method, application, and device for audio signal transmission
CN111031007A (en) Communication control method and device between electronic whiteboards and server
CN107318129B (en) Data processing method and device and terminal
CN114302140B (en) Pre-frame-loss method, system, equipment and computer readable storage medium
CN106063192A (en) Transmission method for wireless ethernet interface hard disk, related device, and system
CN112512031B (en) Data acquisition method applied to 5G network and 5G network
CN114979717A (en) Differential video encryption method based on equipment decoding capability and security chip device
CN110266814B (en) Transmission method and transmission device
CN113220106A (en) Power saving control method and power saving control device
CN105407142A (en) Real-time picture sharing method under natural disaster environment and system
CN107333159A (en) Television key information processing method and TV

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 519000 Zhuhai science and Technology Innovation Coast Meizu technology building, Guangdong

Applicant after: Meizu Technology (China) Co., Ltd.

Address before: 519000 Zhuhai hi tech Zone, science and Technology Innovation Coast Meizu Technology Building

Applicant before: Zhuhai Meizu Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: ZHUHAI MEIZU TECHNOLOGY CO., LTD. TO: MEIZU TECHNOLOGY (CHINA) CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 519000 technology innovation coastal Meizu science and technology building, Zhuhai, Guangdong

Patentee after: Zhuhai Meizu Technology Co., Ltd.

Address before: 519000 technology innovation coastal Meizu science and technology building, Zhuhai, Guangdong

Patentee before: Meizu Technology (China) Co., Ltd.