CN102377688B - File transmission method and equipment - Google Patents

File transmission method and equipment Download PDF

Info

Publication number
CN102377688B
CN102377688B CN201010257390.2A CN201010257390A CN102377688B CN 102377688 B CN102377688 B CN 102377688B CN 201010257390 A CN201010257390 A CN 201010257390A CN 102377688 B CN102377688 B CN 102377688B
Authority
CN
China
Prior art keywords
original document
mark
file group
transmit
file
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.)
Active
Application number
CN201010257390.2A
Other languages
Chinese (zh)
Other versions
CN102377688A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201010257390.2A priority Critical patent/CN102377688B/en
Publication of CN102377688A publication Critical patent/CN102377688A/en
Priority to HK12104317.4A priority patent/HK1163969A1/en
Application granted granted Critical
Publication of CN102377688B publication Critical patent/CN102377688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a file transmission method and file transmission equipment. The method comprises the following steps of: reading each primary file in a file group, and receiving the indication information of file types of the primary files, wherein the file type may be a type to be transmitted or a type not to be transmitted; setting corresponding operation identifiers for the primary files according to the indication information of the file types of the primary files; and transmitting primary files to be transmitted in the file group according to the operation identifiers. By the method and the equipment, a terminal user can directly transmit a part of primary files in a compressed file in a compressed file form without performing decompression and performing the complex operating steps of recompression and the like on the files to be transmitted after the decompression, thereby reducing an occupied hard disk memory space, simultaneously simplifying the operating steps of the terminal user and improving file transmission efficiency and the use experiences of the terminal user.

Description

