CN103457825A - Method, device and system for achieving instant message communication - Google Patents

Method, device and system for achieving instant message communication Download PDF

Info

Publication number
CN103457825A
CN103457825A CN2012101767473A CN201210176747A CN103457825A CN 103457825 A CN103457825 A CN 103457825A CN 2012101767473 A CN2012101767473 A CN 2012101767473A CN 201210176747 A CN201210176747 A CN 201210176747A CN 103457825 A CN103457825 A CN 103457825A
Authority
CN
China
Prior art keywords
picture
client
format information
send
information district
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012101767473A
Other languages
Chinese (zh)
Inventor
石冬雪
徐长久
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2012101767473A priority Critical patent/CN103457825A/en
Publication of CN103457825A publication Critical patent/CN103457825A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a method, device and system for achieving instant message communication. The method comprises the steps of receiving an IM, wherein the IM comprises a pictorial information area, a text area and a format information area, and the pictorial information of the pictorial information area comprises picture signs; showing the texts of the text area according to the format information of the format information area; judging whether pictures marked by the picture signs need to be acquired or not, and if the pictures need to be acquired, the pictures are acquired from the sending end of the IM according to the picture signs, and the pictures are shown according to the format information of the format information area. According to the method, device and system for achieving the instant message communication, the IM is divided into the pictorial information area, the text area and the format information area, an IM receiving client-side is made to selectively receive and show the content of different parts according to terminal capacity, user will and the like, network flow is greatly saved, and the showing speed of the IM is improved.

Description

