CN104836820A - Method and system for client interaction, and client terminals - Google Patents

Method and system for client interaction, and client terminals Download PDF

Info

Publication number
CN104836820A
CN104836820A CN201410046695.7A CN201410046695A CN104836820A CN 104836820 A CN104836820 A CN 104836820A CN 201410046695 A CN201410046695 A CN 201410046695A CN 104836820 A CN104836820 A CN 104836820A
Authority
CN
China
Prior art keywords
client
gif image
identification code
preview graph
reception
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
CN201410046695.7A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410046695.7A priority Critical patent/CN104836820A/en
Publication of CN104836820A publication Critical patent/CN104836820A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application discloses a method and system for client interaction, and client terminals. The method for client interaction comprises: sending information to a second client terminal from a first client terminal, wherein the information carries a downloading address and an identification code of a GIF image, wherein the identification code can indentify only one GIF image, and the GIF image, corresponding to the identification code, can be downloaded by accessing the downloading address of the GIF image; receiving the information and judging if an identification code locally stored includes the received identification code by the second client terminal; if the identification code locally stored in the second client terminal, does not include the received identification code, accessing the downloading address of the GIF image to download the GIF image; and displaying the GIF image by the second client terminal. According to the method and system for client interaction, and the client terminals, interaction of the GIF image can be performed smoothly between client terminals with different versions.

Description