A kind of transmission method of file and equipment
Technical field
The application relates to technical field of the computer network, particularly a kind of transmission method of file and equipment.
Background technology
Instant messaging (Instant messaging is called for short IM) refers to the service software that can immediately send and receive internet message.Because the function of IM becomes increasingly abundant, and be integrated with the several functions such as Email, blog, music, TV, game and search, thus the important means making IM become user at present to be undertaken by network communicating.
In existing IM software, by providing session window for user's transmitting/receiving instance message for user.Wherein, when user needs by IM software transmission file, then the session window that can be provided by IM software selects file waiting for transmission, and utilizes the file transmitting function that IM software provides, by file transfer to be transmitted to IM recipient.
It should be noted that, compressed file is compared with original document, disk space can be saved, and effectively the network bandwidth is saved in transmitting procedure, improve file transfer rate, therefore, file is stored on hard disk in the mode of compressed file by user usually, and is usually transmitted in the mode of compressed file by file.
In prior art, when only needing to transmit the part original document in compressed file, and when this part original document still needs to transmit in the mode of compressed file, generally include following steps: (1) carries out decompression operation to compressed file, obtain each original document; (2) in each original document obtained, the part original document needing transmission is chosen; (3) the part original document chosen is re-started squeeze operation, and the part original document after again compressing is transferred to IM recipient.
In the process realizing the application, inventor finds that prior art at least exists following problem:
In prior art, for the processing method of the part original document in transmission compressed file, not only additionally consume the memory space (such as, the decompression operation in above-mentioned steps (1)) of hard disk, reduce the service efficiency of hard disk; And need to carry out multiple loaded down with trivial details operating procedure (such as: decompression operation-choose operation-squeeze operation etc.) due to user, thus the use sense reducing user is subject to.
Summary of the invention
The application provides a kind of transmission method and equipment of file, is subject in order to the use sense improving user.
In order to achieve the above object, the embodiment of the present application provides a kind of transmission method of file, comprising:
Each original document in file reading group, and receive the indication information of the file type of original document, described file type is for needs transport-type or do not need transport-type;
Be that original document arranges corresponding operation mark according to the indication information of the file type of described original document;
The original document needing to transmit is transmitted in described file group according to described operation mark.
Preferably, described operation mark comprises: choose mark, delete mark;
Be that original document arranges corresponding operation mark according to the indication information of the file type of described original document, comprise:
According to the indication information determination original document of the file type of described original document for needs transport-type or do not need transport-type;
And choose mark for having the original document setting needing transport-type, and/or, do not need the original document of transport-type that deletion mark is set for having.
Preferably, transmit in described file group the original document needing to transmit according to described operation mark, comprising:
Delete in described file group the original document not needing to transmit according to described operation mark, and transmit in described file group the original document needing to transmit; Or
The original document needing to transmit directly is transmitted in described file group according to described operation mark.
Preferably, described operation mark comprises: choose mark, delete mark;
Delete in described file group the original document not needing to transmit according to described operation mark, and transmit in described file group the original document needing to transmit, comprising:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, delete the original document having and delete mark, and transmit in described file group the original document not having deletion;
When the original document in described file group only have choose mark time, delete and there is the original document chosen outside mark, and directly transmit in described file group the original document not having deletion;
When each original document in described file group has deletion mark respectively or chooses mark, deletion has the original document of deletion mark or has the original document chosen outside mark, and transmits in described file group the original document not having deletion.
Preferably, delete in described file group the original document not needing to transmit according to described operation mark, and transmit in described file group the original document needing to transmit, also comprise before:
Set up the backup file group of described file group;
Delete in described file group the original document not needing to transmit according to described operation mark, and directly transmit the original document needing in described file group to transmit, also comprise afterwards:
Delete described file group.
Preferably, described operation mark comprises: choose mark, delete mark; Directly transmit in described file group the original document needing to transmit according to described operation mark, comprising:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, directly have in the described file group of transmission and delete the original document outside identifying;
When the original document in described file group only have choose mark time, directly in the described file group of transmission, there is the original document choosing mark;
When each original document in described file group has deletion mark respectively or chooses mark, directly have in the described file group of transmission and delete the original document outside identifying or there is the original document choosing mark.
Preferably, transmit in described file group the original document needing to transmit according to described operation mark, also comprise afterwards:
Remove the corresponding relation of described operation mark and the described original document set up in described buffer memory.
Preferably, described file group comprises: compressed file, file.
Preferably, delete in described file group the original document not needing to transmit according to described operation mark, and transmit in described file group the original document needing to transmit, also comprise before:
Set up the backup file group of described file group;
Delete in described backup file group the original document not needing to transmit according to described operation mark, and directly the described backup file group of transmission needs the original document of transmission, also comprises afterwards:
Delete described backup file group.
On the other hand, the embodiment of the present application provides a kind of transmission equipment of file, comprising:
Read module, for each original document in file reading group;
Receiver module, for read each original document in file group at described read module after, receive the indication information of the file type of original document, described file type is for needs transport-type or do not need transport-type;
Arrange module, the indication information for the file type of described original document received according to described receiver module is that original document arranges corresponding operation mark;
Transport module, for according to described arrange module be original document arrange operation mark transmit in described file group need transmit original document.
Preferably, described operation mark comprises: choose mark, delete mark;
The described module that arranges comprises:
Determine submodule, for the indication information determination original document of the file type of described original document that receives according to described receiver module for needs transport-type or do not need transport-type;
Submodule is set, for described determine that submodule determination original document is for needs transport-type after, mark is chosen for having the original document setting needing transport-type, and/or, determining that submodule determination original document is not for after needing transport-type described, not needing the original document of transport-type to arrange to delete mark for having.
Preferably, described transport module comprises:
First transmission submodule, for according to described arrange module be original document arrange operation mark delete in described file group do not need transmit original document, and transmit in described file group need transmit original document; Or
Second transmission submodule, for according to described arrange module be original document arrange operation mark directly transmit in described file group need transmit original document.
Preferably, described operation mark comprises: choose mark, delete mark;
Described first transmission submodule specifically for:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, delete the original document having and delete mark, and transmit in described file group the original document not having deletion;
When the original document in described file group only have choose mark time, delete and there is the original document chosen outside mark, and directly transmit in described file group the original document not having deletion;
When each original document in described file group has deletion mark respectively or chooses mark, deletion has the original document of deletion mark or has the original document chosen outside mark, and transmits in described file group the original document not having deletion.
Fu Xuan's, also comprise:
Set up module, for setting up the backup file group of described file group;
Removing module, for deleting described file group.
Preferably, described operation mark comprises: choose mark, delete mark;
Described second transmission submodule specifically for:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, directly have in the described file group of transmission and delete the original document outside identifying;
When the original document in described file group only have choose mark time, directly in the described file group of transmission, there is the original document choosing mark;
When each original document in described file group has deletion mark respectively or chooses mark, directly have in the described file group of transmission and delete the original document outside identifying or there is the original document choosing mark.
Preferably, also comprise:
Remove module, for removing the corresponding relation of described operation mark and the described original document set up in described buffer memory.
Preferably, described file group comprises: compressed file, file.
The Advantageous Effects of the application comprises:
In the embodiment of the present application, without the need to carrying out decompress(ion) to compressed file, after reading each original document in compressed file, be that original document arranges corresponding operation mark according to the indication information of the file type of the original document received, thus according to the original document needing in this operation mark transmission compressed file to transmit.Compared with prior art, the embodiment of the present application directly can transmit the part original document in compressed file with compressed file form, and do not need to carry out to decompress and the more loaded down with trivial details operating procedure such as compression re-started to the file of needs transmission after decompression, thus decrease taking hard-disc storage space, simultaneously, also simplify the operating procedure of terminal use, improve the efficiency of user's transfer files, the use sense that improve terminal use is subject to.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, 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.
The schematic flow sheet of the transmission method of a kind of file that Figure 1A provides for the embodiment of the present application;
The schematic flow sheet of the transmission method of the another kind of file that Figure 1B provides for the embodiment of the present application;
The interface schematic diagram of the selection transfer files panel that Fig. 2 provides for the embodiment of the present application;
The interface schematic diagram of the Selection Floater that Fig. 3 provides for the embodiment of the present application;
The structural representation of the transmission equipment of the file that Fig. 4 provides for the embodiment of the present application.
Embodiment
For the problems referred to above that prior art exists, the embodiment of the present application provides a kind of transmission method of file, make user in compressed file, can directly select to need the original document of transmission, and selected original document is directly transmitted in the mode of compressed file.
Below in conjunction with accompanying drawing, the embodiment of the present application is described in detail.
The embodiment of the present application is that the mode of compressed file is described with file group.But the embodiment of the present application scope of application is not limited to compressed file, it also can be file.Each original document can be gathered together the file group carrying out storing or transmitting all within the protection range of the embodiment of the present application.
Further, when needing with partial document in the form of file direct transfer files folder, such as, file 1, file 2 and file 3 totally 3 files are included in file A, when user only needs the file 1,2 (partial document in file) in transfer files folder A, and, when file 1,2 still needs to transmit with the form of file, the technical scheme that this kind of application scenarios relates to and operand are that the disposition of compressed file is closely similar, therefore, the embodiment of the present application is only compressed file with operand for example is described.
Figure 1A and Figure 1B shows the schematic flow sheet of the transmission method of a kind of file that the embodiment of the present application provides.This flow process describes the processing method directly being transmitted the part original document in compressed file by IM software in the mode of compressed file.Such as, compressed file A compresses the rear compressed file obtained for being carried out by original document 1,2,3, when user only needs to transmit the original document 1,2 (the part original document in compressed file) in compressed file A, and when original document 1,2 still needs to transmit with the form of compressed file, this kind of application scenarios is applicable to the technical scheme that the embodiment of the present application provides.Flow process shown in Fig. 1 can comprise the following steps:
Step 101, runs IM software, starts IM session window.
Concrete, terminal use can by clicking the shortcut icon of IM software thus running IM software.After operation IM software, IM software can show a session window to terminal use.
Wherein, this session window comprises various function button, for linking the various different function that IM software has, such as: send button, for the various information that inputs to IM recipient's transmitting terminal user and file etc.; Selecting transfer files button, selecting transfer files panel for starting, thus terminal use can be made to select the file of required transmission; Receive button, for receiving the various information and file etc. that send from IM opposite end.
It should be noted that, the IM software that the application relates to includes but not limited to: QQ, Skype etc.Further, the software that can realize the technical scheme that the application provides is not limited to IM software, also can be other application software, such as: Email etc.In a word, the software of file transmitting function can be had all within the application's protection range.For convenience of describing, be only described for IM software in the application.
Step 102, obtains the compressed file including original document waiting for transmission.Such as, when needing to transmit original document 1,2 in compressed file A, then compressed file A is the compressed file that this step needs to obtain.
Concrete, terminal use sends display by " selection transfer files " button clicked in IM software sessions window to IM software and selects transfer files panel message, IM software, after receiving this display selection transfer files panel message, shows to terminal use and selects transfer files panel.Wherein, as shown in Figure 2, for selecting the interface schematic diagram of transfer files panel.
Terminal use selects the interface of transfer files panel by operation, can trigger IM software and obtain and the compressed file including original document waiting for transmission to terminal use's display.Such as, if during the original document that terminal use needs transfer files to be called in the compressed file (the cascade storage directory of this photo compressed file is: hard disk D-Binjiang opening number file-photo compressed file) of photo, then terminal use can trigger the acquisition of IM software by selection course repeatedly and show this photo compressed file to terminal use.Concrete, first, terminal use, by clicking " my computer " icon selected on the left of transfer files panel, makes IM software return the mark of alternative each hard disk to terminal use, and such as: disk C identifies, and hard disk D identifies, hard disk E identifies; Then, terminal use is by clicking the mark of hard disk D, thus trigger IM software returns alternative each file and mark from file to terminal use, and such as: the file that name is called " Binjiang opening number ", the file etc. that name is called " Beijing opening number "; Finally, terminal use is called the file of " Binjiang opening number " by clicking name, thus trigger IM software returns alternative each file and mark from file to terminal use, such as: the file that name is called " CDC ", name is called the file of " expert's data ", name is called the compressed file of " photo ", the file etc. that name is called " catalogue ".By above-mentioned three cascade operation steps, just can trigger IM software and obtain and the compressed file including original document waiting for transmission to terminal use's display.
It should be noted that, the form of the compressed file that the embodiment of the present application relates to can be .zip form, and also can be .rar form, the concrete form of the application to compressed file limit.
Step 103, reads each original document in compressed file, and receives the indication information of the file type of original document.Wherein, this file type is for needs transport-type or do not need transport-type.
Concrete, IM software is read and each original document shown to terminal use in compressed file by the triggering of terminal use, terminal use according to actual needs, by selecting the file type of each original document in compressed file, such as, for the original document 1,2,3 in compressed file A, when terminal use only needs original document 1 to be transferred to IM recipient, then the file type of original document 1 is needs transport-type; The file type of original document 2,3 is not for need transport-type.Then send the indication information of each its original file type to IM software, needing the original document transmitted to be original document 1 in IM Software Compression file for notifying, not needing the original document transmitted to be original document 2,3.
In practical operation, after IM software includes the compressed file of original document waiting for transmission to terminal use's display, IM software can be made to show corresponding Selection Floater to terminal use by the triggering of terminal use, wherein, the content of this Selection Floater display is each original document list of file names in this compressed file, namely achieves the technique effect of each original document read in compressed file.
Such as, terminal use by the icon of double-click compressed file (photo compressed file) or the open button clicked after choosing the icon of this compressed file in Fig. 2, thus can trigger IM software to terminal use's Display Select Panel.Wherein, as shown in Figure 3, be the interface schematic diagram of Selection Floater.
It should be noted that, be not the process that compressed file is decompressed by each original document be included in compressed file by the process that Selection Floater carries out showing in this step, but directly read the process of each original document in compressed file, therefore, do not need the hard drive space outside occupying volume, thus effectively raise the utilization rate of hard drive space.
Further, terminal use, by the interface of operation Selection Floater, can send the indication information of the file type of original document to IM software.
Such as, as shown in Figure 3, include in photo compressed file that name is called 02,03...16 totally 15 original documents, if when terminal use only needs that totally 5 original documents are transferred to IM recipient by 04 wherein, 05...08, then terminal use can carry out any one in following operation:
The first operation, only sends the indication information of its original file type needing transmission to IM software.Namely choose 04, these 5 original documents of 05...08, then " choosing " button arranged in Selection Floater is clicked, thus the indication information of file type is sent to IM software, the file type of notice IM software original document 04,05...08 is needs transport-type, under this kind of pattern, other all original documents in IM software default photo compressed file (original document 02,03,09,10...16) file type for not need transport-type.
The second operates, and only sends the indication information not needing its original file type transmitted to IM software.Namely choose 02,03,09, these 10 original documents of 10...16, then " deletion " button arranged in Selection Floater is clicked, thus the indication information of file type is sent to IM software, notice IM software original document 02,03,09, the file type of 10...16 is not for need transport-type, under this kind of pattern, in IM software default photo compressed file, the file type of other all original documents (original document 04,05...08) is needs transport-type.
The third operation, sends the indication information needing its original file type of transmission and do not need its original file type transmitted simultaneously to IM software.Namely 04 is chosen, 05...08 these 5 original documents, then " choosing " button arranged in Selection Floater is clicked, choose 02, 03, 09, 10...16 these 10 original documents, then " deletion " button arranged in Selection Floater is clicked, thus the indication information of file type is sent to IM software, notice IM software original document 04, 05...08 file type is needs transport-type, and original document 02, 03, 09, 10...16 file type is not for need transport-type, under this kind of pattern, IM software directly knows the file type of all original documents in compressed file.
Therefore, the above-mentioned various operation undertaken by terminal use, IM software finally all can know the file type of all original documents in compressed file.
Step 104 is that original document arranges corresponding operation mark according to the indication information of the file type of original document.Wherein, this operation mark comprises: choose mark, delete mark.
File type due to original document comprises to be needed transport-type and does not need transport-type, then in this step, need according to the indication information determination original document of the file type of original document for needs transport-type or do not need transport-type, and arrange choose mark for having the original document needing transport-type; And/or, do not need the original document of transport-type that deletion mark is set for having.
That is, mark is chosen to be the original document needing transmission for identifying original document, deleting mark for identifying original document is the original document not needing to transmit, thus in subsequent step, IM software can carry out corresponding process (operation of to original document deleting or retaining) to the corresponding relation of original document to original document according to operation mark, the application, does not repeat them here this has been detailed introduction at subsequent step.
Concrete, owing to introducing in above-mentioned steps, IM software finally can know the file type of all original documents in compressed file, therefore, for three kinds of operational circumstances of above-mentioned terminal use, IM software all can take any one mode in following three kinds of modes to be that original document arranges corresponding operation mark:
First kind of way, only choose mark for arranging with the original document needing transport-type corresponding (original document 04,05...08), under this kind of pattern, other original documents in IM software default photo compressed file (original document 02,03,09,10...16) for not needing the original document transmitted.
The second way, only for the original document not needing transport-type corresponding (original document 02,03,09,10...16) arrange to delete and identify, under this kind of pattern, in IM software default photo compressed file, other original documents (original document 04,05...08) are the original document needing transmission.
The third mode, mark is chosen for arranging with the original document needing transport-type corresponding (original document 04,05...08), and for the original document not needing transport-type corresponding (original document 02,03,09,10...16) arrange to delete and identify, under this kind of pattern, IM software is that original documents all in compressed file is all provided with corresponding operation mark.
Can find out, by this step, corresponding operation mark can be set for the part original document (i.e. the original document of all needs transmission or all original documents not needing to transmit) in compressed file or whole original document.
Step 105, sets up the corresponding relation of operation mark and original document.Wherein, (such as: in the buffer memory of C dish) corresponding relation of this operation mark and original document can be set up in the buffer in the application, and the corresponding relation of this operation mark and original document can store in the mode of mapping table.
Wherein, for being three kinds of different modes of original document setting operation mark in above-mentioned steps 104, IM software can set up following three kinds of corresponding relation mapping tables accordingly.
(1) when mark is chosen in setting, as shown in table 1, the concrete signal situation for the corresponding relation mapping table of operation mark and original document:
Table 1
Raw filename Operation mark
04 Choose
05 Choose
06 Choose
07 Choose
08 Choose
Certainly, in actual applications, the form of the corresponding relation mapping table of operation mark and original document also can be as shown in table 2:
Table 2
Raw filename Operation mark
04,05,06,07,08 Choose
Therefore, the concrete form of the application to the corresponding relation mapping table of this operation mark and original document does not limit, and can embody the mapping table of the corresponding relation of raw filename and operation mark all within the protection range of the application.
Follow-up introduction is carried out for the form shown in table 2 in the application.
(2) when arrange delete mark time, as shown in table 3, the concrete signal situation for the corresponding relation mapping table of operation mark and original document:
Table 3
Raw filename Operation mark
02,03,09,10,11,12,13,14,15,16 Delete
(3) when arrange delete mark and choose mark time, as shown in table 4, the concrete signal situation for the corresponding relation mapping table of operation mark and original document:
Table 4
Raw filename Operation mark
04,05,06,07,08 Choose
02,03,09,10,11,12,13,14,15,16 Delete
In subsequent step, the embodiment of the present application provides following two kinds of possibilities to carry out transmitting the part original document in compressed file.Wherein, step 106 be the first possibility to step 108, deletes in compressed file the original document not needing to transmit according to operation mark, and transmits in compressed file and do not have deleted (being also: need to transmit) original document; Step 109 is the second possibility, directly transmits in compressed file the original document needing to transmit according to operation mark, and for the original document not needing to transmit, does not carry out deletion action.
Step 106, sets up the backup compressed file of compressed file.
Concrete, can at store compressed file (for convenience of describing, be former compressed file hereinafter referred to as this compressed file) hard disk in set up the backup compressed file of former compressed file, wherein, the filename of backup compressed file is not identical with the filename of former compressed file.
It should be noted that, according to actual needs, also can set up the backup compressed file of compressed file in the hard disk different from the hard disk storing former compressed file, the embodiment of the present application does not limit this.Below only to back up compressed file and be described with storing in the identical hard disk of former compressed file to set up.Further, when former compressed file is stored in the path of the same rank of same hard disk with backup compressed file, the filename of the two is not identical.
Such as, introduced in step 102, photo compressed file is stored in the Binjiang opening number file of hard disk D, therefore, in this step, the backup compressed file photo ' compressed file of photo compressed file can be set up in the Binjiang opening number file of hard disk D.
Wherein, the object setting up the backup compressed file of former compressed file can carry out corresponding introduction in subsequent step, does not repeat them here.
It should be noted that, step 106 is not limited to and performs after step 105.As long as after getting former compressed file, the backup compressed file of former compressed file all can be set up.
Step 107, deletes the original document not needing in compressed file to transmit according to operation mark, and directly transmits the original document needing in compressed file to transmit.
The compressed file related in this step is the former compressed file in above-mentioned steps 106.
Concrete, need the operation mark of original document in the corresponding relation determination compressed file according to operation mark and original document; And when the original document in compressed file only has deletion mark, then need to delete the original document having and delete mark, and transmit in compressed file the original document not having to delete; When the original document in compressed file only have choose mark time, then need to delete the original document having and choose outside mark, and directly transmit in compressed file the original document not have deletion; When each original document in compressed file have respectively delete mark or choose mark time, then need to delete the original document that has and delete mark or there is the original document chosen outside mark, and transmitting in compressed file the original document not have deletion.
Wherein, IM software according to the corresponding relation mapping table of the operation mark stored in buffer memory and raw filename, can search the original document corresponding with operation mark in the hard disk of store compressed file.For three kinds of processing modes of above-mentioned steps 104, when only for needing the original document of transmission to arrange to choose mark, then needing to delete not have to arrange the original document choosing mark, and directly transmits and identify corresponding original document with choosing in compressed file; When only for not needing the original document transmitted to arrange to delete mark, then need to delete and identify corresponding original document with deleting, and direct transmission does not have deleted original document in compressed file; When both choosing mark for needing the original document of transmission to arrange, time simultaneously again for not needing the original document transmitted to arrange deletion mark, then need to delete and identify corresponding original document with deleting, and direct transmission identifies corresponding original document with choosing in compressed file.
Concrete, when after IM software receipt to the order of " transmission ", first IM software read the corresponding relation mapping table of operation mark and the raw filename stored in C dish buffer memory, then according to this corresponding relation mapping table, directly reads the original document be included in compressed file in hard disk.Such as, introduced in a step 102, photo compressed file is stored in hard disk D, and therefore, in this step, IM software reads the original document in photo compressed file in hard disk D.Below for kind of the processing mode of three in above-mentioned steps 104, introduce the corresponding judgement transmission mechanism that IM software is taked respectively.
(1) when corresponding relation mapping table is the form shown in table 2, namely only store in buffer memory with choose identify corresponding raw filename time, then IM software retains in photo compressed file and identifies corresponding original document (name be called 04, the original document of 05...08) with choosing, and all for other in photo compressed file original documents is carried out deletion action simultaneously.
(2) when corresponding relation mapping table is the form shown in table 3, namely only store in buffer memory with delete identify corresponding raw filename time, IM software is deleted in photo compressed file and is identified corresponding original document with deletion, and retains other the not deleted original documents in photo compressed file.
(3) when corresponding relation mapping table is the form shown in table 4, namely both stored in buffer memory and identified corresponding raw filename with deleting, store again simultaneously with choose identify corresponding raw filename time, IM software is deleted in photo compressed file and is identified corresponding original document with deletion, and retains in photo compressed file and identify corresponding original document with choosing.
Pass through aforesaid operations, finally only store the original document (name be called 04, the original document of 05...08) needing to be transferred to IM recipient in compressed file, and these need the original document of transmission to remain to be stored in hard disk D in the mode of compressed file.
Therefore, IM software can directly will need the original document of transmission to be transferred to IM recipient in the mode of compressed file, and does not need the extra operation compressed the original document of needs transmission, thus simplifies the operation of terminal use.
It should be noted that, above-mentionedly identify corresponding raw filename or identify corresponding raw filename and be only part raw filename in compressed file in all raw filenames with deleting with choosing.In this case, the advantage of the technical scheme adopting the embodiment of the present application to provide is more outstanding, so the application is only described for the part original document transmitted in compressed file.Certainly, in actual applications, the application be equally applicable to for all raw filenames in compressed file all add on choose mark, namely also can transmit all original documents in compressed file in subsequent step.The application repeats no longer in detail for this situation.
In sum, in this step, owing to will not need the original document transmitted to carry out deletion action in former compressed file, therefore, need the original document transmitted in transmission compressed file after, the original document stored in former compressed file imperfect (such as, for photo compressed file, finally only store that name is called 04, the original document of 05...08).
Step 108, deletes former compressed file.Then step 110 is performed.
Concrete, imperfect due to final the stored original document of former compressed file, therefore, after the original document of needs transmission is transferred to IM recipient in the mode of compressed file, IM software can delete the former compressed file that hard disk stores automatically, and owing to having established the backup compressed file with complete original document in step 106, therefore, final hard disk still stores complete compressed file, for the follow-up use of terminal use, thus facilitates terminal use.
Such as, due to the backup compressed file of vertical photo compressed file built in step 106: photo ' compressed file.Therefore, in this step, delete photo compressed file, and retain photo ' compressed file.
Visible, by setting up the backup compressed file of former compressed file, thus while ensure that the part original document in transmission compressed file, reach the object recovering all original documents in former compressed file.In the embodiment of the present application, the compressed file related in step 107 also for the backup compressed file set up in above-mentioned steps 106, so in step 108, only can need be deleted backup compressed file, and still preserve former compressed file.Can replace, backup compressed file also can be preserved in the buffer, and without the need to being kept on the hard disk of client, after such file transfer, only need remove the data in buffer memory.
Relative to step 107, another embodiment of the application provides a kind of replacement scheme, and the concrete step that performs refers to step 109.
Step 109, according to operation mark, directly needs the original document transmitted in transmission compressed file.Then step 110 is performed.
Concrete, when the original document in compressed file only has deletion mark, directly have in transmission compressed file and delete the original document outside identifying, and do not delete the original document having and delete mark;
When the original document in compressed file only have choose mark time, directly in transmission compressed file, there is the original document choosing mark, and do not delete the original document having and delete mark;
When each original document in compressed file has deletion mark respectively or chooses mark, directly have in transmission compressed file and delete the original document outside identifying or there is the original document choosing mark, and do not delete the original document having and delete mark.
For three kinds of processing modes of above-mentioned steps 104, when only choosing mark/both to choose mark for needing the setting of the original document of transmission for needing the original document of transmission to arrange, time simultaneously again for not needing the original document transmitted to arrange deletion mark, then directly transmission identify corresponding original document with choosing, and does not delete the original document having deletion and identify; When only for not needing the original document transmitted to arrange deletion mark, then directly transmission does not arrange the original document deleting mark, and does not delete the original document with deletion mark.
By this step, directly transmit needing the original document of transmission in the mode of compressed file, and do not need the original document transmitted still to be retained in former compressed file, therefore, still complete original document is stored in final former compressed file, and then do not need the operation performing step 106, namely to the operation that former compressed file backs up.
Step 110, removes the corresponding relation of operation mark and the original document set up in buffer memory.When the corresponding relation of operation mark and original document stores in the mode of mapping table, then in this step, the corresponding relation mapping table of deletion action mark and original document.
Concrete, IM software, after compressed file is transferred to IM recipient, is automatically deleted the corresponding relation mapping table of operation mark and the original document stored in buffer memory, thus is alleviated the burden of disk storage.
By describing above and can finding out, by the method using the embodiment of the present application to provide, the part original document in compressed file directly can be transmitted with compressed file form, and do not need to carry out to compress and operating procedure that decompression etc. is loaded down with trivial details, thus decrease taking hard-disc storage space, meanwhile, also simplify the operating procedure of terminal use, facilitate the use of terminal use.
Based on identical technical conceive, the embodiment of the present application additionally provides a kind of transmission equipment of file, is applied to the above-mentioned flow process of the embodiment of the present application.
As shown in Figure 4, the transmission equipment of file that the embodiment of the present application provides comprises:
Read module 41, for each original document in file reading group; Wherein, described file group comprises: compressed file, file;
Receiver module 42, for read each original document in file group at described read module 41 after, receive the indication information of the file type of original document, described file type is for needs transport-type or do not need transport-type;
Arrange module 43, the indication information for the file type of described original document received according to described receiver module 42 is that original document arranges corresponding operation mark; Wherein, described operation mark comprises: choose mark, delete mark;
Transport module 44, for arranging module 43 for operation mark that original document is arranged and transmit in described file group according to described the original document needing to transmit.
Wherein, the above-mentioned module 43 that arranges comprises:
Determine submodule 431, for the indication information determination original document of the file type of described original document that receives according to described receiver module 42 for needs transport-type or do not need transport-type;
Submodule 432 is set, for described determine that submodule 431 determines that original document is for needs transport-type after, mark is chosen for having the original document setting needing transport-type, and/or, determining that submodule determination original document is not for after needing transport-type described, not needing the original document of transport-type to arrange to delete mark for having.
Above-mentioned transport module 44 comprises:
First transmission submodule 441, for according to described arrange module be original document arrange operation mark delete in described file group do not need transmit original document, and transmit in described file group need transmit original document; Or
Second transmission submodule 442, for according to described arrange module be original document arrange operation mark directly transmit in described file group need transmit original document.
Above-mentioned first transmission submodule 441 specifically for:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, delete the original document having and delete mark, and transmit in described file group the original document not having deletion;
When the original document in described file group only have choose mark time, delete and there is the original document chosen outside mark, and directly transmit in described file group the original document not having deletion;
When each original document in described file group has deletion mark respectively or chooses mark, deletion has the original document of deletion mark or has the original document chosen outside mark, and transmits in described file group the original document not having deletion.
The transmission equipment of above-mentioned file, also comprises:
Set up module 45, for setting up the backup file group of described file group;
Removing module 46, for deleting described file group.
Above-mentioned second transmission submodule 442 specifically for:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, directly have in the described file group of transmission and delete the original document outside identifying;
When the original document in described file group only have choose mark time, directly in the described file group of transmission, there is the original document choosing mark;
When each original document in described file group has deletion mark respectively or chooses mark, directly have in the described file group of transmission and delete the original document outside identifying or there is the original document choosing mark.
The transmission equipment of above-mentioned file, also comprises:
Remove module 47, for removing the corresponding relation of described operation mark and the described original document set up in described buffer memory.
In the technical scheme that the embodiment of the present application provides, terminal use directly can transmit the part original document in compressed file with compressed file form, and do not need to carry out to compress and operating procedure that decompression etc. is loaded down with trivial details, thus decrease taking hard-disc storage space, simultaneously, also simplify the operating procedure of terminal use, the use sense that improve terminal use is subject to.
For convenience of description, each several part of the above system is divided into various module or equipment to describe respectively with function.Certainly, the function of each module or equipment can be realized in same or multiple software or hardware when implementing the application
Above-mentioned module can be distributed in a device, also can be distributed in multiple device.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the application can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions and perform method described in each embodiment of the application in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the application is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
Above-mentioned the embodiment of the present application sequence number, just to describing, does not represent the quality of embodiment.
Be only several specific embodiments of the application above, but the application is not limited thereto, the changes that any person skilled in the art can think of all should fall into the protection range of the application.