Realize the methods, devices and systems of instant messaging
Technical field
The embodiment of the present invention relates to network communication field, and more specifically, relates to a kind of methods, devices and systems of realizing instant messaging.
Background technology
In instant messaging, instant message (IM, instant message) be no longer simple word, present instant message content is more and more abundanter, can in instant message, insert word, picture, emoticon etc., can also the word of instant message be formatd, as, overstriking, the size that sets font or font type etc.
In actual applications, flow and time that image content in transmission and displaying IM consumes will be far longer than transmission and show flow and the time that the content of text in instant message consumes, in the prior art, be used for describing the form of the IM that comprises text and picture (as rich text form (RTF, Rich Text Format)) dissimilar content is not distinguished, yet content is not reached and distinguished for the format information of showing content, when realizing, the IM that will comprise often text and picture transmits and whole the displaying as a whole, thereby it is slower with the speed of showing IM to cause IM to receive client, the user experiences bad.
Summary of the invention
The embodiment of the present invention provides a kind of method that realizes instant messaging, for promoting transmission and the speed of showing IM, promotes the user and experiences.
On the one hand, provide a kind of method that realizes instant messaging, described method comprises:
IM receives client IM, and described IM comprises pictorial information district, text area and format information district, and the pictorial information in described pictorial information district comprises picture identification;
Described IM receives client and shows the text of described text area according to the format information in described format information district;
Described IM receives client and judges whether to obtain the picture that described picture identification identifies, and if the judgment is Yes, obtains described picture according to described picture identification to the transmitting terminal of described IM, and shows described picture according to the format information in described format information district.
On the other hand, provide a kind of method that realizes instant messaging, described method comprises:
IM receives client IM, and described IM comprises pictorial information district, text area and format information district, and the pictorial information in described pictorial information district comprises picture identification;
Described IM receives client and judges whether to obtain the picture that described picture identification identifies;
If the judgment is Yes, obtain described picture according to described picture identification to the transmitting terminal of described IM, and show text and the described picture of described text area according to the format information in described format information district;
If the judgment is No, the text of showing described text area according to the format information in described format information district.
On the other hand, provide a kind of method that realizes instant messaging, described method comprises:
Generate IM and receive client to IM and send described IM, described IM comprises pictorial information district, text area and format information district, so that described IM receives the content that client is showed described text area according to the format information in described format information district, the pictorial information in described pictorial information district comprises picture identification;
Receive described IM and receive client for obtaining the request of described picture, described request comprises described picture identification;
Receive client to described IM and send described picture, so that described IM client is showed described picture according to the format information in described format information district.
On the other hand, provide a kind of device of instant messaging, described device comprises:
The IM receiving element, for receiving IM, described IM comprises pictorial information district, text area and format information district, the pictorial information in described pictorial information district comprises picture identification;
Judging unit, will obtain for judging whether the picture that described picture identification identifies;
The picture acquiring unit, if judgment result is that of described judging unit be, for according to described picture identification, to the transmitting terminal of described IM, obtaining described picture;
Display unit, show the text of described text area for the format information according to described format information district, if acquiring unit has obtained described picture, also for the format information according to described format information district, show described picture.
On the other hand, provide a kind of device of instant messaging, described device comprises:
The IM transmitting element, send described IM for generating IM and receiving client to IM, described IM comprises pictorial information district, text area and format information district, so that described IM receives the content that client is showed described text area according to the format information in described format information district, the pictorial information in described pictorial information district comprises picture identification;
The picture request reception unit, for receive described IM receive client judge obtain after the picture that described picture identification identifies send for obtaining the request of described picture, described request comprises described picture identification;
The picture transmitting element, send described picture for to described IM, receiving client, so that described IM client is showed described picture according to the format information in described format information district.
On the other hand, proposed a kind of system that realizes instant messaging, described system comprises:
The IM dispensing device, for generating IM and sending described IM to the IM server, described IM comprises pictorial information district, text area and format information district, the pictorial information in described pictorial information district comprises picture identification;
The IM server, the IM sent for receiving described IM dispensing device, and forward described IM to the IM receiving system.
The IM receiving system, for receiving described IM, show the text of described text area according to the format information in described format information district; Also for judging whether, will obtain the picture that described picture identification identifies, be also for according to described picture identification, to described IM dispensing device, obtaining described picture, and to show described picture according to the format information in described format information district if judgment result is that.
In embodiments of the present invention, the IM sent comprises the pictorial information district, text area and format information district, the Zhe Sange district is respectively for describing separately pictorial information, text and format information, being convenient to IM reception client resolves respectively the information in each district and shows the content of carrying in described IM, and, what in this IM, carry is descriptor rather than the picture itself of picture, so that receiving client, can just obtain and show this picture judging need to obtain this picture the time IM, thereby having saved IM receives client and shows flow and the time that the content of described IM consumes.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow schematic diagram of the embodiment of the present invention 1;
Fig. 2 is the IM content example of the embodiment of the present invention 1;
Fig. 3-1 and 3-2 are the design sketchs of the displaying IM content of text of the embodiment of the present invention 1;
Fig. 4-1 and 4-2 are the method flow diagrams of the example embodiment 1 of the embodiment of the present invention 1;
Fig. 5 is the method flow diagram of the example embodiment 2 of the embodiment of the present invention 1;
Fig. 6 is the apparatus structure schematic diagram of the embodiment of the present invention 2;
Fig. 7 is the apparatus structure schematic diagram of the embodiment of the present invention 3;
Fig. 8 is the system configuration schematic diagram of the embodiment of the present invention 4 and 5.
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 clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Fig. 1 is a kind of method flow schematic diagram of realizing instant messaging that the embodiment of the present invention 1 provides.
As shown in Figure 1, method 100 comprises:
110: receive IM, described IM comprises pictorial information district, text area and format information district;
The pictorial information in described pictorial information district, for describing corresponding picture, specifically comprise the sign of picture, can also comprise the title of picture, the description of picture etc., and the sign of described picture is for the described picture of unique identification.What described text area recorded is content of text.What the format information in format information district was described is the format information of text exhibition and picture, can also comprise the format information of showing the icon class contents such as emoticon.
The long form example of described IM is as shown in table 1, can comprise recipient's account, sender's account, type of message, message body, can also comprise sender's name, transmitting time.Described type of message is chat, shows that this message is instant message; What described body element was deposited is message body.
Table 1
Further, the message body that the body element in table 1 is deposited specifically is comprised of three parts: pictorial information district, text area and format information district, example is as shown in table 2.
Table 2
In example as described in Table 2, described picture region is meaned by idlist (picture identification list), comprises the sign of at least one picture.
In this example, what described formats element was described is the format information district, comprise for describing the format information of text exhibition, picture, wherein, the form of text exhibition is exemplified below: with comma, distinguish, be followed successively by: length, font type, font size, inclination/non-inclination (are defaulted as non-inclination, can economize), the RGB color (is defaulted as black, can economize), underscore/non-underscore (can economize, be defaulted as non-underscore), if partial parameters is default, default parameter omission method is to economize forward from finally starting.It should be noted that, the item element under formats specifically can be for describing the form of text, picture and icon, and wherein the type attribute of item element is for meaning the type of the described content of this item, as text, picture, icon etc.
Elaborate the form of this IM by a concrete example below in conjunction with Fig. 2 and table 3.
Table 3
IM as shown in Figure 2, be the IM that comprises picture, word and expression, wherein, the font of " happy " is increased to No. two, and an additional heart shape diagram, can express the happy sensation while arriving red-letter day well; Heartily~~~" become tiltedly, seem very aughty; It is finally smiling face's emoticon.
IM form shown in table 3 is for describing the described IM of Fig. 2, and wherein, what picture region was deposited is the descriptor of the picture in Fig. 2, only take in this example picture identification as example,
Pic2012031510280000.gif; What text area was deposited is word content, as " happy holiday heartily~~~"; What deposited in the format information district is the format information of text, picture and icon (take emoticon as example), wherein, particular location in word provides picture identification or icon sign, with indication, shows that in this position picture or icon that this picture identification is corresponding identify corresponding icon.
120: the text of showing described text area according to the format information in described format information district;
If this IM comprises icon, can also show described icon according to the format information in described format information district.
The IM format description of take in IM in Fig. 2 and corresponding table 3 thereof is example, and the bandwagon effect example as shown in Figure 3.
Preferably, position that can be corresponding at picture reserves corresponding vacancy, vacant locations can be showed default icon (as a smiling face, a local scenery picture of storing, indication information etc.), means that there is a picture to be obtained this position, and the bandwagon effect example is as shown in Fig. 3-2.
The IM format description of take in table 3 is example, resolves the displaying process as follows:
At first the format information of the reading format information area<item type=text > 4, the Song typeface, little by four, non-inclination</item >, type=text represents that this part is the format information of text, gets 4 bytes in text area, i.e. " red-letter day ", adopt the Song typeface, little by four, non-inclination mode is played up; Read<item type=text > 4, the Song typeface, No. two, non-inclination, RGB (255,0,0)</item >, type=text represents that this part is is also the format information of text, gets 4 the subsequent bytes in text area, i.e. " happy ", adopt the Song typeface, No. two, non-inclination, red mode is played up; Read<item type=picture > 1</item >, type=picture represents that this part is the format information of picture, can on interface, leave a blank and lacks and use a default picture to replace; Read<item type=text > 7, the Song typeface, little by four, tilt, RGB (0,0,255)</item >, down read again 7 bytes from text area, " heartily~~~", by the Song typeface, little by four, tilt, blue mode is played up; Read<item type=icon > 1</item >, find the emoticon that reference numbers is 1 from local emoticon, draw.
130: judge whether to obtain picture
Can be specifically, judge whether to obtain the picture in this IM according to the type of the terminal that receives this IM, as, mobile terminal, do not obtain this picture if, otherwise obtain this picture.
Can also be specifically, according to the operation indication, judge whether to obtain this picture, as, if the user carries out the operation (as clicked " click Shows Picture " of the picture vacant locations as shown in Fig. 3-2) of obtaining this picture, receive the operation indication of obtaining described picture, obtain this picture, otherwise do not obtain this picture.
Can also be specifically, judge whether to obtain this picture according to terminal type and operation indication, as, if this terminal is non-moving terminal, perhaps this terminal is mobile terminal and receives the operation indication of obtaining described picture, obtains this picture, otherwise does not obtain this picture.
In addition, can also judge whether according to the ability information of this terminal to obtain this picture, whether support form of this picture etc. as this terminal.
It should be noted that, described IM can comprise a plurality of pictures, and described operation indication can be used to indicate obtains one or more in described a plurality of picture.
In the situation that judgment result is that of step 130 is to perform step 140.
140: the transmitting terminal to described IM obtains the picture that described picture identification identifies;
Be specifically as follows, transmitting terminal to described IM sends the request of obtaining described picture, described request comprises described picture identification (pic2012031510280000.gif as shown in table 3), then receives the picture that described picture identification that described transmitting terminal sends identifies.
150: according to the format information in described format information district, show described picture
After receiving described picture, according to the format information in described format information district, show described picture.Bandwagon effect as shown in Figure 2.
Preferably, if in step 120 at picture corresponding position showed default icon, with the picture that obtains, replace the default icon of vacant locations.
It should be noted that, described step 120 can be in step 130,140,150 before or after arbitrary step, alternatively, described step 120 can first not carried out, but carry out with step 150 simultaneously, that is, first do not show the text of described text area, but show described text and described picture after obtaining described picture simultaneously.
The text in first text exhibition district show again described picture after getting described picture preferably, the delay that can make text show is less, further promotes the user and experiences.
It should be noted that, while according to the format information in described format information district, the IM content being showed in step 120 and step 150, if local without playing up material accordingly, could be by showing without rendering effect.The described material of playing up comprises that material played up in word and icon (take emoticon as example) is played up material.Whether the word rendering intent comprises: adopt which kind of character script material, font size, whether overstriking, become tiltedly, whether underline font color.Which kind of expression picture material the expression rendering intent for adopting shown.Wherein, when expression is played up material and used for the first time by terminal, from the IM system downloads, be stored in this locality, and record the information that described expression is played up material, comprising: expression ID, expression are described, expression escape character, expression picture etc.When receiving IM, according to the expression ID in IM, retrieve local expression picture material, find corresponding expression picture to be played up the IM received.When the expression material of IM system is upgraded, the terminal automatic synchronization obtains up-to-date material.
Along with popularizing of smart mobile phone, in instant messaging, the type of terminal expands to the multiple mobile terminals such as mobile phone, iPAD by the PC in past, IM as mobile terminal receives client, in order to save flow or to show fast IM, often wish first to receive word, then obtain selectively and exhibiting pictures according to user intention or terminal capability etc.In the IM of prior art formal definition, can not distinguish the exhibition method of dissimilar content and content and content, but utilize RTF stream directly to transmit all the elements of whole IM the described IM of disposable displaying, there is no the distinguishing terminal type yet, characteristics divide level display different contents selectively according to self bandwidth is low etc. to be not easy to mobile terminal, thereby be unfavorable for the client high-speed receiving and show IM, when the picture especially comprised as IM is larger, the experience meeting of mobile phone users is poorer.In the embodiment of the present invention, in the IM of transmission, do not carry picture itself, but the descriptor of the picture carried, IM receives client and determines whether to obtain picture by judgement terminal type, terminal capability, user intention, can avoid downloading and can't show or user unwanted image content, thereby saving network flow is also showed the IM received as soon as possible.
Simultaneously, what instant messaging was more focused on is the instantaneity of instant messaging, the picture carried in IM is mainly used for strengthening user's visual experience effect, adopt the present embodiment only to receive and to show the text in IM so that IM receives client, and just obtain and exhibiting pictures, thereby guarantee to greatest extent the instantaneity of communicating by letter when the user carries out the operation of obtaining picture.
When specific implementation, in step 110, can be to obtain from the IM server the described IM that described IM server generates, can be also to send client from IM to obtain the described IM that described IM sends the client generation, correspondingly, in step 140, can be to obtain described picture from the IM server, can be also to send client from IM to obtain described picture.
Below elaborate above-mentioned two kinds of concrete example embodiment in conjunction with Fig. 3 (comprising Fig. 3-1 and 3-2) and Fig. 4 respectively.
Example embodiment 1, IM sends client and generates the IM that comprises pictorial information district, text area, format information district and send to IM to receive client by the IM server, the pictorial information in described pictorial information district comprises picture identification, and described IM receives client and judges and need to obtain picture and according to described picture identification, to described IM, send client and obtain the picture that described picture identification identifies and show described picture.
Generate IM 210.IM send client, and send to IM server, described IM to comprise pictorial information district, text area and format information district.
Particularly, described IM sends client and picture can be preserved or is buffered in this locality, generating pictures information, and record described pictorial information in the pictorial information district of described IM, described pictorial information comprises picture identification.
Described IM sends handling process that client generates IM and send to the IM server as shown in Figure 5.
Step 211. receives the operation that the user edits the IM content, can comprise editor word, additional pictures, selection emoticon, the operation such as form is set;
Step 212. is preserved picture that will be additional, generating pictures information;
Described pictorial information comprises picture identification, as pic2012031510280000.gif.
Step 213. generates IM, and described IM comprises text area, pictorial information district and format information district;
Described pictorial information district comprises described pictorial information, and described text area comprises editor's word, and described format information district comprises the format information of setting, as shown in table 3.
Step 214. sends described IM to the IM server.
220. described IM server receives client to IM and forwards described IM.
Preferably, described IM server extract described IM text area text and preserve, the text of described preservation can be for follow-up audit.
Owing to utilizing independent text area to carry text in described IM, described IM server can extract the text that described IM comprises easily from described IM.IM as shown in table 3, " happy holiday heartily~~~" that directly extract text area preserves and gets final product.
For the ease of the instant message content is audited, the IM server need to be preserved the instant message content of transmission, in the prior art, often by rich text format, the IM that comprises text and picture is described, in the definition of rich text format, dissimilar content is not distinguished, yet content is not reached and distinguished for the format information of showing content, therefore, in the prior art, the IM server often directly preserves the RTF binary stream, thereby caused preserving a lot to the useless picture of auditing, expression, formatted message, take up room large, and, because RTF is binary stream, also needing specific purpose tool to decode in advance to reduce to field contents just can check, cause audit inconvenience.According to the embodiment of the present invention, because the IM sent comprises pictorial information district, text area and format information district, the Zhe Sange district is respectively for describing separately pictorial information, text and format information, be convenient to the text that the IM server only extracts text area and preserved, effectively alleviated the storage pressure of server.
Show the text of described text area according to the format information in described format information district 230.IM receive client.
Specific implementation is as described in step 120.
240.IM receiving client judges whether to obtain picture;
Specific implementation is as described in step 130.
Obtain picture 250.IM receive client according to picture identification;
Specific implementation is as described in step 140.
Preferably, before step 250, described IM reception client is obtained IP address and the port numbers that the described IM of operation sends the terminal of client, and described IP address and port numbers are for sending picture corresponding to pictorial information that client is obtained the IM of described IM client transmission to described IM.Can be specifically, obtain described IP address and port numbers by the IM server, the preferred exemplary execution mode is as follows: IM sends client and sends IP address and port numbers to the IM server, can be specifically to carry described IP address and port numbers by log messages, the topology example of described log messages be as shown in table 4; Described IM server receive described IP address and the backward IM client that meets specified conditions of port numbers (as, IM sender's good friend's IM client) issue described IP address and port numbers, particularly, can be to give out information and issue described IP address and port numbers by resource, the topology example that described resource gives out information be as shown in table 5.
Figure BDA00001712553500121
Table 4
Figure BDA00001712553500122
Figure BDA00001712553500131
Table 5
Correspondingly, in step 250, described IM receives client and sends to described IM the request that described picture is obtained in the client transmission by described IP address and port numbers.
260. receiving client, described IM shows described picture according to the format information in described format information district.
Specific implementation is as described in step 150.
By example embodiment 1, IM sends client without in the IM sending, carrying picture, only when IM receives client and obtains this picture, just to this IM, receive client and send picture, effectively saved network traffics and the IM that IM sends between client and IM server and received the flow between client and IM server.
Example embodiment 2, IM sends the client generation and comprises an IM in picture region, text area, format information district and send to the IM server, the IM server preserves generating pictures information by the picture in a described IM, and a described IM picture region is replaced with to the pictorial information district that comprises pictorial information generate the 2nd IM, and sending to IM to receive client described the 2nd IM, described IM receives client and judges and need to obtain picture and according to the pictorial information in described pictorial information district, to described IM server, obtain described picture and show described picture.
310.IM sending the client generation comprises an IM in picture region, text area, format information district and sends to the IM server;
What described IM picture region carried is picture itself.
The structure description in described text area, format information district and example are referring to step 110.
320.IM server preserves generating pictures information by the picture in a described IM, and the picture region in a described IM is replaced with to the pictorial information district that comprises pictorial information, generates the 2nd IM, described pictorial information comprises picture identification.
Preferably, described IM server extract a described IM text area text and preserve, the text of described preservation can be for follow-up audit.
Owing in a described IM, utilizing independent text area to carry text, described IM server can extract the text that a described IM comprises easily from a described IM.
330. described IM server receives client to IM and sends described the 2nd IM;
340. receiving client, described IM shows the text of described text area according to the format information in the format information district in the 2nd IM;
Specific implementation is as described in step 120.
350. described IM receives client and judges whether to obtain picture;
Specific implementation is as described in step 130.
360. described IM receives the client and obtains picture according to picture identification to the IM server;
Specific implementation is as described in step 140.
370. show described picture according to the format information in described format information district
Specific implementation is as described in step 150.
By example embodiment 2, the IM server is without in the IM receive the client transmission to IM, carrying picture, send picture and only when IM reception client is obtained this picture, just to this IM, receive client, effectively saved IM server and IM and received the data traffic between client.
According to the embodiment of the present invention 1, the embodiment of the present invention 2 has proposed a kind of device of realizing instant messaging.
As shown in Figure 6, describedly realize that the device 200 of instant messaging can comprise:
IM receiving element 1010, for receiving IM, described IM comprises pictorial information district, text area and format information district;
The pictorial information in described pictorial information district, for describing corresponding picture, specifically comprise the sign of picture, can also comprise the title of picture, the description of picture etc., and the sign of described picture is for the described picture of unique identification.What described text area recorded is content of text.What the format information in format information district was described is the format information of text exhibition and picture, can also comprise the format information of showing the icon class contents such as emoticon.
Judging unit 1020, for judging whether to obtain the picture corresponding to pictorial information in described pictorial information district;
Picture acquiring unit 1030, if judgment result is that of described judging unit be, for according to described pictorial information, to the transmitting terminal of described IM, obtaining described picture; Be specifically as follows, send the request of obtaining described picture to the transmitting terminal of described IM, described request comprises described picture identification, and receives the picture that described picture identification that described transmitting terminal sends identifies.
Display unit 1040, show the text of described text area for the format information according to described format information district, if acquiring unit has obtained described picture, also for the format information according to described format information district, show described picture.
If this IM comprises icon, can also show described icon according to the format information in described format information district.
Preferably, if first show the text of described text area, position that can be corresponding at picture reserves corresponding vacancy, vacant locations can be showed default icon (as a smiling face, a local scenery picture of storing, indication information etc.), mean that there is a picture to be obtained this position, and replace the default icon of vacant locations with the picture obtained after obtaining picture.
Preferably, described IM receiving element, send specifically for by the IM server, receiving IM the described IM that client generates and sends; Described picture acquiring unit, send and comprise that the picture of described picture identification obtains request specifically for send client to described IM, and receive described IM and send the picture that described picture identification that client returns identifies.
Alternatively, described IM receiving element, the described IM generated and sent specifically for receiving the IM server; Described picture acquiring unit, specifically for to described IM server, sending and comprise that the picture of described picture identification obtains request, and receive the picture that described picture identification that described IM server returns identifies.
Preferably, described device also comprises IP address and port acquiring unit, sends IP address and the port numbers of client place device for obtaining described IM; Described picture acquiring unit, send and comprise that the picture of described picture identification obtains request specifically for by described IP address and port numbers, to described IM, sending client, and receive described IM and send the picture that described picture identification that client returns identifies.
Preferably, described judging unit, whether the terminal that receives client specifically for the described IM of judgement operation is non-moving terminal, or judges whether to receive the operation indication of obtaining described picture.Can be specifically, judge whether to obtain the picture in this IM according to the type of the terminal that receives this IM, as, mobile terminal, do not obtain this picture if, otherwise obtain this picture.Can also be specifically, according to the operation indication, judge whether to obtain this picture, as, if the user carries out the operation (as clicked " click Shows Picture " of the picture vacant locations as shown in Fig. 3-2) of obtaining this picture, receive the operation indication of obtaining described picture, obtain this picture, otherwise do not obtain this picture.Can also be specifically, judge whether to obtain this picture according to terminal type and operation indication, as, if this terminal is non-moving terminal, perhaps this terminal is mobile terminal and receives the operation indication of obtaining described picture, obtains this picture, otherwise does not obtain this picture.In addition, can also judge whether according to the ability information of this terminal to obtain this picture, whether support form of this picture etc. as this terminal.
The concrete function of each unit of the device that described embodiment 2 proposes is realized referring to the embodiment of the present invention 1.
According to the embodiment of the present invention 1 to 2, the embodiment of the present invention 3 has proposed a kind of device of realizing instant messaging.
As shown in Figure 7, describedly realize that the device 300 of instant messaging comprises:
IM transmitting element 2010, send described IM for generating IM and receiving client to IM, described IM comprises pictorial information district, text area and format information district, so that described IM receives the content that client is showed described text area according to the format information in described format information district, the pictorial information in described pictorial information district comprises picture identification;
Particularly, described message sending unit can be preserved picture or be buffered in this locality, obtains pictorial information, and records described pictorial information in the pictorial information district of described IM, and described pictorial information comprises picture identification.
If described device is realized on terminal, a kind of preferred example embodiment is: described message sending unit receives the operation of editor IM content, can comprise editor word, additional pictures, selection emoticon, the operation such as form, the picture that preservation will be additional, generating pictures information are set; Regeneration IM, described IM comprises text area, pictorial information district and format information district, and described pictorial information district comprises described pictorial information, and described text area comprises editor's word, and described format information district comprises the format information of setting; Then send described IM to the IM server.
Preferably, if described device is realized on the IM server, described IM transmitting element, specifically for send client original I M from IM, described original I M comprise picture region, literal field and and the format information district, picture in described original I M is preserved to generating pictures information, and the picture region of described original I M is replaced with comprise pictorial information the pictorial information district to generate described IM, and receive client to described IM and send described IM.
Picture request reception unit 2020, for receive described IM receive client judge obtain after the picture that described picture identification identifies send for obtaining the request of described picture, described request comprises described picture identification;
Picture transmitting element 2030, send described picture for to described IM, receiving client, so that described IM client is showed described picture according to the format information in described format information district.
Preferably, if described device on terminal, realize, described device also comprises IP address and port release unit, for to described IM, receiving IP address and the port numbers that client is issued described terminal; Described picture request reception unit, specifically for receive described IM receive client judge obtain after the picture that described picture identification identifies by described IP address and port numbers, send for obtaining the request of described picture.Can be specifically, by the IM server, obtain described IP address and port numbers, the preferred exemplary execution mode be as follows: IM sends client and sends IP address and port numbers to the IM server, can be specifically to carry described IP address and port numbers by log messages; Described IM server receive described IP address and the backward IM client that meets specified conditions of port numbers (as, the user's that described IM transmission client is corresponding good friend's IM client) issue described IP address and port numbers, particularly, can be to give out information and issue described IP address and port numbers by resource.
The concrete function of each unit of the device that described embodiment 3 proposes is realized referring to the embodiment of the present invention 1.
According to the embodiment of the present invention 1 to 3, the embodiment of the present invention 4 has proposed a kind of system 400 that realizes instant messaging.
As shown in Figure 8, describedly realize that the system 400 of instant messaging comprises:
IM dispensing device 3010, be specially the described device of embodiment 3;
IM server 3020, the IM sent for receiving described IM dispensing device, and forward described IM to the IM receiving system.
IM receiving system 3030, be specially the described device of embodiment 4.
According to the embodiment of the present invention 1 to 3, the embodiment of the present invention 5 has proposed a kind of system 500 that realizes instant messaging.
As shown in Figure 8, describedly realize that the system 500 of instant messaging comprises:
IM dispensing device 3010, for send original I M to the IM server, described original I M comprise picture region, literal field and and the format information district;
IM server 3020, be specially the described device of embodiment 3;
IM receiving system 3030, be specially the described device of embodiment 4.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as the separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.
If described function usings that the form of SFU software functional unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (17)