Client exchange method and system and client
Technical field
The application relates to network communication technology field, particularly a kind of client exchange method and system and client.
Background technology
GIF(Graphics Interchange Format) be a kind of common image file format, several pictures can be saved as an image file by it, thus form animation.GIF image is in present network, and widely, such as number of site GIF image shows makes laughs fragment to attract visitor in application, and some on-line shops are by its product sold of GIF image shows, and some instant communication softwares are by GIF image shows animation.
Instant communication software is a kind of instant interchange software based on the Internet, can by the computer online exchange of interconnection network between user.The interactive function of GIF image is integrated with in existing instant communication software, namely be supplied in software and somely can carry out mutual GIF image option and select to user, by the expression of GIF image shows personage and action, the interest linked up between user can be so improve between user.In traditional scheme, GIF image is stored in the server, when client needs to represent GIF image, by GIF download image to local.
Along with the development of mobile terminal, such as smart mobile phone and panel computer etc., instant communication software has a very wide range of applications at mobile terminal, and user can use the instant communication software in mobile terminal to exchange in arbitrary occasion.The mobile terminal had now many employings 2G, 3G or Wifi network is surfed the Net, compared to the network of traditional computer by twisted pair line connection, the network stabilization of mobile terminal is poor, when using the GIF image interactive function in instant communication software, the problem of easy generation GIF download image failure, and cause being difficult to representing of GIF image.
In order to solve the problem, manufacturer, when releasing instant communication software, is integrated with GIF image in the installation kit of software, so when carrying out GIF image mutual, without the need to downloading GIF image.But usual manufacturer, after a instant communication software of release, also can release the software version of renewal successively, and along with the renewal of version, new GIF image option can be increased in redaction.In some cases, new version software user is used to link up with using the user of early version software, new version software user have selected newly-increased GIF image option, now do not have newly-increased GIF image to cause the content being difficult to represent GIF image in early version, so there is new early version and be difficult to compatible problem.
Summary of the invention
The object of the application's execution mode is to provide a kind of client exchange method and system and client, smooth and easy to make to link up between new early version client.
For solving the problems of the technologies described above, the application provides a kind of client exchange method, comprising:
First client initiates a message to the second client, download address and the identification code of GIF image is accompanied with in described message, described identification code can unique identification GIF image, and the download address of accessing described GIF image can download GIF image corresponding to described identification code;
Described second client receives described message, judges whether the local identification code stored comprises the identification code of reception;
Do not comprise the identification code of reception in the identification code that described second client this locality stores, described in described second client-access, the download address of GIF image downloads described GIF image;
Described second client shows described GIF image.
The application also provides a kind of client interactive system, comprising:
First client comprises message transmission module, described message transmission module is used for initiating a message to described second client, download address and the identification code of GIF image is accompanied with in described message, described identification code can unique identification GIF image, and the download address of accessing described GIF image can download described GIF image;
Described second client comprises:
Message reception module, for receiving the message that described first client sends;
Memory module, for storaging mark code;
Matching module, for judging whether the local identification code stored comprises the identification code of described reception;
First download module, during for not comprising the identification code of reception in the identification code that stores in this locality, the download address of accessing described GIF image downloads described GIF image;
Display module, for showing described GIF image.
The application also provides a kind of client exchange method, comprising:
Receive the message sent, be accompanied with download address and the identification code of GIF image in described message, described identification code can unique identification GIF image;
Judge whether the local identification code stored comprises the identification code of described reception;
Do not comprise the identification code of described reception in the local identification code stored, the download address of accessing described GIF image downloads described GIF image;
Show described GIF image.
The application also provides a kind of client, comprising:
Message transmission module, described message transmission module is used for initiating a message, be accompanied with download address and the identification code of GIF image in described message, described identification code can unique identification GIF image, and the download address of accessing described GIF image can download described GIF image;
Message reception module, for receiving the message sent;
Memory module, for storaging mark code;
Matching module, for judging whether the local identification code stored comprises the identification code of described reception;
First download module, during for not comprising the identification code of reception in the identification code that stores in this locality, the download address of accessing described GIF image downloads described GIF image;
Display module, for showing described GIF image.
The technical scheme provided from above the application's execution mode, the application realizes the download address and the identification code that are accompanied with GIF image in the message that client sends, the client of receipt message can first by identification code and local GIF images match, the match is successful then shows GIF image, it fails to match then downloads GIF image by download address, then shows further.When so realizing the client communication of different editions, when the client of early version receives the message of redaction client, the GIF image in redaction client can be shown, make to have between redaction client and early version client preferably compatible, bring facility to user.
Accompanying drawing explanation
In order to be illustrated more clearly in the application's execution mode or technical scheme of the prior art, be briefly described to the accompanying drawing used required in execution mode or description of the prior art below, apparently, the accompanying drawing that the following describes is only some execution modes recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of the client exchange method that Fig. 1 provides for the application's execution mode;
In the client exchange method that Fig. 2 provides for the application's execution mode, show the flow chart of the sub-step of GIF image;
The flow chart of the client exchange method that Fig. 3 provides for the application's execution mode;
The flow chart of the client exchange method that Fig. 4 provides for the application's execution mode;
The flow chart of the client exchange method that Fig. 5 provides for the application's execution mode;
The flow chart of the client exchange method that Fig. 6 provides for the application's execution mode;
The module map of the client interactive system that Fig. 7 provides for the application's execution mode;
The flow chart of the client exchange method that Fig. 8 provides for the application's execution mode;
In the client exchange method that Fig. 9 provides for the application's execution mode, show the flow chart of the sub-step of GIF image;
The flow chart of the client exchange method that Figure 10 provides for the application's execution mode;
The flow chart of the client exchange method that Figure 11 provides for the application's execution mode;
The flow chart of the client exchange method that Figure 12 provides for the application's execution mode;
The flow chart of the client exchange method that Figure 13 provides for the application's execution mode;
The module map of the client that Figure 14 provides for the application's execution mode.
Embodiment
The application's execution mode provides a kind of document transmission method and device and server system.
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the application's execution mode, technical scheme in the application's execution mode is clearly and completely described, obviously, described execution mode is only the application's part execution mode, instead of whole execution modes.Based on the execution mode in the application, those of ordinary skill in the art are not making the every other execution mode obtained under creative work prerequisite, all should belong to the scope of the application's protection.
Refer to Fig. 1, the client exchange method that an execution mode for the application provides.Client can be the mobile terminal of arbitrary form as mobile phone, panel computer or notebook computer, can also work out by program language the logic body formed for operating in above-mentioned hardware device.Described client exchange method comprises the following steps.
Step S10: the first client initiates a message to the second client, is accompanied with download address and the identification code of GIF image in described message, and described identification code can GIF image described in unique identification.
In the present embodiment, the version between client can be identical, also can be different.Wherein, the version between client is identical to be referred to, the function and structure of client under default factory arranges state is identical.Version between client is not both because along with development in science and technology and technological progress, certain improvement may be there is in manufacturer to the technical scheme of client, such as promote the performance of client hardware, or improve the algorithm of client, or add function or the content of client, now just can issue the client of redaction, because the client of redaction and the client of early version all can in the field of businessly be used, the client of different editions can be there is.
In the present embodiment, message can be sent between client.Message can comprise word, picture or the two combination.Identification code can unique identification GIF image, namely there is corresponding relation between identification code and GIF image, by knowing an identification code, just can specify the GIF image that this identification code is corresponding.Identification code incidentally in message, can be sent to another client from a client.The client of receipt message can GIF image that only display identification code is corresponding and non-display identification code itself, so makes client be supplied to the information of user comparatively totally and not mixed and disorderly.Certainly, the client of receipt message also can display identification code itself, and user so can be allowed to understand identification code corresponding to GIF image.Concrete is exemplified as, and identification code can be the character string " sdjfosdufdsd15 " of random length, or is numeral number " 16230 ", or is the characteristic value such as MD5(Message-Digest Algorithm5 of GIF image) value, or base64 value.
In the present embodiment, when GIF image is issued, GIF image can be stored in the server, server can provide the store path of GIF image, and this store path both can be download address.Concrete, download address can be GIF image URL(Uniform Resource Locator in the server) address, just can download GIF image to local by access URL address.
Step S20: described second client receives described message, judges whether the local identification code stored comprises the identification code of reception.
In the present embodiment, the known identification code of this client is stored in client.It can be integrated in client manufacturing process that client obtains the approach of identification code, also can be stored in this locality in use receiving identification code that other client sends.After client receives the identification code that other client sends, the identification code that the identification code of reception and this locality store is mated, namely judge whether the identification code received exists in its local identification code stored, if the identification code received is identical with some identification codes that this locality stores, the identification code that namely client this locality stores comprises the identification code of reception.If the identification code that the identification code received stores with client this locality is all not identical, then the identification code that client this locality stores does not comprise the identification code of reception.
Step S30: the identification code not comprising reception in the identification code that described second client this locality stores, described in described second client-access, the download address of GIF image downloads described GIF image.
In the present embodiment, client downloads GIF image to local by the download address that access receives, and so just can complete representing of GIF image further.Concrete, such as client can utilize the Request command access download address of Http agreement, socket Socket also can be utilized to access download address, download GIF image.
Step S40: described second client shows described GIF image.
In the present embodiment, the GIF image of download, from after download address completes the download of GIF image, can represent to user by client further.
The client exchange method that present embodiment provides, by arranging identification code, realize each GIF image all can be uniquely identified, client like this, after receiving an identification code, just can judge whether this locality stores GIF image corresponding to this identification code clearly.Moreover by the client of receipt message being provided the download address of GIF image, the client realizing receipt message does not have a GIF image of storaging mark code correspondence during in this locality, can be downloaded by download address and obtain GIF image, avoid occurring that client is difficult to represent the situation of GIF image.Further, by the scheme that present embodiment provides, when there is GIF image interaction between the client of different editions, the GIF image that the identification code that the client that the client of early version can download this edition new by download address provide is corresponding, solves the problem of the old and new's edition compatibility.
In an execution mode of the application, described step S30 also comprises sub-step: in the process downloading GIF image, and picture is preset in described second client display.
In the present embodiment, client inside can have default picture.Preset picture to be used for showing to user in the process of client downloads GIF image.Client downloads GIF image from download address needs the regular hour, within this time, by showing default picture to user, promotes Consumer's Experience.The content presetting picture can have word, to point out user downloading GIF image, or has the progress bar of GIF download image, then or is only a picture.
Refer to Fig. 2, in an execution mode of the application, the step S40 of described client exchange method also comprises following sub-step.
Step S41: described second client represents the preview graph of described GIF image.
In the present embodiment, after client obtains GIF image, first represent the preview graph of GIF image, user like this tentatively can understand the content of GIF image.Moreover, the more computing of cost and storage resources is needed because client represents GIF image, if a client have received multiple message simultaneously need to represent GIF image, after finishing receiving, represent simultaneously and client resource may be caused not enough and crash, so first client represents preview graph to user, avoid the problems referred to above.
Step S42: described second client receives predetermined command, represents the GIF image that described preview graph is corresponding.
In the present embodiment, predetermined command can be the operational order that user is inputted to client by arbitrary form.Concrete, such as client is touch-screen type mobile phone or panel computer, and user can, by clicking a certain preview graph, realize representing corresponding GIF image, and preview graph is clicked can think predetermined command by user; Such as client is keyboard-type mobile phone, and user can select a certain preview graph by button, and by click broadcast button realize represent GIF image corresponding to preview graph, now preview graph be played button select can think predetermined command.
Refer to Fig. 3, in an execution mode of the application, described client exchange method also comprises step S50: described second client parses the preview graph of more than one or one picture as described GIF image from the GIF image downloaded.
In the present embodiment, client, from after download address downloads GIF image, is resolved GIF image, from the plurality of pictures GIF image, is selected more than one or one picture as the preview graph of GIF image.Concrete, if select a pictures as preview graph from GIF image, then can select any one in multiple pictures of GIF image, preferably, select the first pictures as preview graph.If select more than one picture from GIF image, interval some can select a pictures, so can a less GIF image be become as the preview graph of former GIF image more than one picture making selected.
In the present embodiment, described client exchange method also comprises step S60 further: described second client is by the identification code corresponding stored of described preview graph and described reception.
In the present embodiment, after client obtains preview graph, by preview graph and identification code corresponding stored, so realize the quantity adding the known GIF image of client.Moreover GIF image is comparatively large and preview graph is less, realizes avoiding taking too much memory space by only storing preview graph.Certainly, client also can by preview graph and GIF image together corresponding identification code store.Concrete, identification code list can be stored in the client, corresponding each identification code stores the store path of preview graph, or corresponding each identification code stores the store path of GIF image and preview graph, so after clear and definite identification code, just preview graph be can obtain further, or GIF image and preview graph obtained.
Refer to Fig. 4, in an execution mode of the application, in the step S10 of described client exchange method: be accompanied with the download address of GIF image and the download address of preview graph and identification code in described message, described identification code can GIF image and described preview graph described in unique identification.
In the present embodiment, when GIF image is issued, namely specify a pictures as the preview graph of this GIF image, and GIF image and preview graph are stored in server simultaneously, there is a download address respectively in GIF image like this and preview graph, so just can realize downloading GIF image by the download address of access GIF image, the download address of access preview graph downloads preview graph.
In the present embodiment, identification code and GIF image and preview graph all corresponding, so just can be realized corresponding with preview graph for GIF image by identification code.Concrete, identification code is had as by a list storage, corresponding identification code stores GIF image store path in the client, with preview graph store path in the client, so after clear and definite identification code, just the store path of GIF image or preview graph be can pass through, GIF image or preview graph obtained.
In the present embodiment, described step S30 can be: when the identification code that described second client this locality stores does not comprise the identification code of reception, described in described second client-access, the download address of GIF image downloads described GIF image, and the download address of accessing described preview graph downloads described preview graph.
In the present embodiment, client this locality does not comprise the identification code of reception, show that client does not exist the preview graph corresponding with the identification code received, or there is not the GIF image corresponding with the identification code received and preview graph, client can download GIF image by the download address of access GIF image, downloads preview graph by the download address of accessing preview graph.Further, preferentially can download preview graph, in the process downloading GIF image, client represents preview graph.The content that user so can be made as early as possible to understand GIF image may show.
In the present embodiment, described client exchange method also comprises step S60 further: described second client is by the identification code corresponding stored of described preview graph and described reception.
In the present embodiment, after client obtains preview graph, by this preview graph and identification code corresponding stored, so realize the quantity adding the known GIF image of client.Moreover GIF image is comparatively large and preview graph is less, realizes avoiding taking too much memory space by only storing preview graph.Certainly, client also can by preview graph and GIF image together corresponding identification code store.Concrete, identification code list can be stored in the client, corresponding each identification code stores the store path of preview graph, or corresponding each identification code stores the store path of GIF image and preview graph, so after clear and definite identification code, just preview graph be can obtain further, or GIF image and preview graph obtained.
Refer to Fig. 5, in an execution mode of the application, described client exchange method also comprises step S70: the identification code that described second client this locality stores comprises the identification code of described reception, and described second client reads GIF image corresponding to the identification code of described reception from this locality.
In the present embodiment, the identification code that client this locality stores comprises the identification code of reception, shows that client this locality stores GIF image corresponding to the identification code of reception, only needs to read GIF image from this locality, just can further represent.Concrete, can be provided with identification code store list in client, corresponding each identification code stores the store path of GIF image in the list.
Refer to Fig. 6, in an execution mode of the application, described client exchange method also comprises step S80: the identification code that described second client this locality stores comprises the identification code of described reception, the preview graph of the GIF image that the identification code that described second client reads described reception is corresponding, the download address of accessing described GIF image downloads described GIF image.
In the present embodiment, GIF image is often larger, if store GIF image in client to need larger memory space, in order to reduce taking of client memory space, the preview graph of GIF image is only stored in client, further download GIF image by the download address of access GIF image, realize the detailed content that can represent GIF image.Moreover, after client reads preview graph, preview graph can be shown in the process downloading GIF image, first right user understands the possible content of GIF image, after treating that GIF download image completes, then represents GIF image further, or represent GIF image again after receiving predetermined command, concrete scheme, describes in the foregoing embodiment, no longer repeats to introduce at this.
Refer to Fig. 7, also provide a kind of client interactive system 100 at the execution mode of the application.Client interactive system 100 comprises the first client 10 and the second client 11.First client 10 and the second client 11 can be all the mobile terminal of arbitrary form as mobile phone, panel computer or notebook computer, also can being desktop computer, can also working out by program language the logic body formed for operating in above-mentioned hardware device.
First client 10 comprises message transmission module 13, and the second client 11 comprises message reception module 15, memory module 16, matching module 17, first download module 19 and display module 21.
Message transmission module 13 is for initiating a message to the second client 11, download address and the identification code of GIF image is accompanied with in described message, described identification code can unique identification GIF image, and the download address of accessing described GIF image can download described GIF image.
In the present embodiment, message transmission module 13 can be any hardware with message sending function, the gsm module in such as mobile phone, Wifi module etc.Certainly, message transmission module 13 also can for operating in the logic body on hardware.
In the present embodiment, the version between client can be identical, also can be different.Wherein, the version between client is identical to be referred to, the function and structure of client under default factory arranges state is identical.Version between client is not both because along with development in science and technology and technological progress, certain improvement may be there is in manufacturer to the technical scheme of client, such as promote the performance of client hardware, or improve the algorithm of client, or add function or the content of client, now just can issue the client of redaction, because the client of redaction and the client of early version all can in the field of businessly be used, the client of different editions can be there is.
In the present embodiment, message can be sent between client.Message can comprise word, picture or the two combination.Identification code can unique identification GIF image, namely there is corresponding relation between identification code and GIF image, by knowing an identification code, just can specify the GIF image that this identification code is corresponding.Identification code incidentally in message, can be sent to another client from a client.The client of receipt message can GIF image that only display identification code is corresponding and non-display identification code itself, so makes client be supplied to the information of user comparatively totally and not mixed and disorderly.Certainly, the client of receipt message also can display identification code itself, and user so can be allowed to understand identification code corresponding to GIF image.Concrete is exemplified as, and identification code can be the character string " sdjfosdufdsd15 " of random length, or is numeral number " 16230 ", or is the characteristic value such as MD5(Message-Digest Algorithm5 of GIF image) value, or base64 value.
In the present embodiment, when GIF image is issued, GIF image can be stored in the server, server can provide the store path of GIF image, and this store path both can be download address.Concrete, download address can be GIF image URL(Uniform Resource Locator in the server) address, just can download GIF image to local by access URL address.
The message that message reception module 15 sends for receiving the first client 10.
In the present embodiment, client receives by message reception module 15 message that other client sends.Message reception module 15 can be the communication interface of hardware, such as network interface, also can be reception of wireless signals chip, such as Bluetooth signal receiving chip or Wifi module.Can also for operating on hardware, to the logic body that message processes.
Memory module 16 is for storaging mark code.
In the present embodiment, memory module 16 can be any hardware with memory function, such as magnetic disc store, flash memories etc. can, for a part of storage area divided in a hardware memory, can also be also the logic body of driving memory storage file.It can be integrated in client manufacturing process that client obtains the approach of identification code, also can accumulate and obtains in use receiving identification code that other client sends.Memory module 16 can by corresponding with GIF image for identification code storage, namely identification code can be integrated in GIF image, both realizations one_to_one corresponding like this, also can using the name of identification code as GIF image, can also store list be set, the store path of corresponding stored identification code and GIF image in store list.
Matching module 17 is for judging whether the local identification code stored comprises the identification code of reception.
In the present embodiment, matching module 17 can, for having the chip of operation processing function, also can be the logic body performed by chip.After message reception module 15 receives the identification code that other client sends, the identification code of reception mates with the identification code of storage by matching module 17, namely judge whether the identification code received exists in the identification code of its this locality, if the identification code received is identical with some identification codes that this locality stores, namely the identification code that memory module 16 stores comprises the identification code of reception, represents that memory module 16 stores GIF image corresponding to the identification code of reception.If the identification code that the identification code received and memory module 16 store is all not identical, then the identification code in memory module 16 does not comprise the identification code of reception, represents that client this locality does not have the GIF image that the identification code of reception is corresponding.
When first download module 19 is not for comprising the identification code of reception in the identification code that stores in memory module 16, the download address of accessing described GIF image downloads described GIF image.
In the present embodiment, the first download module 19 downloads GIF image to local by the download address that access receives, and so just can complete representing of GIF image further.Concrete, such as the first download module 19 can utilize the Request command access download address of Http agreement, socket Socket also can be utilized to access download address, download GIF image.
Display module 21 is for showing described GIF image.
In the present embodiment, the first download module 19 is from after download address completes the download of GIF image, and the GIF image of download can represent to user by display module 21 further.Display module 21 can, for having the display of Presentation Function, as LCD display or CRD display, also can be the logic body of driving display show image.
The client interactive system that present embodiment provides, by arranging identification code, realize each GIF image all can be uniquely identified, client like this, after receiving an identification code, just can judge whether this locality stores GIF image corresponding to this identification code clearly.Moreover by the client of receipt message being provided the download address of GIF image, the client realizing receipt message does not have a GIF image of storaging mark code correspondence during in this locality, can be downloaded by download address and obtain GIF image, avoid occurring that client is difficult to represent the situation of GIF image.Further, by the scheme that present embodiment provides, when there is GIF image interaction between the client of different editions, the GIF image that the identification code that the client that the client of early version can download this edition new by download address provide is corresponding, solves the problem of the old and new's edition compatibility.
Refer to Fig. 8, the execution mode of the application also provides a kind of client exchange method, and described client exchange method comprises the steps.
Step S110: receive the message sent, be accompanied with download address and the identification code of GIF image in described message, described identification code can unique identification GIF image.
In the present embodiment, message can comprise word, picture or the two combine, or message itself is only accompanied with the download address of GIF image and identification code and does not have other content.Identification code can unique identification GIF image, namely there is corresponding relation between identification code and GIF image, by knowing an identification code, just can specify the GIF image that this identification code is corresponding.Concrete is exemplified as, described identification code can be the character string " sdjfosdufdsd15 " of random length, or be numeral number " 16230 ", or be the characteristic value such as MD5(Message-Digest Algorithm5 of GIF image) value, or base64 value.
In the present embodiment, when GIF image is issued, GIF image can be stored in the server, server can provide the store path of GIF image, and this store path both can be download address.Concrete, download address can be GIF image URL(Uniform Resource Locator in the server) address, just can download GIF image to local by access URL address.
Step S120: judge whether the local identification code stored comprises the identification code of described reception.
In the present embodiment, identification code is stored in client this locality.Identification code can storage corresponding with GIF image, namely identification code can be integrated in GIF image, one_to_one corresponding both so realizing, also can using the name of identification code as GIF image, can also store list be set, the store path of corresponding stored identification code and GIF image in store list.
In the present embodiment, after client obtains the identification code in message, the identification code that the identification code of reception and this locality store is mated, namely judge whether the identification code received exists in its local identification code stored, if the identification code received is identical with the local some identification codes stored, expression client is local stores GIF image corresponding to the identification code of reception.If the identification code received is not identical with the local identification code stored, then the identification code that client this locality stores does not comprise the identification code of reception, represents that client this locality does not have the GIF image that the identification code of reception is corresponding.
Step S130: the identification code not comprising described reception in the local identification code stored, the download address of accessing described GIF image downloads described GIF image.
In the present embodiment, client downloads GIF image to local by the download address that access receives, and so just can complete representing of GIF image further.Concrete, such as client can utilize the Request command access download address of Http agreement, socket Socket also can be utilized to access download address, download GIF image.
Step S140: show described GIF image.
In the present embodiment, the GIF image of download, from after download address completes the download of GIF image, can represent to user by client further.
In an execution mode of the application, described step S130 also comprises sub-step: in the process downloading GIF image, and picture is preset in display.
In the present embodiment, client inside can have default picture.Preset picture to be used for showing to user in the process of client downloads GIF image.Client downloads GIF image from download address needs the regular hour, within this time, by showing default picture to user, promotes Consumer's Experience.The content presetting picture can have word, to point out user downloading GIF image, or has the progress bar of GIF download image, then or is only a picture.
Refer to Fig. 9, in an execution mode of the application, the step S140 of described client exchange method also comprises following sub-step.
Step S141: the preview graph representing described GIF image.
In the present embodiment, after client obtains GIF image, first represent the preview graph of GIF image, user like this tentatively can understand the content of GIF image.Moreover, the more computing of cost and storage resources is needed because client represents GIF image, if a client have received multiple message simultaneously need to represent GIF image, after finishing receiving, represent simultaneously and client resource may be caused not enough and crash, so first client represents preview graph to user, avoid the problems referred to above.
Step S142: receive predetermined command, represents the GIF image that described preview graph is corresponding.
In the present embodiment, predetermined command can be the operational order that user is inputted to client by arbitrary form.Concrete, such as client is touch-screen type mobile phone or panel computer, and user can, by clicking a certain preview graph, realize representing corresponding GIF image, and preview graph is clicked can think predetermined command by user; Such as client is keyboard-type mobile phone, and user can select a certain preview graph by button, and by click broadcast button realize represent GIF image corresponding to preview graph, now preview graph be played button select can think predetermined command.
Refer to Figure 10, in an execution mode of the application, described client exchange method also comprises step S150: from the GIF image downloaded, parse the preview graph of more than one or one picture as described GIF image.
In the present embodiment, client, from after download address downloads GIF image, is resolved GIF image, from the plurality of pictures GIF image, is selected more than one or one picture as the preview graph of GIF image.Concrete, if select a pictures as preview graph from GIF image, then can select any one in multiple pictures of GIF image, preferably, select the first pictures as preview graph.If select more than one picture from GIF image, interval some can select a pictures, so can a less GIF image be become as the preview graph of former GIF image more than one picture making selected.
In the present embodiment, described client exchange method also comprises step S160 further: by the identification code corresponding stored of described preview graph and described reception.
In the present embodiment, after client obtains preview graph, by preview graph and identification code corresponding stored, so realize the quantity adding the known GIF image of client.Moreover GIF image is comparatively large and preview graph is less, realizes avoiding taking too much memory space by only storing preview graph.Certainly, client also can by preview graph and GIF image together corresponding identification code store.Concrete, identification code list can be stored in the client, corresponding each identification code stores the store path of preview graph, or corresponding each identification code stores the store path of GIF image and preview graph, so after clear and definite identification code, just preview graph be can obtain further, or GIF image and preview graph obtained.
Refer to Figure 11, in an execution mode of the application, in the step S110 of described client exchange method: be accompanied with the download address of GIF image and the download address of preview graph and identification code in described message, described identification code can GIF image and described preview graph described in unique identification.
In the present embodiment, when GIF image is issued, namely specify a pictures as the preview graph of this GIF image, and GIF image and preview graph are stored in server simultaneously, there is a download address respectively in GIF image like this and preview graph, so just can realize downloading GIF image by the download address of access GIF image, the download address of access preview graph downloads preview graph.
In the present embodiment, identification code and GIF image and preview graph all corresponding, so just can be realized corresponding with preview graph for GIF image by identification code.Concrete, identification code is had as by a list storage, corresponding identification code stores GIF image store path in the client, with preview graph store path in the client, so after clear and definite identification code, just the store path of GIF image or preview graph be can pass through, GIF image or preview graph obtained.
In the present embodiment, described step S130 can be: the local identification code stored does not comprise the identification code of reception, and the download address of accessing described GIF image downloads described GIF image, and the download address of accessing described preview graph downloads described preview graph.
In the present embodiment, client this locality does not comprise the identification code of reception, show that client does not exist the preview graph corresponding with the identification code received, or there is not the GIF image corresponding with the identification code received and preview graph, client can download GIF image by the download address of access GIF image, downloads preview graph by the download address of accessing preview graph.Further, preferentially can download preview graph, in the process downloading GIF image, client represents preview graph.The content that user so can be made as early as possible to understand GIF image may show.
In the present embodiment, described client exchange method also comprises step S160 further: by the identification code corresponding stored of described preview graph and described reception.
In the present embodiment, after client obtains preview graph, by this preview graph and identification code corresponding stored, so realize the quantity adding the known GIF image of client.Moreover GIF image is comparatively large and preview graph is less, realizes avoiding taking too much memory space by only storing preview graph.Certainly, client also can by preview graph and GIF image together corresponding identification code store.Concrete, identification code list can be stored in the client, corresponding each identification code stores the store path of preview graph, or corresponding each identification code stores the store path of GIF image and preview graph, so after clear and definite identification code, just preview graph be can obtain further, or GIF image and preview graph obtained.
Refer to Figure 12, in an execution mode of the application, described client exchange method also comprises step S170: the local identification code stored comprises the identification code of described reception, reads the GIF image that the identification code of described reception is corresponding from this locality.
In the present embodiment, the identification code that client this locality stores comprises the identification code of reception, shows that client this locality stores GIF image corresponding to the identification code of reception, only needs to read GIF image from this locality, just can further represent.Concrete, can be provided with identification code store list in client, corresponding each identification code stores the store path of GIF image in the list.
Refer to Figure 13, in an execution mode of the application, described client exchange method also comprises step S180: the local identification code stored comprises the identification code of described reception, read the preview graph of GIF image corresponding to the identification code of described reception from this locality, the download address of accessing described GIF image downloads described GIF image.
In the present embodiment, GIF image is often larger, if store GIF image in client to need larger memory space, in order to reduce taking of client memory space, the preview graph of GIF image is only stored in client, further download GIF image by the download address of access GIF image, realize the detailed content that can represent GIF image.Moreover, after client reads preview graph, preview graph can be shown in the process downloading GIF image, first right user understands the possible content of GIF image, after treating that GIF download image completes, then represents GIF image further, or represent GIF image again after receiving predetermined command, concrete scheme, describes in the foregoing embodiment, no longer repeats to introduce at this.
Refer to Figure 14, the execution mode of the application also provides a kind of client 200.Client 200 comprises: message reception module 15, memory module 16, matching module 17, first download module 19 and display module 21.
Client 200 can be the mobile terminal of arbitrary form as mobile phone, panel computer or notebook computer, also can being desktop computer, can also working out by program language the logic body formed for operating in above-mentioned hardware device.
In the present embodiment, the version between client can be identical, also can be different.Wherein, the version between client is identical to be referred to, the function and structure of client under default factory arranges state is identical.Version between client is not both because along with development in science and technology and technological progress, certain improvement may be there is in manufacturer to the technical scheme of client, such as promote the performance of client hardware, or improve the algorithm of client, now just can issue the client of redaction, because the client of redaction and the client of early version all can in the field of businessly be used, the client of different editions can be there is.
The message that message reception module 15 is sent for receiving other client 200, is accompanied with download address and the identification code of GIF image in described message, described identification code can unique identification GIF image.
In the present embodiment, message can comprise word, picture or the two combine, or message itself is only accompanied with the download address of GIF image and identification code and does not have other content.Identification code can unique identification GIF image, namely there is corresponding relation between identification code and GIF image, by knowing an identification code, just can specify the GIF image that this identification code is corresponding.Concrete is exemplified as, described identification code can be the character string " sdjfosdufdsd15 " of random length, or be numeral number " 16230 ", or be the characteristic value such as MD5(Message-Digest Algorithm5 of GIF image) value, or base64 value.
In the present embodiment, when GIF image is issued, GIF image can be stored in the server, server can provide the store path of GIF image, and this store path both can be download address.Concrete, download address can be GIF image URL(Uniform Resource Locator in the server) address, just can download GIF image to local by access URL address.
In the present embodiment, client 200 receives by message reception module 15 message that other client 200 sends.Message reception module 15 can be the communication interface of hardware, such as network interface, also can be reception of wireless signals chip, such as Bluetooth signal receiving chip or Wifi module.
Memory module 16 is for storaging mark code.
In the present embodiment, memory module 16 can be any hardware with memory function, such as magnetic disc store, flash memories etc. can, for a part of storage area divided in a hardware memory, can also be also the logic body of driving memory storage file.Memory module 16 obtains the approach of identification code can for integrated in client 200 manufacturing process, also can accumulate and obtain in use receiving identification code that other client 200 sends.Identification code can storage corresponding with GIF image, namely identification code can be integrated in GIF image, one_to_one corresponding both so realizing, also can using the name of identification code as GIF image, can also store list be set, the store path of corresponding stored identification code and GIF image in store list.
Matching module 17 is for judging whether the identification code stored comprises the identification code of reception.
In the present embodiment, matching module 17 can, for having the chip of operation processing function, also can be the logic body performed by chip.After message reception module 15 receives the identification code that other client 200 sends, the identification code of reception is mated with the identification code of storage, namely judge whether the identification code received exists in its local identification code stored, if the identification code received is identical with some identification codes that this locality stores, namely the identification code that memory module 16 stores comprises the identification code of reception, represents that client 200 this locality stores GIF image corresponding to the identification code of reception.If the identification code that the identification code received and memory module 16 store is all not identical, then the identification code that client 200 this locality stores does not comprise the identification code of reception, represents the GIF image that the local identification code not having to receive of client 200 is corresponding.
When first download module 19 is not for comprising the identification code of reception in the identification code that stores in memory module 16, the download address of accessing described GIF image downloads described GIF image.
In the present embodiment, the first download module 19 downloads GIF image to local by the download address that access receives, and so just can complete representing of GIF image further.Concrete, such as the first download module 19 can utilize the Request command access download address of Http agreement, socket Socket also can be utilized to access download address, download GIF image.
Display module 21 is for showing described GIF image.
In the present embodiment, the first download module 19 is from after download address completes the download of GIF image, and the GIF image of download can represent to user by display module 21 further.Display module 21 can, for having the display of Presentation Function, as LCD display or CRD display, also can be the logic body of driving display display impact.
The client 200 that present embodiment provides, by arranging identification code, realize each GIF image all can be uniquely identified, client 200 like this, after receiving an identification code, just can judge whether this locality stores GIF image corresponding to this identification code clearly.Moreover by the client 200 of receipt message being provided the download address of GIF image, the client 200 realizing receipt message does not have a GIF image of storaging mark code correspondence during in this locality, can be downloaded by download address and obtain GIF image, avoid occurring that client 200 is difficult to represent the situation of GIF image.Further, by the scheme that present embodiment provides, when there is GIF image interaction between the client 200 of different editions, the GIF image that the identification code that the client that the client of early version can download this edition new by download address provide is corresponding, solves the problem of the old and new's edition compatibility.
The application realizes the download address and the identification code that are accompanied with GIF image in the message that client sends, the client of receipt message can first by identification code and local GIF images match, the match is successful then shows GIF image, it fails to match then downloads GIF image by download address, then shows further.When so realizing the client communication of different editions, when the client of early version receives the message of redaction client, the GIF image in redaction client can be shown, time redaction client and early version client between have preferably compatible, bring facility to user.
Although depict the application by execution mode, those of ordinary skill in the art know, the application has many distortion and change and do not depart from the spirit of the application, and the claim appended by wishing comprises these distortion and change and do not depart from the spirit of the application.