Claims (13)

1. a transmission method for file, is characterized in that, comprises the following steps:
Each original document in file reading group, and receive the indication information of the file type of original document, described file type is for needs transport-type or do not need transport-type;
Be that original document arranges corresponding operation mark according to the indication information of the file type of described original document;
The original document needing to transmit is transmitted in described file group according to described operation mark;
Wherein, described file group is compressed file;
Wherein, described operation mark comprises: choose mark, delete mark;
Be that original document arranges corresponding operation mark according to the indication information of the file type of described original document, comprise:
According to the indication information determination original document of the file type of described original document for needs transport-type or do not need transport-type;
And choose mark for having the original document setting needing transport-type, and/or, do not need the original document of transport-type that deletion mark is set for having.
2. the method for claim 1, is characterized in that, transmits in described file group the original document needing to transmit, comprising according to described operation mark:
Delete in described file group the original document not needing to transmit according to described operation mark, and transmit in described file group the original document needing to transmit; Or
The original document needing to transmit directly is transmitted in described file group according to described operation mark.
3. method as claimed in claim 2, it is characterized in that, described operation mark comprises: choose mark, delete mark;
Delete in described file group the original document not needing to transmit according to described operation mark, and transmit in described file group the original document needing to transmit, comprising:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, delete the original document having and delete mark, and transmit in described file group the original document not having deletion;
When the original document in described file group only have choose mark time, delete and there is the original document chosen outside mark, and directly transmit in described file group the original document not having deletion;
When each original document in described file group has deletion mark respectively or chooses mark, deletion has the original document of deletion mark or has the original document chosen outside mark, and transmits in described file group the original document not having deletion.
4. method as claimed in claim 3, is characterized in that, deletes in described file group the original document not needing to transmit according to described operation mark, and transmits in described file group the original document needing to transmit, and also comprises before:
Set up the backup file group of described file group;
Delete in described file group the original document not needing to transmit according to described operation mark, and directly transmit the original document needing in described file group to transmit, also comprise afterwards:
Delete described file group.
5. method as claimed in claim 2, it is characterized in that, described operation mark comprises: choose mark, delete mark;
Directly transmit in described file group the original document needing to transmit according to described operation mark, comprising:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, directly have in the described file group of transmission and delete the original document outside identifying;
When the original document in described file group only have choose mark time, directly in the described file group of transmission, there is the original document choosing mark;
When each original document in described file group has deletion mark respectively or chooses mark, directly have in the described file group of transmission and delete the original document outside identifying or there is the original document choosing mark.
6. the method as described in claim 3 or 5, is characterized in that, transmits in described file group the original document needing to transmit, also comprise afterwards according to described operation mark:
Remove the corresponding relation of described operation mark and the described original document set up in described buffer memory.
7. method as claimed in claim 3, is characterized in that, deletes in described file group the original document not needing to transmit according to described operation mark, and transmits in described file group the original document needing to transmit, and also comprises before:
Set up the backup file group of described file group;
Delete in described backup file group the original document not needing to transmit according to described operation mark, and directly the described backup file group of transmission needs the original document of transmission, also comprises afterwards:
Delete described backup file group.
8. a transmission equipment for file, is characterized in that, comprising:
Read module, for each original document in file reading group;
Receiver module, for read each original document in file group at described read module after, receive the indication information of the file type of original document, described file type is for needs transport-type or do not need transport-type;
Arrange module, the indication information for the file type of described original document received according to described receiver module is that original document arranges corresponding operation mark;
Transport module, for according to described arrange module be original document arrange operation mark transmit in described file group need transmit original document;
Wherein, described file group is compressed file;
Wherein, described operation mark comprises: choose mark, delete mark;
The described module that arranges comprises:
Determine submodule, for the indication information determination original document of the file type of described original document that receives according to described receiver module for needs transport-type or do not need transport-type;
Submodule is set, for described determine that submodule determination original document is for needs transport-type after, mark is chosen for having the original document setting needing transport-type, and/or, determining that submodule determination original document is not for after needing transport-type described, not needing the original document of transport-type to arrange to delete mark for having.
9. equipment as claimed in claim 8, it is characterized in that, described transport module comprises:
First transmission submodule, for according to described arrange module be original document arrange operation mark delete in described file group do not need transmit original document, and transmit in described file group need transmit original document; Or
Second transmission submodule, for according to described arrange module be original document arrange operation mark directly transmit in described file group need transmit original document.
10. equipment as claimed in claim 9, it is characterized in that, described operation mark comprises: choose mark, delete mark;
Described first transmission submodule specifically for:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, delete the original document having and delete mark, and transmit in described file group the original document not having deletion;
When the original document in described file group only have choose mark time, delete and there is the original document chosen outside mark, and directly transmit in described file group the original document not having deletion;
When each original document in described file group has deletion mark respectively or chooses mark, deletion has the original document of deletion mark or has the original document chosen outside mark, and transmits in described file group the original document not having deletion.
11. equipment as claimed in claim 10, is characterized in that, also comprise:
Set up module, for setting up the backup file group of described file group;
Removing module, for deleting described file group.
12. equipment as claimed in claim 9, it is characterized in that, described operation mark comprises: choose mark, delete mark;
Described second transmission submodule specifically for:
Set up the corresponding relation of described operation mark and described original document in the buffer;
The operation mark of original document in described file group is determined according to the corresponding relation of described operation mark and described original document;
When the original document in described file group only has deletion mark, directly have in the described file group of transmission and delete the original document outside identifying;
When the original document in described file group only have choose mark time, directly in the described file group of transmission, there is the original document choosing mark;
When each original document in described file group has deletion mark respectively or chooses mark, directly have in the described file group of transmission and delete the original document outside identifying or there is the original document choosing mark.
13. equipment as described in claim 10 or 12, is characterized in that, also comprise:
Remove module, for removing the corresponding relation of described operation mark and the described original document set up in described buffer memory.
CN201010257390.2A 2010-08-19 2010-08-19 File transmission method and equipment Active CN102377688B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010257390.2A CN102377688B (en) 2010-08-19 2010-08-19 File transmission method and equipment
HK12104317.4A HK1163969A1 (en) 2010-08-19 2012-05-03 A method and device for file transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010257390.2A CN102377688B (en) 2010-08-19 2010-08-19 File transmission method and equipment