1. a method that realizes instant messaging, is characterized in that, described method comprises:
Instant message IM receives client IM, and described IM comprises pictorial information district, text area and format information district, and the pictorial information in described pictorial information district comprises picture identification;
Described IM receives client and shows the text of described text area according to the format information in described format information district;
Described IM receives client and judges whether to obtain the picture that described picture identification identifies, and if the judgment is Yes, obtains described picture according to described picture identification to the transmitting terminal of described IM, and shows described picture according to the format information in described format information district.
2. the method for claim 1, is characterized in that,
Described IM receives client IM, is specially, and described IM receives client and receives by the IM server the described IM that IM transmission client generates and sends; Describedly according to described picture identification, to the transmitting terminal of described IM, obtain described picture, be specially, send client to described IM and send and comprise that the picture of described picture identification obtains request, and receive described IM and send the picture that described picture identification that client returns identifies; Perhaps,
Described IM receives client IM, is specially, and described IM receives the described IM that client IM server generates and sends; Describedly according to described picture identification, to the transmitting terminal of described IM, obtain described picture, be specially, to described IM server, send and comprise that the picture of described picture identification obtains request, and receive the picture that described picture identification that described IM server returns identifies.
3. method as claimed in claim 2, is characterized in that,
Describedly send client to described IM and send before the picture that comprises picture identification obtains request, also comprise, obtain IP address and port numbers that described IM sends client place terminal;
Describedly send client to described IM and send and comprise that the picture of picture identification obtains request, be specially, send client by described IP address and port numbers to described IM and send and comprise that the picture of described picture identification obtains request.
4. described method as arbitrary as claims 1 to 3, is characterized in that,
Described IM receives client and judges whether to obtain the picture that described picture identification identifies, and is specially, and whether the terminal that the described IM of judgement operation receives client is non-moving terminal, or judges whether to receive the operation indication of obtaining described picture.
5. a method that realizes instant messaging, is characterized in that, described method comprises:
IM receives client IM, and described IM comprises pictorial information district, text area and format information district, and the pictorial information in described pictorial information district comprises picture identification;
Described IM receives client and judges whether to obtain the picture that described picture identification identifies;
If the judgment is Yes, obtain described picture according to described picture identification to the transmitting terminal of described IM, and show text and the described picture of described text area according to the format information in described format information district;
If the judgment is No, the text of showing described text area according to the format information in described format information district.
6. method as claimed in claim 5, is characterized in that,
Described IM receives client and judges whether to obtain picture corresponding to pictorial information in described pictorial information district, be specially, whether the terminal that the described IM of judgement operation receives client is non-moving terminal, or judges whether to receive the operation indication of obtaining described picture.
7. a method that realizes instant messaging, is characterized in that, described method comprises:
Generate IM and receive client to IM and send described IM, described IM comprises pictorial information district, text area and format information district, so that described IM receives the content that client is showed described text area according to the format information in described format information district, the pictorial information in described pictorial information district comprises picture identification;
Receive described IM and receive client for obtaining the request of described picture, described request comprises described picture identification;
Receive client to described IM and send described picture, so that described IM client is showed described picture according to the format information in described format information district.
8. method as claimed in claim 7, is characterized in that,
Described generation IM also sends described IM to IM reception client, is specially, and IM sends client and generates described IM and send described IM by the IM server to described IM reception client;
Before receiving described request, also comprise, described IM sends client and receives to described IM IP address and the port numbers that client is issued described IM transmission client place terminal;
The described IM of described reception receive client judge obtain after the picture that described picture identification identifies send for obtaining the request of described picture, be specially, receive described IM receive client judge obtain after the picture that described picture identification identifies by described IP address and port numbers, send for obtaining the request of described picture.
9. method as claimed in claim 7, is characterized in that,
Described generation IM also sends described IM to IM reception client, be specially, the IM server sends client original I M from IM, described original I M comprise picture region, literal field and and the format information district, picture in described original I M is preserved to generating pictures information, and the picture region of described original I M is replaced with comprise pictorial information the pictorial information district to generate described IM, and receive client to described IM and send described IM.
10. a device of realizing instant messaging, is characterized in that, described device comprises:
The IM receiving element, for receiving IM, described IM comprises pictorial information district, text area and format information district, the pictorial information in described pictorial information district comprises picture identification;
Judging unit, will obtain for judging whether the picture that described picture identification identifies;
The picture acquiring unit, if judgment result is that of described judging unit be, for according to described picture identification, to the transmitting terminal of described IM, obtaining described picture;
Display unit, show the text of described text area for the format information according to described format information district, if acquiring unit has obtained described picture, also for the format information according to described format information district, show described picture.
11. device as claimed in claim 10, is characterized in that,
Described IM receiving element, send specifically for by the IM server, receiving IM the described IM that client generates and sends; Described picture acquiring unit, send and comprise that the picture of described picture identification obtains request specifically for send client to described IM, and receive described IM and send the picture that described picture identification that client returns identifies; Perhaps,
Described IM receiving element, the described IM generated and sent specifically for receiving the IM server; Described picture acquiring unit, specifically for to described IM server, sending and comprise that the picture of described picture identification obtains request, and receive the picture that described picture identification that described IM server returns identifies.
12. device as claimed in claim 11, is characterized in that,
Also comprise IP address and port acquiring unit, send IP address and the port numbers of client place terminal for obtaining described IM; Described picture acquiring unit, send and comprise that the picture of described picture identification obtains request specifically for by described IP address and port numbers, to described IM, sending client, and receive described IM and send the picture that described picture identification that client returns identifies.
13. described device as arbitrary as claim 10 to 12, is characterized in that,
Described judging unit, realize specifically for judgement whether the terminal of described device is non-moving terminal, or judge whether to receive the operation indication of obtaining described picture.
14. a device of realizing instant messaging, is characterized in that, described device comprises:
The IM transmitting element, send described IM for generating IM and receiving client to IM, described IM comprises pictorial information district, text area and format information district, so that described IM receives the content that client is showed described text area according to the format information in described format information district, the pictorial information in described pictorial information district comprises picture identification;
The picture request reception unit, for receive described IM receive client judge obtain after the picture that described picture identification identifies send for obtaining the request of described picture, described request comprises described picture identification;
The picture transmitting element, send described picture for to described IM, receiving client, so that described IM client is showed described picture according to the format information in described format information district.
15. device as claimed in claim 14, is characterized in that,
Described device also comprises IP address and port release unit, for receive IP address and the port numbers that the client issue realizes the terminal of described device to described IM; Described picture request reception unit, specifically for receive described IM receive client judge obtain after the picture that described picture identification identifies by described IP address and port numbers, send for obtaining the request of described picture.
16. device as claimed in claim 14, is characterized in that,
Described IM transmitting element, specifically for send client original I M from IM, described original I M comprise picture region, literal field and and the format information district, picture in described original I M is preserved to generating pictures information, and the picture region of described original I M is replaced with comprise pictorial information the pictorial information district to generate described IM, and receive client to described IM and send described IM.
17. a system that realizes instant messaging, is characterized in that, described system comprises:
The IM dispensing device, be specially device as described as claims 14 or 15;
The IM server, the IM sent for receiving described IM dispensing device, and forward described IM to the IM receiving system.
The IM receiving system, be specially described device as arbitrary as claim 10 to 13.
CN2012101767473A 2012-05-31 2012-05-31 Method, device and system for achieving instant message communication Pending CN103457825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101767473A CN103457825A (en) 2012-05-31 2012-05-31 Method, device and system for achieving instant message communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101767473A CN103457825A (en) 2012-05-31 2012-05-31 Method, device and system for achieving instant message communication