Claims (22)

1. a client exchange method, is characterized in that, comprising:
First client initiates a message to the second client, is accompanied with download address and the identification code of GIF image in described message, and described identification code can GIF image described in unique identification;
Described second client receives described message, judges whether the local identification code stored comprises the identification code of reception;
Do not comprise the identification code of described reception in the identification code that described second client this locality stores, described in described second client-access, the download address of GIF image downloads described GIF image;
Described second client shows described GIF image.
2. the method for claim 1, is characterized in that, in the process of GIF image described in described second client downloads, picture is preset in described second client display.
3. the method for claim 1, is characterized in that, the step that described second client shows described GIF image also comprises:
Described second client represents the preview graph of described GIF image;
Described second client receives predetermined command, represents the GIF image that described preview graph is corresponding.
4. the method for claim 1, is characterized in that, described client exchange method also comprises step: described second client parses the preview graph of more than one or one picture as described GIF image from the GIF image downloaded.
5. the method for claim 1, is characterized in that, is also accompanied with the download address of the preview graph of described GIF image in the message that described first client sends to described second client.
6. method as claimed in claim 5, it is characterized in that, also comprise in the step of GIF image described in described second client downloads, described in described second client-access, the download address of preview graph downloads described preview graph.
7. method as claimed in claim 6, it is characterized in that, described second client first downloads described preview graph, in the process downloading described GIF image, shows described preview graph.
8. the method as described in claim 4 or 6, is characterized in that, described client exchange method also comprises step: described second client is by the identification code corresponding stored of described preview graph and described reception.
9. the method for claim 1, it is characterized in that, described client exchange method also comprises step: the identification code that described second client this locality stores comprises the identification code of described reception, and described second client reads GIF image corresponding to the identification code of described reception from this locality.
10. the method for claim 1, it is characterized in that, described client exchange method also comprises step: the identification code that described second client this locality stores comprises the identification code of described reception, described second client reads the preview graph of GIF image corresponding to the identification code of described reception from this locality, the download address of accessing described GIF image downloads described GIF image.
11. 1 kinds of client interactive systems, is characterized in that, it comprises the first client and the second client, wherein,
First client comprises message transmission module, and described message transmission module is used for initiating a message to described second client, is accompanied with download address and the identification code of GIF image in described message, and described identification code can unique identification GIF image;
Described second client comprises:
Message reception module, for receiving the message that described first client sends;
Memory module, for storaging mark code;
Matching module, for judging whether the local identification code stored comprises the identification code of described reception;
First download module, during for not comprising the identification code of reception in the identification code that stores in this locality, the download address of accessing described GIF image downloads described GIF image;
Display module, for showing described GIF image.
12. 1 kinds of client exchange methods, is characterized in that, comprising:
Receive the message sent, be accompanied with download address and the identification code of GIF image in described message, described identification code can unique identification GIF image;
Judge whether the local identification code stored comprises the identification code of described reception;
Do not comprise the identification code of described reception in the local identification code stored, the download address of accessing described GIF image downloads described GIF image;
Show described GIF image.
13. methods as claimed in claim 12, is characterized in that, in the process downloading described GIF image, picture is preset in display.
14. methods as claimed in claim 12, it is characterized in that, the step showing described GIF image also comprises:
Represent the preview graph of described GIF image;
Receive predetermined command, represent the GIF image that described preview graph is corresponding.
15. methods as claimed in claim 12, it is characterized in that, described client exchange method also comprises step: from the GIF image downloaded, parse the preview graph of more than one or one picture as described GIF image.
16. methods as claimed in claim 12, is characterized in that, be also accompanied with the download address of the preview graph of described GIF image in described message.
17. methods as claimed in claim 16, is characterized in that, also comprise in the step downloading described GIF image, the download address of accessing described preview graph downloads described preview graph.
18. methods as claimed in claim 17, is characterized in that, the described preview graph of preferential download, in the process downloading described GIF image, shows described preview graph.
19. methods as described in claim 15 or 17, it is characterized in that, described client exchange method also comprises step: by the identification code corresponding stored of described preview graph and described reception.
20. methods as claimed in claim 12, it is characterized in that, described client exchange method also comprises step: the local identification code stored comprises the identification code of described reception, reads the GIF image that the identification code of described reception is corresponding from this locality.
21. methods as claimed in claim 12, it is characterized in that, described client exchange method also comprises step: the local identification code stored comprises the identification code of described reception, read the preview graph of GIF image corresponding to the identification code of described reception from this locality, the download address of accessing described GIF image downloads described GIF image.
22. 1 kinds of clients, it is characterized in that, it comprises:
Message reception module, for receiving the message sent, is accompanied with download address and the identification code of GIF image in described message, described identification code can unique identification GIF image;
Memory module, for storaging mark code;
Matching module, for judging whether the local identification code stored comprises the identification code of described reception;
First download module, during for not comprising the identification code of reception in the identification code that stores in this locality, the download address of accessing described GIF image downloads described GIF image;
Display module, for showing described GIF image.
CN201410046695.7A 2014-02-10 2014-02-10 Method and system for client interaction, and client terminals Pending CN104836820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410046695.7A CN104836820A (en) 2014-02-10 2014-02-10 Method and system for client interaction, and client terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410046695.7A CN104836820A (en) 2014-02-10 2014-02-10 Method and system for client interaction, and client terminals