Publications (2)

Publication Number Publication Date
CN102377688A CN102377688A (en) 2012-03-14
CN102377688B true CN102377688B (en) 2015-04-22

Family

ID=45795680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010257390.2A Active CN102377688B (en) 2010-08-19 2010-08-19 File transmission method and equipment

Country Status (2)

Country Link
CN (1) CN102377688B (en)
HK (1) HK1163969A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8923195B2 (en) * 2012-03-20 2014-12-30 Futurewei Technologies, Inc. Method and apparatus for efficient content delivery in radio access networks
CN103037009B (en) * 2012-12-25 2016-05-18 网宿科技股份有限公司 Accelerated method based on intelligently encoding and system
CN104333505A (en) * 2014-10-23 2015-02-04 秦科 Instant messaging method
CN107729415A (en) * 2017-09-27 2018-02-23 郑州云海信息技术有限公司 A kind of compressed file content displaying method and device
CN107967159B (en) * 2017-11-22 2021-08-24 腾讯科技(深圳)有限公司 Method for configuring file application and server
CN109871361B (en) * 2018-11-26 2023-05-23 北京乐我无限科技有限责任公司 File uploading method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098502A (en) * 2006-06-29 2008-01-02 卢森特技术有限公司 SMS rubbish filtering MAP information treatment
CN201491272U (en) * 2009-02-23 2010-05-26 熊明宝 Additional information management system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026551A (en) * 2006-10-10 2007-08-29 中山大学 File packing and unpacking method for communication transmission
WO2008105695A1 (en) * 2007-03-01 2008-09-04 Telefonaktiebolaget Lm Ericsson (Publ) Bit streams combination of downloaded multimedia files

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098502A (en) * 2006-06-29 2008-01-02 卢森特技术有限公司 SMS rubbish filtering MAP information treatment
CN201491272U (en) * 2009-02-23 2010-05-26 熊明宝 Additional information management system