Publications (1)

Publication Number Publication Date
CN103457825A true CN103457825A (en) 2013-12-18

Family

ID=49739805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101767473A Pending CN103457825A (en) 2012-05-31 2012-05-31 Method, device and system for achieving instant message communication

Country Status (1)

Country Link
CN (1) CN103457825A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049318A (en) * 2015-05-22 2015-11-11 腾讯科技(深圳)有限公司 Message transmitting method and device, and message processing method and device
CN105573580A (en) * 2015-12-10 2016-05-11 网易(杭州)网络有限公司 Display method and device for image-text hybrid message
CN105893598A (en) * 2016-04-20 2016-08-24 上海斐讯数据通信技术有限公司 Method and device for downloading pictures from mobile terminal
CN105988992A (en) * 2015-03-02 2016-10-05 腾讯科技(深圳)有限公司 Icon pushing method and device
CN106708850A (en) * 2015-11-13 2017-05-24 百度在线网络技术(北京)有限公司 Image template-based image generation method and apparatus
CN109842618A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 Service data transmission method, device, computer equipment and storage medium
CN110058776A (en) * 2019-02-13 2019-07-26 阿里巴巴集团控股有限公司 The message issuance method and device and electronic equipment of Web page
CN110298021A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 A kind of method for message interaction, system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083761A (en) * 2006-12-07 2007-12-05 腾讯科技(深圳)有限公司 Graphics file transferring method and system
CN101136877A (en) * 2007-09-28 2008-03-05 腾讯科技(深圳)有限公司 Method and system of instant communication
CN102413075A (en) * 2011-12-18 2012-04-11 上海量明科技发展有限公司 Method and system for changing format during data transmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083761A (en) * 2006-12-07 2007-12-05 腾讯科技(深圳)有限公司 Graphics file transferring method and system
CN101136877A (en) * 2007-09-28 2008-03-05 腾讯科技(深圳)有限公司 Method and system of instant communication
CN102413075A (en) * 2011-12-18 2012-04-11 上海量明科技发展有限公司 Method and system for changing format during data transmission

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988992A (en) * 2015-03-02 2016-10-05 腾讯科技(深圳)有限公司 Icon pushing method and device
CN105988992B (en) * 2015-03-02 2020-02-07 腾讯科技(深圳)有限公司 Icon pushing method and device
CN105049318B (en) * 2015-05-22 2019-01-08 腾讯科技(深圳)有限公司 Message method and device, message treatment method and device
WO2016188242A1 (en) * 2015-05-22 2016-12-01 腾讯科技(深圳)有限公司 Message transmitting method, message processing method and terminal
CN105049318A (en) * 2015-05-22 2015-11-11 腾讯科技(深圳)有限公司 Message transmitting method and device, and message processing method and device
US10541955B2 (en) 2015-05-22 2020-01-21 Tencent Technology (Shenzhen) Company Limited Message transmitting method, message processing method and terminal
CN106708850A (en) * 2015-11-13 2017-05-24 百度在线网络技术(北京)有限公司 Image template-based image generation method and apparatus
CN105573580A (en) * 2015-12-10 2016-05-11 网易(杭州)网络有限公司 Display method and device for image-text hybrid message
CN105893598A (en) * 2016-04-20 2016-08-24 上海斐讯数据通信技术有限公司 Method and device for downloading pictures from mobile terminal
CN110298021A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 A kind of method for message interaction, system and storage medium
CN110298021B (en) * 2018-03-23 2024-02-02 腾讯科技(深圳)有限公司 Message interaction method, system and storage medium
CN109842618A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 Service data transmission method, device, computer equipment and storage medium
CN110058776A (en) * 2019-02-13 2019-07-26 阿里巴巴集团控股有限公司 The message issuance method and device and electronic equipment of Web page