Publications (1)

Publication Number Publication Date
CN104836820A true CN104836820A (en) 2015-08-12

Family

ID=53814456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410046695.7A Pending CN104836820A (en) 2014-02-10 2014-02-10 Method and system for client interaction, and client terminals

Country Status (1)

Country Link
CN (1) CN104836820A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789560A (en) * 2016-12-01 2017-05-31 腾讯音乐娱乐(深圳)有限公司 A kind of image display method and image processing device
CN106878145A (en) * 2016-12-19 2017-06-20 北京新美互通科技有限公司 A kind of display methods of self-defined picture, display device and display system
CN107154892A (en) * 2016-03-03 2017-09-12 游戏橘子数位科技股份有限公司 The interactive method of real-time communication
CN108418890A (en) * 2018-03-15 2018-08-17 武汉斗鱼网络科技有限公司 Face's special efficacy resource generation method, device, system and readable storage medium storing program for executing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01122288A (en) * 1987-11-06 1989-05-15 Mitsubishi Electric Corp Communication system for still picture video telephone
JPH04100495A (en) * 1990-08-20 1992-04-02 Mitsubishi Electric Corp Still-picture video telephone system
CN101137152A (en) * 2007-09-27 2008-03-05 腾讯科技(深圳)有限公司 Method, system and equipment for interacting three-dimensional cartoon in mobile instant communication
CN101350790A (en) * 2007-07-19 2009-01-21 阿里巴巴集团控股有限公司 Document transmission method and device base on instant communications system
CN101699879A (en) * 2007-07-03 2010-04-28 卢苇 Method for transmitting voice message by mobile terminal
CN102870081A (en) * 2012-06-30 2013-01-09 华为技术有限公司 Method and mobile terminal for dynamic display expressions

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01122288A (en) * 1987-11-06 1989-05-15 Mitsubishi Electric Corp Communication system for still picture video telephone
JPH04100495A (en) * 1990-08-20 1992-04-02 Mitsubishi Electric Corp Still-picture video telephone system
CN101699879A (en) * 2007-07-03 2010-04-28 卢苇 Method for transmitting voice message by mobile terminal
CN101350790A (en) * 2007-07-19 2009-01-21 阿里巴巴集团控股有限公司 Document transmission method and device base on instant communications system
CN101137152A (en) * 2007-09-27 2008-03-05 腾讯科技(深圳)有限公司 Method, system and equipment for interacting three-dimensional cartoon in mobile instant communication
CN102870081A (en) * 2012-06-30 2013-01-09 华为技术有限公司 Method and mobile terminal for dynamic display expressions

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107154892A (en) * 2016-03-03 2017-09-12 游戏橘子数位科技股份有限公司 The interactive method of real-time communication
CN106789560A (en) * 2016-12-01 2017-05-31 腾讯音乐娱乐(深圳)有限公司 A kind of image display method and image processing device
CN106878145A (en) * 2016-12-19 2017-06-20 北京新美互通科技有限公司 A kind of display methods of self-defined picture, display device and display system
CN106878145B (en) * 2016-12-19 2020-11-13 北京新美互通科技有限公司 Display method, display device and display system of user-defined picture
CN108418890A (en) * 2018-03-15 2018-08-17 武汉斗鱼网络科技有限公司 Face's special efficacy resource generation method, device, system and readable storage medium storing program for executing
CN108418890B (en) * 2018-03-15 2020-09-04 武汉斗鱼网络科技有限公司 Face special effect resource generation method, device and system and readable storage medium

