The content of the invention
The invention provides it is a kind of in instant messaging to user transmit file method and device, can quickly, height
What is imitated carries out file transmission.
The invention provides following scheme:
A kind of method for transmitting file in instant messaging, including:Receive the configured information of user, the configured information
Indicate the first instant messaging IM clients that file is transferred at least one the 2nd IM clients;The first IM clients are by institute
It is multiple files section to state file cutting, and by the file slice transmission of the file to first server;The first IM visitors
File index information from family end to file described in described at least one the 2nd IM client transmissions;The 2nd IM clients according to
The file index information, the file at least obtaining the file from an IM clients and the first server is cut
Piece.
Optionally, when described at least one the 2nd IM clients are for multiple, methods described also includes:The 2nd IM visitors
The receive information that family end circular is each cut into slices to the file of the file, and know other described 2nd IM clients to described
The receive information of the file section of file;The 2nd IM clients are according to the IM clients of other each known the 2nd to institute
State the receive information of the file section of file, the file section of each required file interactively with each other.
Optionally, also include:Other servers that the 2nd IM clients have the file from network side obtain institute
State file.
Optionally, the 2nd IM clients are according to the file index information, at least from an IM clients and
The file section that the first server obtains the file includes:If an IM clients are to the 2nd IM client
When the file index information is transmitted at end, the 2nd IM clients are in off-line state, then treat in the 2nd IM clients
After line, check whether an IM clients are current online;If online, the 2nd IM clients are according to the file
Index information at least obtains the file section of the file from an IM clients and the first server.
Optionally, the 2nd IM clients are at least obtained according to the file index information from the first server
The file section includes:The 2nd IM clients treat that the first server receives at least one complete file
After section, the file section of the file that the first server has been received by is obtained from the first server.
Optionally, the 2nd IM clients are according to the file index information, at least from an IM clients and
The file section that the first server obtains the file includes:The 2nd IM clients are believed according to the file index
Breath, at least obtains the file section of the file different piece from an IM clients and the first server.
Optionally, the configured information for receiving user, the configured information indicates an IM clients to transmit file
Include at least one the 2nd IM clients:Receiving user needs to transmit the first instruction letter of file by immediate communication tool
Breath;The information of an IM clients is called in the first configured information triggering, can be connect as the file for the user provides
The candidate information of the 2nd IM clients of debit;The second configured information that the user is given according to the candidate information is received,
Second configured information indicates at least one the 2nd IM clients of file reception side described in of user's selection.
Optionally, the configured information for receiving user, the configured information indicates an IM clients to transmit file
Include at least one the 2nd IM clients:3rd configured information of user, institute are received by an entrance of an IM clients
State the 3rd configured information instruction user file waiting for transmission;The 4th configured information of user is received, the 4th configured information refers to
Show at least one the 2nd IM clients as file reception side of user's selection.
A kind of device for transmitting file in instant messaging, including:Indicating member, the instruction for receiving user is believed
Breath, the configured information indicates the first instant messaging IM clients that file is transferred at least one the 2nd IM clients;Cutting
Unit, for an IM clients by the file cutting for multiple files are cut into slices, and the file of the file is cut into slices
First server is transferred to successively;Indexing units, for an IM clients to described at least one the 2nd IM clients
Transmit the file index information of the file;First file obtaining unit, for the 2nd IM clients according to the file
Index information, at least obtains the file section of the file from an IM clients and the first server.
Optionally, when described at least one the 2nd IM clients are for multiple, also include:Communication unit, for institute
The receive information that the 2nd IM clients circular is each cut into slices to the file of the file is stated, and knows other described 2nd IM visitors
Receive information of the family end to the file section of the file;Second file obtaining unit, for the 2nd IM client roots
It is interactively with each other each required according to the receive information that the IM clients of other each known the 2nd are cut into slices to the file of the file
The file file section.
Optionally, also include:3rd file obtaining unit, has the text for the 2nd IM clients from network side
Other servers of part obtain the file.
Optionally, the first file obtaining unit includes:Off-line files obtain subelement, if for an IM
To described in the 2nd IM client transmissions during file index information, the 2nd IM clients are in off-line state to client,
Then after the 2nd IM clients are reached the standard grade, check whether an IM clients are current online;If online, described the
Two IM clients are according to the file index information is at least obtained respectively from an IM clients and the server
The file section of file.
Optionally, the first file obtaining unit includes:Server file obtains subelement, for the 2nd IM visitors
Family end obtains institute after the first server receives at least one complete file section from the first server
State the file section of the file that first server has been received by.
Optionally, the first file obtaining unit, specifically for the 2nd IM clients according to the file index
Information, at least obtains the file section of the file different piece from an IM clients and the first server.
Optionally, the indicating member is specifically included:First indicating member, needs by instant messaging for receiving user
First configured information of tool transport file;Triggering call unit, adjusts for being triggered when first configured information is received
With the information of an IM clients, can believe as the candidate of the 2nd IM clients of the file reception side for the user provides
Breath;Recipient's indicating member, for receiving the second configured information that the user provides according to the candidate information, described second
Configured information indicates at least one the 2nd IM clients of file reception side described in of user's selection.
Optionally, the indicating member is specifically included:3rd indicating member, for the entrance by an IM clients
Receive the 3rd configured information of user, the 3rd configured information instruction user file waiting for transmission;4th indicating member, is used for
Receive the 4th configured information of user, the 4th configured information indicate user's selection as file reception side at least
One the 2nd IM client.
According to the specific embodiment that the present invention is provided, the invention discloses following technique effect:
By the embodiment of the present invention, file is first carried out into cutting by the IM clients as sender, and will cut
The file index information of file to be transmitted is sent to user's instruction by the file slice transmission after point to first server
Recipient, and then, on the one hand recipient can obtain required file section according to file index information from first server,
On the other hand the file section needed for also being obtained from an IM clients.Therefore, therefore no matter recipient is one, it is or many
It is individual, all substantially increase the efficiency of transmission that file is only individually obtained from file source.It is additionally, since first as sender
File cutting to be transmitted can be first multiple file sections, and be sent to first before file to be transmitted is sent by IM clients
On server, therefore waiting the receiving after a complete file is cut into slices of first server just can be the 2nd IM clients(No matter
It is one or multiple)The file section that offer has been received, without etc. to receive and can just be supplied to other after all files
Client in need, therefore can almost reach during an IM client transmissions files(I.e. file is not transferred also
Finish), the 2nd IM clients have begun to receive the technique effect of this document, therefore first whole file all must be sent relatively
To after certain server, could start to download as the 2nd IM clients of recipient, substantially increase file transmission efficiency.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained belongs to present invention protection
Scope.
For the clearer technical scheme for introducing the embodiment of the present invention, it is below in conjunction with the application embodiment of the present invention
Environment schematic is united to introduce the present invention for realizing the technical scheme of the embodiment of the method for transmission file in instant messaging.
Please referring initially to Fig. 1, it is using the system environments schematic diagram of the embodiment of the present invention.Include one in the system environment
An individual IM clients 110, multiple 2nd IM clients 120, and first server 130, second server the 140, the 3rd clothes
The business server 160 of device 150 and the 4th, they are all connected with internet.Fig. 2 is referred to, it is used for for one kind that the present invention is provided
Realize the implementing procedure figure of method first of transmission file in instant messaging.
Step 210:The configured information of user is received, the configured information indicates the first instant messaging IM clients by file
It is transferred at least one the 2nd IM clients.
Under many circumstances, an IM user has the demand that identical file is transferred to one or more IM users,
Instant messaging field is even more so.Can be that user is direct as at least one the 2nd IM clients of transmission file reception side
One or more the 2nd IM clients, or user of selection select certain customer group, because just being wrapped in a customer group
Include multiple 2nd IM clients.Or, can also be and both select some single 2nd IM clients as file reception side, and
Select one or several groups(Each group is comprising multiple 2nd IM clients)As the recipient of file.
In specific practical application, user indicates an IM clients that file is transferred at least one the 2nd IM clients
The mode at end has many kinds, and the embodiment of the present invention is not restricted to this, and two kinds of relatively common implementations are only given below
Example.
The first example, user is locally selecting a certain file, it is desirable to this document is transmitted by immediate communication tool
(It is referred to as " sharing ")To at least one user.Specifically, user is received first needs to be passed by immediate communication tool
The information of an IM clients is called in first configured information of defeated file, the first configured information triggering, is that the user carries
For can be used as the candidate information of the 2nd IM clients of the file reception side;Then the user is received to be believed according to the candidate
The second configured information that breath is given, second configured information indicates the file reception side described in of user's selection extremely
A few 2nd IM client.
It will be understood by those skilled in the art that product form, design are varied when implementing, therefore specific real
Now by which kind of mode, the first configured information for where receiving user, the second configured information, the embodiment of the present invention does not have
Limitation.As long as an IM clients can be allowed to know that user needs to transmit file by immediate communication tool, then by calling the
The information of one IM clients, provides a user with and can be allowed as the candidate information of the 2nd IM clients of file reception side
User is selected eventually as at least one the 2nd IM clients of recipient.Such as under the system environments of Fig. 1, Yong Huxuan
A certain file is selected, click right ejection right button menu, user chooses of right button menu(Such as it is a similar work(shared
Can button options), choose this to indicate that user needs to transmit this document by immediate communication tool;Then triggering calls first
The information of IM clients 110(If not starting an IM clients 110 also now, need first to start an IM clients
110, then can just call information therein), such as the information such as the good friend of user are recalled, allow user to select to wish file to transmit
Which good friend given(Such as user have selected one or more the 2nd IM clients 120).
Second example, a certain user has had been started up instant communication client program, during instant messaging, wishes
Hope and transmit identical file to one or more users.Specifically, the of user is received by an entrance of an IM clients
Three configured informations, the 3rd configured information instruction user file waiting for transmission;Receive the 4th configured information of user, described the
Four configured informations indicate at least one the 2nd IM clients as file reception side of user's selection.Need explanation
It is first to receive the 3rd configured information or first receive the 4th configured information to be, not restricted, can not according to actual conditions
Together, such as an IM clients open with the interactive window between some the 2nd IM client, or open and certain
Group(Including multiple 2nd IM ends)Interactive window, then have selected file waiting for transmission from certain entrance of the interactive window,
So just it is considered that an IM clients are desirable to for this document to be transferred to that the 2nd IM client that interactive window is related to
Or the multiple 2nd IM clients being related to.Such as under the system environments described in Fig. 1, user can first indicate to wish text
Which the 2nd IM client 120 part is transferred to, and which file hope transmission is then indicated again is;Transmission can also first be indicated
Which file, then indicate which the 2nd IM client 120 be transferred to.Similarly, it will be understood by those skilled in the art that specific
Product form when realizing, design varied, thus when implementing by which kind of mode, where receive the 3rd of user
Configured information and the 4th configured information, the embodiment of the present invention is not restricted.
Step 220:The file cutting is multiple file sections by the first IM clients, and the file of the file is cut
Piece is transferred to first server.
File waiting for transmission can be first transferred to a server by the first IM clients, and then the server also turns into one
The offer source of this document.For example under the system environments shown in Fig. 1, concrete implementation scheme can be:First IM clients 110
It is multiple file sections by file cutting waiting for transmission, the file section of this document is then transferred to first server successively
130, after first server 130 receives at least one complete file section, first server 130 can think the 2nd IM
Client 120 provides its file for having received and cuts into slices.
Step 230:File index from first IM clients to file described in described at least one the 2nd IM client transmissions
Information.
When implementing, in order to each recipient show oneself send file what is, and be easy to recipient from
The offer source of file obtains this document, and can first send file index to each recipient as an IM clients of sender believes
Breath.In the embodiment of the present invention, file can be split as multiple files are cut into slices before being transmitted, and the section of each file records MD5
Value, certainly whole file also records MD5 values, therefore the phase that the index information can cut into slices comprising file identification, file is inside the Pass
Some information such as appearance, MD5.
It should be noted that step 220 and step 230 are without strict sequencing, the present invention is not restricted to this.
Step 240:2nd IM clients according to the file index information, at least from IM clients and described
First server obtains the file section of the file.
For the system environments of Fig. 1, the embodiment of the present invention is not only from an IM clients 110 or only
130 are obtained from first server and obtain file, but obtained respectively from the two approach simultaneously, such as respectively from an IM clients
110 and first server 130 obtain the file section of this document different piece, therefore only obtain file from single channel relatively
For scheme, the efficiency of transmission of file is substantially increased.
Because an IM clients are the senders of this document, therefore, inherently one this document of an IM clients
Offer source, therefore, the 2nd IM clients can obtain the part file according to the index information from an IM clients
File section.For the system environments of Fig. 1, inherently one offer source of file of an IM clients 110, often
Individual 2nd IM clients 120 can obtain this document from an IM clients 110.In order to obtain efficiency of transmission faster, especially
It is several to belong to an Intranet as the 2nd IM clients 120 of recipient and an IM clients 110 when certain or certain
When, the efficiency that the file section of partial document is obtained from an IM clients 110 can be higher.
On the other hand, because an IM clients are also transmitted to first server 130 file, therefore first server
130 can also provide required file.When implementing, file index information can be received in the 2nd IM clients 120
Afterwards, inquiry is sent to first server 130 according to file index information, whether inquiry first server 130 can provide for it
Required file, which file section that first server 130 can provide this document for it in other words.If first server
130 can be provided, then the section of corresponding file can be just sent to the 2nd IM clients of inquiry.
It should be noted that in embodiments of the present invention, optionally, after an IM clients 110 cut into slices file, by text
Part section is sent to first server 130 successively, therefore, the 2nd IM clients 120 need not wait an IM clients 110 by text
Part is all transferred to after first server 130, and the content of this document could be obtained from first server.In other words, second
IM clients 120 are after first server 130 receives at least one complete file section, it is possible to start from first service
Device 130 obtains the file section of its this document for having been received from an IM clients 110.
And be all that sender does not carry out slicing treatment to file waiting for transmission in the prior art, directly will be without cutting
File be transferred to shared server(Such as it is transferred in certain group of communal spaces), therefore each recipient must wait sender to incite somebody to action
File can just proceed by download after being all transferred to shared server.It can be seen that, inventive embodiments are by before file is transmitted
First file is cut into slices, sender, to the technical scheme of server, has been reached to service using transmission file section successively
Device transmits file(File is cut into slices)During, recipient also can synchronously download from a server file(File is cut into slices)Technology
Effect, compared with the prior art for, improve the efficiency transmitted by transit server file in instant messaging.
Efficiency of transmission in order to better improve, each the 2nd IM client can respectively from an IM clients 110 and
One server 130 obtains the content of file different piece, that is, obtain different file sections.Such as, the 2nd IM clients 120 can
Cut into slices with obtaining a file from first server 130(Such as the 1-5 file section), and obtained from an IM clients 110
Obtain file section a in addition(Such as the 6-10 file section).
When an IM clients 110 transmit file to the 2nd IM clients 120(An IM clients 110 are to institute in other words
State the transmission file index information of the 2nd IM clients 120)When, the 2nd IM clients may not process off-line state online.That
In this case, after the 2nd IM clients are reached the standard grade, check whether an IM clients are current online;If
Line, then the 2nd IM clients according to the file index information respectively from an IM clients and the first service
Device obtains the file section of the file.Specifically, the 2nd IM clients 120 are respectively to an IM clients 110 and first
Server 130 sends the request for obtaining file, and which file section needs acquisition is, then an IM clients 110
With first server 130 according to the request of the 2nd IM clients 120, corresponding file section is sent to.
Optionally, in the embodiment of the present invention the 2nd IM clients 120 except can be from IM clients 110 and the first clothes
Business device 130 is obtained outside the file section of required file, can also be gone back in the following manner:
(1)Other servers that 2nd IM clients 120 have the file from network side obtain the file.Because such as
The file of fruit transmission is common file, then may also have in network side can download this document, such as Fig. 1 on other servers
In the 3rd server 150 and the 4th server 160 etc..When implementing, can be by an instant communication server by many
The means of kind collect the download address of some common files, and then during certain the 2nd IM client 120 certain file of needs, can be according to text
Part index information also has which server can provide the download of this document to instant communication server inquiry, if IMU
Inquiry server can be inquired, then the relevant information such as download address that will be inquired returns to the 2nd IM clients 120, and then second
The server that IM clients 120 can just be pointed to from these download address goes to obtain the file.
(2)If the 2nd IM clients 120 are multiple, these the 2nd IM clients 120 can also be interacted each other
File section needed for each.2nd IM clients 120 circulate a notice of the receive information of file section each to the file, and
Know the receive information of the file section of other 120 pairs of files of the 2nd IM clients;2nd IM clients 120 are according to each
It is interactively with each other each required from the receive information that the file of other known 120 pairs of files of the 2nd IM clients is cut into slices
The file file section.There are various ways when implementing, such as, the 2nd IM clients 120 are to second server
The receive information that 140 circulars are each cut into slices to the file of the file;Each 2nd IM clients 120 are according to the second service
The summary information that device is issued, knows the reception condition of the file section of other 120 pairs of files of the 2nd IM clients.
Such as message is carried out by a server to collect.Specifically, such as pass through under the system environments shown in Fig. 1
Step 230 causes that some the 2nd IM clients 120 have been obtained for partial document section, and then these IM clients 120 are just
To the receive information that second server 140 is circulated a notice of each to cut into slices the file of the file, such as circulate a notice of oneself received
To which file section of this document;Then second server 140 just enters to the receive information that each 2nd IM clients are reported
Row collects(Such as currently have which the 2nd IM client 120 is receiving this document, have received respectively for which file section),
Summary information is handed down to each 2nd IM clients by second server 140 again so that the 2nd IM clients are according to second server
140 summary informations for issuing, it is possible to know the reception feelings of the file section of other 120 pairs of files of the 2nd IM clients
Condition.Such as some the 2nd IM client 120 is known that other a 2nd IM client 120 has been received that this document
The section of the 5th file, also one the 2nd IM client 120 has been received that the 6-9 file is cut into slices.For total
It, is equivalent to each 2nd IM clients both know about which the file section for having been received that this document each other.
Because each the 2nd IM client 120 has known that other the 2nd IM clients 120 have received this document
Which file section, then, these the 2nd IM clients 120 each other just can be by connection, the text needed for interaction each
Part is cut into slices.Such as, the 1-5 file that first the 2nd IM client 120 has received file from first server 130 is cut
Piece, in addition it is also necessary to which the 6-10 file section of this document obtains all files, and knows second the 2nd IM client 120
Received the 6-8 file to this document is cut into slices, and the 3rd the 2nd IM client 120 has been received by the 9-10 of this document
The section of individual file, then first the 2nd IM client 120 just can respectively with second IM client 120, the 3rd IM
Client 120 sets up connection, the 6-8 file section is obtained from second the 2nd IM client 120, from the 3rd IM client
120 obtain the 9-10 file section.Final first the 2nd IM client 120 is respectively from first server 130, second
2nd IM clients 120, more than 120 approach of the 3rd IM client obtain the full content of this document.Other the 2nd IM visitors
Family end is also by that analogy, both oneself can be obtained from other 2nd IM clients 120 equivalent to each the 2nd IM client 120
Required file section, or other 2nd IM clients provide the file section for oneself having received.
Optionally, file transmission efficiency in order to better improve, can not only provide file each in file index information
The information of section, can also provide suggestion or instruction-indicate each the 2nd IM client should preferentially from an IM clients
Or first server obtains the section of which part.Preferably, different 2nd IM clients initially from an IM clients or
The file section that first server is obtained is different, i.e., each client is initially obtained from an IM clients or first server
The file section of file different piece.Such as, initial user first is indicated(One of 2nd IM clients)From an IM clients or
First server obtains the section of 1-3 files;Indicate initial user second(Another the 2nd IM client)From an IM client
End or first server obtain the section of 4-6 files;Indicate initial user third(Another the 2nd IM client)From an IM
Client or first server obtain the section of 7-10 files;Etc., the rest may be inferred, sum it up, initially each 2nd IM visitors
Family end from file provide source obtain be this document different piece file section.So be conducive to follow-up each 2nd IM clients
It is interactively with each other.Specifically, subsequent user first can just obtain the 4-6 files section of this document from user's second, from user
The third 7-10 files section for obtaining this document;Similarly, the 1-3 files that user's second can obtain this document from user's first are cut
Piece, the 7-10 files section of this document is obtained from user third;The 1-3 files that user third obtains this document from user's first are cut
Piece, the 4-6 files section of this document is obtained from user's second.As can be seen here, in this case, each 2nd IM clients are very
The good file section for realizing each other needed for interaction each.
Certainly, if it will be understood by those skilled in the art that not indicating each 2nd IM clients carrying from file initially
The file section that supply source obtains different piece is also feasible, due to different, the required text of each 2nd IM client downloads speed
Part section is likely to different, override requests download file section and is likely to difference, so follow-up each 2nd IM clients are at certain
The file section that the individual moment obtains also is also in most cases what is be not quite similar, therefore also can be interactively with each other each required.
It should be noted that while each 2nd IM clients interact file mutually desired and cut into slices, can be with
Continue the file section needed for being obtained from first server or an IM clients, that is to say, that from first server and first
It can be a lasting process that IM clients obtain file section, in certain stage, can be with each 2nd IM clients each other
Interact executed in parallel.That is, each 2nd IM clients can simultaneously by some each approach(First IM clients, the first clothes
Business device, other servers or other the 2nd IM clients)File section needed for obtaining oneself, as long as obtained from different approaches
Obtain the file section of different piece, then the complementary effect of a plurality of approach can be just reached, so as to reach efficiency of transmission higher.
It is of course also possible to certain the 2nd IM client is when needing last file for obtaining file to cut into slices, because uncertain logical
Cross which approach is obtained faster, and obtained without other files section needs, it is possible that simultaneously by multiple approach
This document section is asked for, to ensure most to obtain last file section soon.So, in most cases, in order to ensure most
Fast file transfer rate, the embodiment of the present invention is different to the file section obtained from different approaches, but is also not excluded for individual
In the case of not same file section is obtained from different approaches.
It is corresponding with preceding method embodiment, the invention also discloses a kind of dress for transmitting file in instant messaging
Put, refer to Fig. 3, a kind of its device embodiment schematic diagram for transmitting file in instant messaging provided for the present invention.
Specifically, the system includes indicating member 310, cutting unit 320, the file of indexing units 330 and first
Obtaining unit 340.Wherein, indicating member 310 is used to receive the configured information of user, and the configured information indicates the first IMU
File is transferred at least one the 2nd IM clients by news IM clients;Cutting unit 320, will for an IM clients
The file cutting is multiple file sections, and the file section of the file is transferred into first server successively;Index List
Unit 330, believes for an IM clients to the file index of file described in described at least one the 2nd IM client transmissions
Breath;First file obtaining unit 340, for the 2nd IM clients according to the file index information, at least from described
One IM clients and the first server obtain the file section of the file.
Optionally, when described at least one the 2nd IM clients are for multiple, the device of the present embodiment also includes:
Communication unit, for the reception that the 2nd IM clients circular is each cut into slices to the file of the file
Information, and know receive information of other described 2nd IM clients to the file section of the file.Optionally, information is led to
The implementation of declaration form unit has various, such as communication unit is specifically included:Self information circulates a notice of unit, for described second
The receive information that IM clients are each cut into slices to second server circular to the file of the file;Other client-side informations are obtained
Know unit, for the summary information that the 2nd IM clients are issued according to the second server, know other the 2nd IM visitors
Reception condition of the family end to the file section of the file.
Second file obtaining unit, for the 2nd IM clients according to the IM clients pair of other each known the 2nd
The receive information of the file section of the file, the file section of each required file interactively with each other.
Optionally, the system of the embodiment of the present invention can also include:3rd file obtaining unit, for the 2nd IM visitors
Other servers that family end has the file from network side obtain the file.
Optionally, the first file obtaining unit 340 can include that off-line files obtain subelement, if specifically for
The first IM clients are to during file index information, the 2nd IM clients are in described in the 2nd IM client transmissions
Off-line state, then after the 2nd IM clients are reached the standard grade, check whether an IM clients are current online;If
Line, then the 2nd IM clients according to the file index information at least from an IM clients and the server point
The file section of the file is not obtained.It is additionally may included in line file and obtains subelement, if specifically for an IM
To described in the 2nd IM client transmissions during file index information, the 2nd IM clients are in presence to client,
The 2nd IM clients are at least obtained respectively according to the file index information from an IM clients and the server
Obtain the file section of the file.
Optionally, the first file obtaining unit 340 includes that server file obtains subelement, for the 2nd IM
Client is obtained after the first server receives at least one complete file section from the first server
The file section of the file that the first server has been received by.Can also include that IM client files obtain subelement,
For according to file index information, the file section of file being obtained from an IM clients.
Optionally, the first file obtaining unit 340, specifically for the 2nd IM clients according to the file rope
Fuse is ceased, and the file section of the file different piece is at least obtained from an IM clients and the first server.
Optionally, the indicating member 310 can include:First indicating member, needs by instant for receiving user
Communication tool transmits the first configured information of file;Triggering call unit, for being touched when first configured information is received
Hair calls the information of an IM clients, for the user provides can be used as the time of the 2nd IM clients of the file reception side
Select information;Recipient's indicating member, it is described for receiving the second configured information that the user provides according to the candidate information
Second configured information indicates at least one the 2nd IM clients of file reception side described in of user's selection.
Or, the indicating member 310 is specifically included:3rd indicating member, for entering by the one of an IM clients
Mouth receives the 3rd configured information of user, the 3rd configured information instruction user file waiting for transmission;4th indicating member, uses
In the 4th configured information for receiving user, the 4th configured information indicate user's selection as file reception side extremely
A few 2nd IM client.
Be can be seen that for relatively existing IM files transmit by the description of previous embodiments, the embodiment of the present invention
There are many beneficial effects:
Because the IM clients as sender are before file to be transmitted is sent, can be first by file cutting to be transmitted
It is the section of multiple files, and is sent in first server, therefore first server is waiting receives a complete file section
Just can be afterwards the 2nd IM clients(Either one or multiple)Offer received file section, without etc. receive
Other clients in need can be just supplied to after all files, therefore can almost be reached in an IM client transmissions files
During(I.e. file is also without end of transmission), the 2nd IM clients have begun to receive the technique effect of this document, therefore phase
To it whole file first must be all sent to certain server after, could start to download as the 2nd IM clients of recipient,
Substantially increase file transmission efficiency.IM clients as sender are additionally, since by the file rope of file to be transmitted
Fuse breath is sent to recipient-i.e. at least one the 2nd IM clients of user's instruction so that the 2nd IM clients can basis
On the one hand index information obtains required file section from first server, on the other hand can also be obtained from an IM clients
Required file section, therefore no matter recipient is one, or it is multiple, all substantially increase and only individually obtained from a file source
Obtain the efficiency of file.
Further, because the embodiment of the present invention is that file index information is issued the 2nd IM clients as recipient
(Can be multiple), rather than directly file is transferred in the shared server of certain group, therefore, recipient is not limited to certain
The user of customer group, and can be the multiple users for being not belonging to same customer group, therefore when recipient is for multiple, the present invention is real
The recipient for applying example is not limited by customer group, can be any number of IM users.
Further, if in the case that the 2nd IM clients of recipient are multiple, divided in multiple 2nd IM clients
Do not receive after branch file section, can be cut into slices with each required file interactively with each other, it is every rather than picture prior art
Individual 2nd IM clients can only respectively download file from shared server, and same text is transmitted to multiple users so reaching and improve
Part(Mass-sending file)Efficiency of transmission, if the 2nd IM clients especially as recipient are more, it is possible to from more
Two IM clients obtain different file parts respectively, and then the advantage of efficiency of transmission is more obvious.
Further, the 2nd IM clients for serving not only as recipient can be obtained from first server, an IM clients
Required file section, and between each 2nd IM clients can with it is interactively with each other each needed for file cut into slices, can be with
Partial document is obtained from other servers that network side has this document, so as to further improve file transfer rate.
Sum it up, when an IM clients are needed to one or more the 2nd IM client transmissions files, the 2nd IM clients can
With by number of ways, the offer source from multiple files(Such as other the 2nd IM clients, first server, other network services
Device, an IM clients etc.)The parallel different piece for obtaining file, can finally obtain all texts within the relatively short time
Part, substantially increases the efficiency of transmission for transmitting identical file in instant messaging to multiple users.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence
On the part that is contributed to prior art in other words can be embodied in the form of software product, the computer software product
Can store in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used to so that a computer equipment
(Can be personal computer, server, or network equipment etc.)Perform some of each embodiment of the invention or embodiment
Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for device or
For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct
Separating component explanation unit can be or may not be it is physically separate, the part shown as unit can be or
Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be with root
Some or all of module therein is factually selected the need for border to realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
Above to a kind of method and device for transmitting file in instant messaging provided by the present invention, carry out in detail
Introduce, specific case used herein is set forth to principle of the invention and implementation method, the explanation of above example
It is only intended to help and understands the method for the present invention and its core concept;Simultaneously for those of ordinary skill in the art, according to this
The thought of invention, in specific embodiments and applications
Will change.In sum, this specification content should not be construed as limiting the invention.