Also Published As

Publication number Publication date
CN102377688A (en) 2012-03-14
HK1163969A1 (en) 2012-09-14

Similar Documents

Publication Publication Date Title
CN102377688B (en) File transmission method and equipment
CN106936441B (en) Data compression method and device
EP3016296A1 (en) Bluetooth communication method and bluetooth communication device
CN109690519A (en) A kind of document handling method and mobile terminal
CN103383698B (en) The method of data deletion and mobile terminal thereof
US20160277460A1 (en) Method and apparatus for initiating network conference
CN102904797B (en) Method and system for implementing mutual information recording in instant messaging
CN103475572A (en) Method, device and system for sending multiple pictures in instant messaging application
CN101771552B (en) Device, system and method for reducing repeated downloading of images through identification codes
CN105224676A (en) The method of mobile terminal file migration and device
CN108090078A (en) The online method for previewing of document and device
WO2021017899A1 (en) Method for efficiently cleaning equipment files and device
CN105574163A (en) File processing method and device and electronic equipment
CN113014510A (en) Data caching method and device in distributed test of inertial navigation system
WO2017156986A1 (en) Full-picture image display method and system for mobile terminal
CN106155842A (en) A kind of data migration method and device
KR100797122B1 (en) Apparatus of processing file using portable storage media in portable terminal and method thereof
CN111124291B (en) Data storage processing method and device of distributed storage system and electronic equipment
JP4142866B2 (en) Database synchronization apparatus and program
CN109617708B (en) Compression method, device and system for embedded point log
US20080270832A1 (en) Efficiently re-starting and recovering synchronization operations between a client and server
CN111770165A (en) Method and device for uploading files, electronic equipment and readable storage medium
TW201227268A (en) Data backup system and data backup and retrival method
CN102662801A (en) Method, client and system for recovering program through instant communication tool
CN108008984A (en) A kind of resource file downloading updating method and 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1163969

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1163969

Country of ref document: HK