Similar Documents

Publication Publication Date Title
CN103457825A (en) Method, device and system for achieving instant message communication
US7185285B2 (en) User interface and content enhancements for real-time communication
US20180013700A1 (en) System for Inserting and Responding to Brand-Related Data in Communicated Messages
US8121263B2 (en) Method and system for integrating voicemail and electronic messaging
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN101341477B (en) Method and apparatus for reducing spam on peer-to-peer networks
KR101544518B1 (en) Method, device and system for sharing microblog message
CN103503385A (en) Method for information share and device
CN102281205B (en) The method of the text importing in a kind of instantaneous communication system, terminal and system
CN104994401A (en) Barrage processing method, device and system
CN104917764A (en) Multimedia service pushing method and system based on two-dimensional code
NZ537984A (en) Instant messaging system using selectable animations to deliver content
CN103023755B (en) The method of transfer of data and electronic equipment
CN105138586A (en) File searching method and apparatus
CN107635014B (en) File transmission and presentation method, server and mobile terminal
US20170046867A1 (en) Method and apparatus for controlling playback speed of animation message in mobile terminal
CN104427098A (en) Information processing method and apparatus, and electronic equipment
CN103095560A (en) Instant communication providing device based on maps
CN105100062A (en) Information push method, device and system
CN106028306A (en) Method and device for restoring factory settings of terminal equipment and terminal equipment
WO2014072739A1 (en) Video distribution
CN107423446B (en) New media automation trusted deployment system and method based on cloud storage
CN102984676B (en) Method and terminal for processing message session
CN104598245A (en) Chatting method and device and mobile terminal
US9544252B2 (en) Compressing and decompressing electronic messages in message threads

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20131218

RJ01 Rejection of invention patent application after publication