CN101552653A - Document sending method and apparatus based on IM - Google Patents
Document sending method and apparatus based on IM Download PDFInfo
- Publication number
- CN101552653A CN101552653A CNA200910085001XA CN200910085001A CN101552653A CN 101552653 A CN101552653 A CN 101552653A CN A200910085001X A CNA200910085001X A CN A200910085001XA CN 200910085001 A CN200910085001 A CN 200910085001A CN 101552653 A CN101552653 A CN 101552653A
- Authority
- CN
- China
- Prior art keywords
- file
- slicing files
- transmission
- waiting
- compressed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The implementation method of the invention provides a document sending method and apparatus based on IM, the method and apparatus belongs to network communication field, the method includes: when a plurality of documents are determined to be transmitted, then compressing the documents and transmitting the compressed documents by IM software. The specific implementation method of the invention also provides a document transmission device based on IM, the method and apparatus have advantages of simple operation, avoid of document un-transmission.
Description
Technical field
The present invention relates to network communication field, relate in particular to a kind of document sending method and device based on IM.
Background technology
Along with Internet development, in the Internet, adopt instant messaging (Instant message, IM) become a kind of contact method commonly used, in order to allow user's Data transmission on the internet, prior art provides a kind of data transmission method based on IM, its concrete grammar is, data waiting for transmission are dragged to IM software, transmit by IM software then, when being a plurality of file as data waiting for transmission, then need to pull one of them file to IM software, transmit by IM software then; After a file transfer is finished, pull next file, transmit by IM software then, repeat said process, until the equal end of transmission of All Files to IM software.
In realizing process of the present invention, there are the following problems for the technical scheme that prior art provided:
When the data of transmitting in the prior art were a plurality of file, the method for transmission can only be that the user is transmitted one by one to a plurality of files usually, transmission complex operation, and the phenomenon that transmitting file takes place to leak easily.
Summary of the invention
Embodiment of the present invention provides a kind of document sending method and device based on IM, and this method and device have simple to operate, avoids the leak advantage of transmitting file.
The specific embodiment of the present invention provides a kind of document sending method based on IM, and this method comprises:
When being a plurality of, with described File Compress waiting for transmission, and the file after will compressing transmits by IM software at definite file waiting for transmission.
This method specifically comprises:
A, when judging disk and not having file after described compression is stored in enough spaces, described file waiting for transmission is divided into a plurality of slicing files, the size of arbitrary slicing files is all less than the remaining space of described disk;
B, arbitrary slicing files in described a plurality of slicing files compressed handle the back and send;
C, when the compressed file of described arbitrary slicing files send finish after, deletion has sent the compressed file of the slicing files that finishes, and one in the residue slicing files in described a plurality of slicing files is compressed handle the back and send;
D, repeating step C send until all slicing files and finish.
This method also comprises:
The transmission percentage of the described file to be transmitted of recorded and stored.
File Compress waiting for transmission in the said method specifically comprises:
By Winzip software or 7zip software described file waiting for transmission is compressed processing.
The specific embodiment of the invention provides a kind of file dispensing device based on IM, and this device comprises:
Confirmation unit is used for determining the number of file waiting for transmission,
The compression transmitting element is used in the number of determining file waiting for transmission when being a plurality of, and with described File Compress waiting for transmission, and the file after will compressing transmits by IM software.
Described compression transmitting element specifically comprises:
The burst module is used for described file waiting for transmission being divided into a plurality of slicing files, the remaining space less than described disk of described slicing files when judging disk and do not have file after described compression is stored in enough spaces;
Compression module is used for that the arbitrary slicing files of described a plurality of slicing files is compressed the processing back and sends;
Sending module is used for deleting the compressed file of described arbitrary slicing files after the compressed file transmission of described arbitrary slicing files finishes, and compresses the transmission of processing back to one in the residue slicing files in described a plurality of slicing files;
Replicated blocks are used to trigger described sending module repetitive operation and finish until all slicing files transmissions.
This device also comprises:
Record cell is used to write down and preserve the transmission percentage of described file to be transmitted.
By the above-mentioned technical scheme that provides as can be seen, when the technical scheme of the embodiment of the invention surpasses two when the file that transmits, to transmit by IM after the File Compress, thereby do not need the user to the transmission one by one of a plurality of files, so it is simple to operate, and this method does not pass phenomenon because All Files is compressed as a whole the transmission so it leakage can not occur; And this technical scheme is occurring under the situation of Insufficient disk space, the file that transmits is divided into a plurality of slicing files, then each slicing files is transmitted one by one, thereby reached under the situation of Insufficient disk space, also the purpose that file waiting for transmission can be sent; This method is also recently supported breakpoint transmission by the transmission percentage that writes down and preserve described file to be transmitted.
Description of drawings
The flow chart of a kind of document sending method based on IM that Fig. 1 provides for one embodiment of the invention;
Fig. 2 is the structure chart of a kind of file dispensing device based on IM provided by the invention.
Embodiment
Embodiment of the present invention provides an embodiment, and present embodiment provides a kind of document sending method based on IM, and this method comprises the steps: as shown in Figure 1
Step 11, during more than or equal to 2 (promptly a plurality of), carry out step 12 in the number of determining file waiting for transmission;
Optionally, compress in this step 11 processing method can for, adopt Winzip software or adopt 7zip software to compress; Certainly in actual conditions, also can adopt other software to compress, the present invention does not limit to the concrete form of compression.
Step 12, the file that this is to be transmitted compress processing, and the file after compression is handled sends by IM software.
Optionally, the method that above-mentioned steps 12 realizes is specifically as follows,
Step 121, relatively whether disk has the file after enough space store compressed, as not, carries out following step, directly compresses processing in this way, and will compress file after handling by the transmission of IM software;
Step 122, file waiting for transmission is divided into a plurality of slicing files, the size of arbitrary slicing files is all less than the remaining space of this disk in wherein a plurality of slicing files;
Step 123, arbitrary slicing files in a plurality of slicing files compressed handle the back and send;
Step 124, after transmission finishes, deletion has sent the compressed file of the slicing files that finishes, and one in the residue slicing files in a plurality of slicing files is compressed handle the back and send;
Step 125, repeating step 124 all send until a plurality of slicing files and finish.
Optionally, said method can also comprise: write down the percentage of transfer files.Behind the percentage that writes down transfer files, when file needs breakpoint transmission, the file that does not transmit can be sent and get final product.
The method that present embodiment provides, when the file that transmits surpasses 2, to transmit by IM after the File Compress, thereby do not need the user to the transmission one by one of a plurality of files, so it is simple to operate, and this method does not pass phenomenon because All Files is compressed as a whole the transmission so it leakage can not occur.And this method is occurring under the situation of Insufficient disk space, and the file that transmits is divided into a plurality of slicing files, then each slicing files is transmitted one by one, thereby has reached under the situation of Insufficient disk space, also the purpose that file waiting for transmission can be sent.
The specific embodiment of the invention also provides a kind of file dispensing device based on IM, this device as shown in Figure 2, comprise: confirmation unit 21, be used for determining the number of task file waiting for transmission, compression transmitting element 22, be used for when confirmation unit 21 determines that the number of files waiting for transmission is a plurality of, should File Compress waiting for transmission, and the file after will compressing transmits by IM software.
Optionally, above-mentioned compression transmitting element 22 specifically can comprise:
Burst module 221 is used for should being divided into a plurality of slicing files by file waiting for transmission, the remaining space less than this disk of this slicing files when judging disk and do not have file after this compression is stored in enough spaces;
Compression module 222 is used for that the arbitrary slicing files of these a plurality of slicing files is compressed the processing back and sends;
Sending module 223 is used for deleting the compressed file of this arbitrary slicing files after the compressed file transmission of this arbitrary slicing files finishes, and compresses the transmission of processing back to one in the residue slicing files in these a plurality of slicing files;
Replicated blocks 224 are used to trigger sending module 223 repetitive operations and finish until all slicing files transmissions.
Optionally, said apparatus can also comprise:
Record cell 23 is used to write down the transmission percentage of described file to be transmitted.
When the device that the specific embodiment of the invention provides determines that at confirmation unit 21 file that transmits surpasses 2, to transmit by IM after the File Compress by compression transmitting element 22, thereby do not need the user to the transmission one by one of a plurality of files, simple to operate, and this device compresses as a whole the transmission with All Files, so it the biography phenomenon can not occur leaking.And this device is occurring under the situation of Insufficient disk space, and the file that transmits is divided into a plurality of slicing files, then each slicing files is transmitted one by one, thereby has reached under the situation of Insufficient disk space, also the purpose that file waiting for transmission can be sent.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise the said method step, described storage medium comprises: ROM/RAM, disk, CD etc.
In sum, the technical scheme that the specific embodiment of the invention provides has simple to operately, avoids the leak advantage of transmitting file.
The above; only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (7)
1, a kind of document sending method based on IM is characterized in that, described method comprises:
When definite task waiting for transmission was a plurality of file, with described File Compress waiting for transmission, and the file after will compressing transmitted by IM software.
2, method according to claim 1 is characterized in that, and is described with described File Compress waiting for transmission, and the file after will compressing transmits specifically by IM software and comprises:
A, when judging disk and not having file after described compression is stored in enough spaces, described file waiting for transmission is divided into a plurality of slicing files, the size of arbitrary slicing files is all less than the remaining space of described disk;
B, arbitrary slicing files in described a plurality of slicing files compressed handle the back and send;
C, when the compressed file of described arbitrary slicing files send finish after, deletion has sent the compressed file of the slicing files that finishes, and one in the residue slicing files in described a plurality of slicing files is compressed handle the back and send;
D, repeating step C send until all slicing files and finish.
3, method according to claim 1 is characterized in that, when the file of described method after will compressing transmits by IM software, also comprises the transmission percentage of the described file to be transmitted of recorded and stored.
4, method according to claim 1 is characterized in that, described File Compress waiting for transmission is specifically comprised:
By Winzip software or 7zip software described file waiting for transmission is compressed processing.
5, a kind of file dispensing device based on IM is characterized in that described device comprises:
Confirmation unit is used for determining the number of the file of task to be transmitted,
The compression transmitting element is used in the number of determining file waiting for transmission when being a plurality of, and with described File Compress waiting for transmission, and the file after will compressing transmits by IM software.
6, device according to claim 5 is characterized in that, described compression transmitting element specifically comprises:
The burst module is used for described file waiting for transmission being divided into a plurality of slicing files, the remaining space less than described disk of described slicing files when judging disk and do not have file after described compression is stored in enough spaces;
Compression module is used for that the arbitrary slicing files of described a plurality of slicing files is compressed the processing back and sends;
Sending module is used for deleting the compressed file of described arbitrary slicing files after the compressed file transmission of described arbitrary slicing files finishes, and compresses the transmission of processing back to one in the residue slicing files in described a plurality of slicing files;
Replicated blocks are used to trigger described sending module repetitive operation and finish until all slicing files transmissions.
7, device according to claim 5 is characterized in that, described device also comprises:
Record cell is used for the transmission percentage of the described file to be transmitted of recorded and stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200910085001XA CN101552653A (en) | 2009-05-20 | 2009-05-20 | Document sending method and apparatus based on IM |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200910085001XA CN101552653A (en) | 2009-05-20 | 2009-05-20 | Document sending method and apparatus based on IM |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101552653A true CN101552653A (en) | 2009-10-07 |
Family
ID=41156666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200910085001XA Pending CN101552653A (en) | 2009-05-20 | 2009-05-20 | Document sending method and apparatus based on IM |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101552653A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092666A (en) * | 2014-06-20 | 2014-10-08 | 裴兆欣 | File transmission method and device |
US20140324990A1 (en) * | 2013-04-27 | 2014-10-30 | Xiao Long Zhang | Method and device for transmitting and receiving multiple files |
CN106230924A (en) * | 2016-07-28 | 2016-12-14 | 杭州迪普科技有限公司 | The compression method of message and device |
CN106557518A (en) * | 2015-09-29 | 2017-04-05 | 北大方正集团有限公司 | A kind of method for transmitting file, device and terminal |
CN114661322A (en) * | 2022-03-11 | 2022-06-24 | 荣耀终端有限公司 | Upgrading method of operating system, electronic equipment and storage medium |
-
2009
- 2009-05-20 CN CNA200910085001XA patent/CN101552653A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140324990A1 (en) * | 2013-04-27 | 2014-10-30 | Xiao Long Zhang | Method and device for transmitting and receiving multiple files |
CN104092666A (en) * | 2014-06-20 | 2014-10-08 | 裴兆欣 | File transmission method and device |
CN106557518A (en) * | 2015-09-29 | 2017-04-05 | 北大方正集团有限公司 | A kind of method for transmitting file, device and terminal |
CN106230924A (en) * | 2016-07-28 | 2016-12-14 | 杭州迪普科技有限公司 | The compression method of message and device |
CN114661322A (en) * | 2022-03-11 | 2022-06-24 | 荣耀终端有限公司 | Upgrading method of operating system, electronic equipment and storage medium |
CN114661322B (en) * | 2022-03-11 | 2023-05-23 | 荣耀终端有限公司 | Upgrade method of operating system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101552653A (en) | Document sending method and apparatus based on IM | |
CN101877604B (en) | Method and system for transmitting files | |
CN102164043A (en) | Log reporting method and terminal | |
CN102469142A (en) | Data transmission method for data deduplication program | |
CN102761540A (en) | Data compression method, device and system and server | |
CN102571820A (en) | Method used for transmitting data, compression server and terminal | |
CN101472163A (en) | Method, apparatus and system for transmitting picture file | |
CN102378136A (en) | Short message processing method and device | |
CN102088332B (en) | Method and device for expansion 1553B bus to perform file transfer from BC to RT | |
CN108334582B (en) | Method for compressing historical data in real-time database | |
CN100546281C (en) | A kind of method and device that transmits data | |
CN101304454A (en) | Method for rapidly inspecting short message history record | |
CN102467523A (en) | Method for establishing index files and method for querying data blocks by using index files | |
CN101867559B (en) | Method for compressing file in instant communication and network storage system | |
CN105357305A (en) | File sending method and device, file receiving method and device and terminal equipment | |
CN103176695A (en) | Message deleting method and message deleting device | |
CN101697600B (en) | Method and device for automatically analyzing and processing polyphonic ringtone data | |
CN102571161B (en) | Bluetooth adapter of mobile phone | |
CN104869548A (en) | Method and device for remotely modifying short messages | |
CN106201520B (en) | System reducing method and device | |
CN101442387B (en) | Method and apparatus for processing back-pressure data | |
CN108062281B (en) | Method for solving disconnection of data copying between mass storage device and PC terminal | |
CN103514126B (en) | The method of reseptance of a kind of data, system and device | |
CN101741630A (en) | Error reporting system and method thereof | |
CN102665240A (en) | Data sending method, data receiving method, apparatuses and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20091007 |