Similar Documents

Publication Publication Date Title
KR102107708B1 (en) Automatic application updates
CN107920112B (en) Configuration file pushing method supporting gray mode, central server and storage medium
US20170163753A1 (en) Method and apparatus for controlling play device to play video
EP3651482A1 (en) Message extension app store
CN107015870B (en) Method and device for realizing communication between web page and local application and electronic equipment
US8495617B2 (en) Interworking system between user terminal and smart card for executing widget, and method thereof
CN105142011A (en) Web-based television terminal multi-screen interaction method and device
CN105516246A (en) Method for preventing application program downloading hijacking and server
WO2012051179A2 (en) Devices and methods for providing software programs compatible with a computer system for download by a user
CN109168012B (en) Information processing method and device for terminal equipment
CN104836820A (en) Method and system for client interaction, and client terminals
CN104580376A (en) Method, device and system for constructing connection between terminals in local area network
CN112394932A (en) Automatic browser webpage skin changing method and device
CN103634675A (en) System updating method and device in intelligent television
US20170168796A1 (en) Method and electronic apparatus for transferring application program from pc to mobile apparatus
CN105224611A (en) Based on the operation processing method of browser, device and browser
US20060080402A1 (en) Apparatus and method for socket communication between applications in operating system that does not support a process
CN103488508A (en) Browser working method, browser and terminal equipment
CN112148395A (en) Page display method, device, equipment and storage medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN108664498B (en) Webpage content display method and terminal
CN104506616A (en) Method, device and system for sending information by browser client side
US9348825B2 (en) Server and method for causing terminal to display screen
CN108616567B (en) Picture transmission method, system, server, client and user equipment
CN113467776B (en) Method and device for accessing equipment, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812

RJ01 Rejection of invention patent application after publication