New! View global litigation for patent families

CN102447642A - Method and device for managing messages and pictures based on IM (Instant Messaging) client - Google Patents

Method and device for managing messages and pictures based on IM (Instant Messaging) client Download PDF

Info

Publication number
CN102447642A
CN102447642A CN 201010503345 CN201010503345A CN102447642A CN 102447642 A CN102447642 A CN 102447642A CN 201010503345 CN201010503345 CN 201010503345 CN 201010503345 A CN201010503345 A CN 201010503345A CN 102447642 A CN102447642 A CN 102447642A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
picture
im
downloaded
method
needs
Prior art date
Application number
CN 201010503345
Other languages
Chinese (zh)
Other versions
CN102447642B (en )
Inventor
张丽
Original Assignee
腾讯科技(深圳)有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00Arrangements for user-to-user messaging in packet-switching networks, e.g. e-mail or instant messages
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The invention discloses a method and device for managing messages and pictures based on an IM (Instant Messaging) client. The method comprises the following steps of: when a user of IM needs to download a picture, inquiring whether the picture which needs to be downloaded exists in a local save path by a downloading module of the IM client according to a URL (Uniform Resource Locator) and type of the picture which needs to be downloaded; directly returning to the local save path of the picture which needs to be downloaded if the picture exists; and downloading a corresponding picture and saving the downloaded picture to the local if the picture does not exist. According to the method and device disclosed by the invention, picture uploading/downloading management and display in huge message application like microblog can be realized quickly and effectively.

Description

一种基于IM客户端实现消息图片管理的方法和装置 A method and apparatus for message-based IM client image management

技术领域 FIELD

[0001] 本发明涉及计算机技术领域,尤其涉及一种基于即时通讯(IM)客户端实现消息图片管理的方法和装置。 [0001] The present invention relates to computer technology, and in particular relates based instant messaging (IM) client message image management apparatus and method of implementation.

背景技术 Background technique

[0002] 网络即时通讯(IM,Instant Messaging)工具发展至今,已经被众多的网民所接受,并已成为用户必不可少的软件工具,IM不但在平时的休闲娱乐中,而且在用户的工作中得到广泛的使用。 [0002] Network instant messaging (IM, Instant Messaging) tool development has already been accepted by many Internet users, and users have become the essential software tools, IM not only in the usual entertainment, but also in the user's work It is widely used. 因此,在实际应用过程中,用户对IM的易用性、稳定性、安全性等方面提出了较高的要求。 Therefore, in the actual application process, users of IM terms of ease of use, stability, security and put forward higher requirements. 在IM软件中,主要实现的是一对一的好友单独聊天模式、以及一对多的群或者讨论组的消息聊天模式。 In the IM software, the main one is to achieve a single friend chat mode, and many discussion groups or message group chat mode. 随着互联网应用的不断发展,类似推特(twitter)的微博应用作为一种扩展IM消息传播机制的新工具也不断发展壮大,这类微型博客使用户通过140个字左右的信息量来表达自己,这种方式可以非常快速的进行传播,实现用户消息聊天模式从一对一、一对多到一对无穷的跨越;这种一对无穷的消息聊天模式也意味着一个用户可以对无穷多个用户进行消息的传播,同时一个用户同时也可以收取万级以上的用户消息,从而,这也就对大用户量的应用提出了新的要求。 With the continuous development of new tools of Internet applications, similar to Twitter (twitter) micro-blog application as an extension IM message propagation mechanism also continue to grow, this type of micro-blog users by the amount of information about 140 words to express themselves, this way you can spread very quickly, achieve user message chat mode from one to one, one to many to a pair of infinite span; this one pair of endless message chat mode also means a user can infinitely many users spread a message, but a user can also collect more than 10,000 of the user message, thus, it will put forward new requirements for large number of users of the application.

[0003] 微博作为一种扩展IM消息传播机制的新应用得到了快速的发展,但是原有IM工具中的好友数量(最多几百个)与微博的收听用户量显然不在同一个等级上(万级以上); 由于微博收听的用户量非常巨大,这就造成IM客户端收到微博消息的消息量会非常大,然而,目前在IM客户端中缺少一种能够针对这种大消息量的图片进行上传以及下载拉取管理的技术方案,从而无法快速有效的实现类似微博这种大消息量应用中的图片上传和下载管理与展现。 [0003] microblogging as a new application of an extension IM message propagation mechanism has been developed rapidly, but the number of friends (up to a few hundred) existing IM tool and listening subscribers microblogging is clearly not in the same grade A (10,000 more than); due to the volume of users microblogging listen very large, which resulted in IM client receives the message volume microblog message will be very large, however, the current lack of IM clients a way to big for this amount of messages and upload pictures to download pull technology program management, which can not quickly and effectively to achieve a similar microblogging such a large volume of messages in the application management upload and download pictures and show.

发明内容 SUMMARY

[0004] 有鉴于此,本发明的主要目的在于提供一种基于IM客户端实现消息图片管理的方法和装置,以快速有效的实现类似微博这种大消息量应用中的图片上传和下载管理与展现。 [0004] In view of this, the main object of the present invention is to provide a method and apparatus to realize the picture management message based IM client, similar to the fast and efficient implementation of such a large amount of messages Twitter application image upload and download management and show.

[0005] 为达到上述目的,本发明的技术方案是这样实现的: [0005] To achieve the above object, the technical solution of the present invention is implemented as follows:

[0006] 本发明提供了一种基于即时通讯(IM)客户端实现消息图片管理的方法,该方法包括: [0006] The present invention provides a method for implementing image management message based instant messaging (IM) client, the method comprising:

[0007] 当IM的用户需要下载图片时,IM客户端的下载组件根据所需下载图片的统一资源定位符(URL)和类型查询本地保存路径中是否有所需下载图片,如果有,则直接返回所需下载图片在本地保存的路径;如果没有,则执行相应图片的下载,并将下载的图片保存到本地。 [0007] When the IM user needs to download pictures, download components IM client according to the Uniform Resource Locator needed to download pictures (URL) and the type of query whether a local save path required to download pictures, if any, direct return download pictures saved in the desired local path; if not, proceed to download the appropriate image, download and save images locally.

[0008] 所述当IM的用户需要下载图片时,IM客户端的下载组件根据所需下载图片的URL 和类型查询本地保存路径中是否有所需下载图片,具体为: [0008] When the image IM user needs to download, the download IM client based on the URL and whether components required to download the image type of query local storage path requiring downloading images, specifically:

[0009] 当用户触发所需下载图片的缩略图或链接时,根据所述缩略图或链接获取所需下载图片的URL和类型; [0009] When the user triggers the download thumbnail images or links, to obtain the URL and download the images according to the type of the thumbnails or links;

[0010] 将获取到的URL和类型与所述IM客户端本地保存路径中的图片的URL和类型进行匹配,如果匹配到相同的URL和类型,则判断所述本地保存路径中有所需下载图片;否则,判断所述本地保存路径中没有所需下载图片。 [0010] The type and the URL of the acquired URL and type of the IM client of the image stored in the local path matches, if the URL and matched to the same type, it is determined that the path has stored locally to download the desired pictures; otherwise, determining whether the local save path is not required to download images.

[0011] 该方法进一步包括: [0011] The method further comprising:

[0012] 在下载成功时,将以URL和类型命名的图片保存到IM客户端本地。 [0012] When the download is successful, will save the name and type the URL to the images IM client locally.

[0013] 该方法进一步包括: [0013] The method further comprising:

[0014] 在下载失败时,判断对应图片是否为第一次下载失败,如果是第一次下载失败,则将对应图片的状态修改为第一次下载失败并重新下载;否则,结束下载。 [0014] When a download fails, to determine whether the corresponding picture for the first time failed to download, if download failed the first time, the picture will be changed to the state corresponding to first download fails and re-download; otherwise, the end of the download.

[0015] 该方法进一步包括: [0015] The method further comprising:

[0016] 当IM的用户需要上传图片时,IM客户端的上传组件通过对批量上传接口的调用, 将等待批量上传的图片加入等待上传队列中,并通过对等待上传队列的扫描,对所述等待上传队列中的图片进行上传。 [0016] When the IM user needs to upload pictures, IM client upload component by bulk upload call interface will wait for bulk upload images added waiting upload queue, and by waiting for upload queue is scanned, the waiting upload pictures upload queue.

[0017] 在上传完成后该方法进一步包括: [0017] The method further comprises, after the upload is complete:

[0018] 解析生成的上传结果文件,如果解析显示上传成功,则进一步解析得到所上传图片的URL和类型; [0018] analytical results generated files to upload, show upload if parsing is successful, then further parse the URL and get the type of uploaded images;

[0019] 根据解析得到URL和类型命名图片并保存到所述IM客户端本地。 [0019] The type of the parsed URL name and the pictures are stored locally to the IM client.

[0020] 该方法进一步包括: [0020] The method further comprising:

[0021] 所述图片的上传还需调用底层组件,负责创建上传的传输控制协议(TCP)通道, 并建立连接; [0021] The need to upload pictures calls the underlying component, responsible for creating uploaded Transmission Control Protocol (TCP) channel, and establish a connection;

[0022] 所述IM客户端采用底层组件的管理池,负责多个底层组件的提供以及管理多个底层组件的状态。 [0022] The IM client uses the underlying pool management module, responsible for providing a plurality of state management and the underlying components of the plurality of underlying components.

[0023] 本发明还提供了一种基于IM客户端实现消息图片管理的装置,该装置包括:下载组件,用于在IM的用户需要下载图片时,根据所需下载图片的URL和类型查询本地保存路径中是否有所需下载图片,如果有,则直接返回所需下载图片在本地保存的路径;如果没有,则执行相应图片的下载,并将下载的图片保存到本地。 [0023] The present invention also provides an apparatus for message-based IM client managing pictures, the apparatus comprising: a download component for when the user needs to download the image IM, based on the URL and type of query local Photo is there a path to save the required download pictures, if any, required to return directly download pictures saved in a local path; if not, proceed to download the appropriate image, download and save images locally.

[0024] 所述下载组件进一步用于,当用户触发所需下载图片的缩略图或链接时,根据所述缩略图或链接获取所需下载图片的URL和类型;将获取到的URL和类型与所述IM客户端本地保存路径中的图片的URL和类型进行匹配,如果匹配到相同的URL和类型,则判断所述本地保存路径中有所需下载图片;否则,判断所述本地保存路径中没有所需下载图片。 And the acquired URL and type; [0024] The assembly is further configured to download, when a user triggers the thumbnail or download the linked image, and obtains the URL type picture according to the download link or thumbnail IM client and the URL stored in the local path type image matches, if the URL and matched to the same type, it is determined that the path has stored locally download pictures required; otherwise, determining whether the local storage path It is not required to download images.

[0025] 所述下载组件进一步用于,在下载成功时,将以URL和类型命名的图片保存到IM 客户端本地。 [0025] The assembly further for download, when the download is successful, will save the name and type the URL to the images IM client locally.

[0026] 所述下载组件进一步用于,在下载失败时,判断对应图片是否为第一次下载失败, 如果是第一次下载失败,则将对应图片的状态修改为第一次下载失败并重新下载;否则,结束下载。 [0026] The download component is further for, when the download fails, it is determined whether or not the first image corresponding to the download fails, if the first download fails, then the corresponding image modification state for the first and re-download failed Download; otherwise, the end of the download.

[0027] 该装置还包括:上传组件,用于在IM的用户需要上传图片时,通过对批量上传接口的调用,将等待批量上传的图片加入等待上传队列中,并通过对等待上传队列的扫描,对所述等待上传队列中的图片进行上传。 [0027] The apparatus further comprises: uploading assembly for an IM user needs to upload pictures, by bulk upload call interface will wait for a waiting bulk upload image upload queue, and by scanning the queue waiting for upload , the upload queue waiting to upload pictures.

[0028] 所述上传组件进一步用于,在上传完成后,解析生成的上传结果文件,在解析显示上传成功时,进一步解析得到所上传图片的URL和类型,并根据解析得到URL和类型命名图片并保存到所述IM客户端本地。 [0028] The upload component is further configured to, after the upload is complete, the resulting analytical results of the upload file, parsing display successful upload, further resolved to give the URL and the type of uploaded images, and the type and URL naming pictures obtained based on the analysis and saved locally to the IM client.

[0029] 该装置还包括底层组件,用于负责创建上传的TCP通道,并建立连接; [0029] The apparatus further comprises a bottom layer assembly, is responsible for creating the TCP channel for upload, and establish a connection;

[0030] 底层组件的管理池,负责多个底层组件的提供以及管理多个底层组件的状态。 [0030] The pool management underlying components, responsible for providing and managing a plurality of underlying components of the plurality of components of the underlying condition.

[0031] 本发明所提供的一种基于IM客户端实现消息图片管理的方法和装置,在微博应用中由于消息传播的特点以及泛关系链的用户模型,可以非常方便的实现大消息量中图片信息的上传与下载拉取管理;另外,本发明通过URL和图片的类型来唯一确认图片,并将已下载过的图片用URL和类型命名后保存到IM客户端本地,这可以有效避免重复下载。 [0031] A present invention provides a method and apparatus based IM client implementations image management message, the message Twitter application since propagation characteristics and the user model pan relationship chain may be very convenient to achieve a large amount of message image upload and download management pulling; Further, by the present invention and the URL to uniquely identify the type of picture images, and the images have been downloaded after storage type and URL naming with the local IM client, which can effectively avoid repetition download.

附图说明 BRIEF DESCRIPTION

[0032] 图1为本发明中微博消息图片的上传和下载组件的结构示意图; Upload and download configuration components [0032] of the present invention in FIG. 1 Twitter schematic picture message;

[0033] 图2为本发明实施例中基于IM客户端实现微博消息图片上传的方法流程图一; [0033] Example 2 of the present embodiment based IM client implementation Twitter message flow diagram of a picture upload invention;

[0034] 图3为本发明实施例中基于IM客户端实现微博消息图片上传的方法流程图二; [0034] The method of Example 3 of the present embodiment based IM client implementation Twitter message flow diagram of two pictures uploaded to the invention;

[0035] 图4为本发明实施例中基于IM客户端实现微博消息图片下载的方法流程图。 [0035] FIG. 4 embodiment flowchart of a method implemented based IM client picture download message Twitter embodiment of the invention.

具体实施方式 detailed description

[0036] 下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 Drawings and specific embodiments set forth in detail further aspect of the present invention [0036] The following binding.

[0037] 本发明基于IM客户端,为快速有效的实现类似微博这种大消息量应用中的图片上传和下载管理与展现。 [0037] The invention is based IM client, to quickly and effectively to achieve a similar microblogging such a large volume of messages in the application management upload and download pictures and show. 在IM客户端中,图片上传和下载作为一个全局服务Service)模型提供给上层调用,IM客户端对外根据具体的应用提供图片上传和下载功能,并封装了上传下载的细节。 In the IM client, upload and download pictures as a global service Service) model to the upper calling, IM clients provide external image upload and download functions depending on the application, and encapsulates the details of the upload and download.

[0038] 对于图片上传,根据类似微博这种大消息量应用的具体应用场景且考虑以后的扩展性,IM客户端对外提供了批量上传的接口,即IM客户端的外部可以调用一次该接口上传多张图片;IM客户端的上传下载组件将这一批要上传的图片作为一个任务去完成,并在上传完毕后通知IM客户端的应用层已经上传完毕。 [0038] For the image upload, future extensibility Depending on the application scenario similar microblogging such a large volume of messages the application and consideration, IM clients provide external bulk upload interface that is external IM client can be called once the interface to upload multiple images; upload and download components of the IM client to upload a number of these pictures as a task to complete, and notify the IM client application layer has been uploaded after the upload.

[0039] 对于图片下载,IM客户端对外提供根据统一资源定位符(URI^UniversalResource Locator)下载单张图片的接口。 [0039] For image downloads, IM clients provide external interfaces (URI ^ UniversalResource Locator) to download a single picture according to the Uniform Resource Locator. 考虑到由于类似微博这种大消息量应用的图片的数量巨大,为了减少对下载的压力和提高IM客户端显示图片的性能,下载的图片会保存到IM客户端的本地;如果下次再有下载该图片的请求时,则可以直接返回IM客户端本地保存的图片。 Taking into account that a similar picture microblogging such a large volume of messages a huge number of applications, in order to reduce the pressure on the downloaded and improve performance IM client displays pictures, download pictures saved to a local IM client; if the next time there is when the download request of the picture, you can return directly to the IM client locally saved pictures.

[0040] 如图1所示,为IM客户端的微博消息的上传下载组件的结构示意图,IM客户端的上传下载组件对外提供接口ITXWBloglmageMgr,该接口中提供批量上传图片(UploadImageList)、取消上传(CancelUploadImageList)、获取图片路径(GetImagePath) 和取消下载(CancelDownloadImage)这四个模块;其中,模块UploadlmageList、 CancelUploadImageList用于实现微博消息的图片上传功能;模块Getlmagel^ath、 CancelDownloadImage用于实现微博消息的图片下载功能。 [0040] As shown, a schematic view of the structure of uploading and downloading component micro-blog message IM client, the IM client upload and download components provide external interfaces ITXWBloglmageMgr 1, this interface provides bulk Photo (UploadImageList), cancel the upload (CancelUploadImageList ) to acquire the image path (GetImagePath) and cancel the download (CancelDownloadImage) four modules; wherein the means UploadlmageList, image upload feature CancelUploadImageList for implementing microblog messages; module Getlmagel ^ ath, CancelDownloadImage images for realization of microblog messages download function. 该ITXWBlogImageMgr接口由CWBlogImageMgr (CWBlogImageMgr 作为一个类)来实现,CWBlogImageMgr 的内部包含了以下模块: The interface consists ITXWBlogImageMgr CWBlogImageMgr (CWBlogImageMgr as a class) to achieve internal CWBlogImageMgr contains the following modules:

[0041] UploadImageListλ CancelUploadImageList、GetlmagePath、QueryImagePath 禾口CancelDownloadImage, [0041] UploadImageListλ CancelUploadImageList, GetlmagePath, QueryImagePath Wo mouth CancelDownloadImage,

[0042] 其中,QueryImagePath为查询本地路径的模块。 [0042] wherein, QueryImagePath query local path module.

[0043] CffBlogImageMgr 的内部聚合了CffBlogImageUpload 对象禾口CffBlogImageDownload对象,上传功能由CWBloglmageUpload对象来实现,下载功能由CWBloglmageDownload对象来实现。 [0043] The polymerization of the inner CffBlogImageMgr CffBlogImageUpload objects Wo port CffBlogImageDownload objects implemented by CWBloglmageUpload upload objects CWBloglmageDownload download implemented by the object. 其中,CWBloglmageUpload对象中包含以下模块: UploadImageList> CancelUpIoadImageList> OnUploadComplete、Up 1 oadffaitingQueue> InternelUploadlmage、GetlnfoFromResultFile 禾口CheckNeedCallback, Wherein, CWBloglmageUpload object contains the following modules: UploadImageList> CancelUpIoadImageList> OnUploadComplete, Up 1 oadffaitingQueue> InternelUploadlmage, GetlnfoFromResultFile Wo mouth CheckNeedCallback,

[0044] 其中,模块OnUploadComplete用于上传完成的处理;模块UploadWaitingQueue 用于选取等待队列中的图片上传;模块hternelUploadlmage用于上传图片;模块GethfoFromResultFile用于上传完毕解析服务器返回的结果文件,该结果文件中包含所上传图片的URL;模块CheckNeedCallback用于检查一批图片是否都上传,上传后需要告知用户这批图片已上传完毕。 [0044] wherein the processing module is uploaded to the OnUploadComplete; UploadWaitingQueue module configured to select the image upload queue; means for Photo hternelUploadlmage; GethfoFromResultFile module for parsing the file is uploaded results returned by the server, the result file upload pictures containing the URL; CheckNeedCallback module for checking whether a group of images are uploaded, you need to tell the user to upload these pictures have been uploaded.

[0045] CffBlogImageDownload 对象中包含以下模块:DownloadImage> OnDown1oadComp1ete>DoDownload 禾口CancelDownloadImage, [0045] CffBlogImageDownload object contains the following modules: DownloadImage> OnDown1oadComp1ete> DoDownload Hekou CancelDownloadImage,

[0046] 其中,模块Downloadlmage用于用户调用该接口下载图片,将任务加入到下载的等待队列中;模块OnDownloadComplete用于下载完成的处理;模块DoDownload用于下载操作;模块CancelDownloadlmage用于取消下载的操作。 [0046] wherein Downloadlmage module invoking the interface for the user to download pictures, download task is added to the waiting queue; OnDownloadComplete module for processing the download is complete; DoDownload module for downloading operation; means for operating the cancel download CancelDownloadlmage .

[0047] 此外,WBlogImageHelper是图片上传下载的一个帮助类,WBlogImageHelper 中提供了图片上传下载相关的帮助模块,主要包括KetlmageHash、GetImageSize, AddImagePostfiχ、GetFullUrl、GetUr1AndSiζe、GetFileNameFromUrl 禾口Gtelmage&ivel^th。 [0047] In addition, WBlogImageHelper is uploading and downloading pictures of a helper class, WBlogImageHelper provides upload and download images related help module, including KetlmageHash, GetImageSize, AddImagePostfiχ, GetFullUrl, GetUr1AndSiζe, GetFileNameFromUrl Wo mouth Gtelmage & ivel ^ th. 其中,模块GetImageHash用于获取图片散列的操作;模块GetlmageSize用于获取图片大小的操作;模块AddlmagePostfix用于添加图片后缀的操作;模块GetFulltol用于获取URL的操作;模块GettolAndSize用于获取URL和图片大小的操作;模块GetFileNameFromUrl用于从URL获取文件名的操作;模块GteImageSavePath 用于获取图片保存路径的操作。 Wherein the module is configured to acquire image GetImageHash hashing operation; GetlmageSize module configured to obtain the size of the operation image; means for operating the AddlmagePostfix added suffix picture; means for acquiring URL GetFulltol operation; means for acquiring the URL and the image GettolAndSize the size of the operation; GetFileNameFromUrl module for acquiring operation of the file name from URL; GteImageSavePath module for acquiring operating picture stored path.

[0048] 需要说明的是,上述图1所示的上传下载组件对于类似微博这种大消息量的应用,都是适用的。 [0048] Incidentally, uploading and downloading the components shown in FIG 1 such a large message to the Twitter-like application amount, are applicable. 基于上述图1所示IM客户端的上传下载组件,本发明所实现的消息图片管理的方法,包括图片的上传和下载管理两个方面,上传管理部分由上传组件来完成,下载管理部分由下载组件来完成;当然,本发明中也可以将上传组件和下载组件合设,组成上传下载组件,实现上传和下载管理。 Based IM clients uploading and downloading the assembly shown in Figure 1, picture information management method realized by the present invention, comprises a picture upload and download management two aspects, upload completed by the management section to upload component, downloaded by the download management section assembly to complete; of course, the present invention also can upload and download components co-located components, component composition upload and download, upload and download management implemented. 以微博消息的图片管理为例,其中,微博消息图片的上传流程如图2所示,主要包括以下步骤: Pictures Twitter message to an example, wherein the micro-blog message image upload process shown in Figure 2, includes the following steps:

[0049] 步骤201,IM客户端调用批量上传接口,即调用接口ITXWBloglmageMgr中的UploadImageList 模块。 [0049] Step 201, IM client calls bulk upload interfaces, i.e., the call interface ITXWBloglmageMgr UploadImageList module.

[0050] 当IM的用户需要利用IM客户端上传图片至微博中时,通过手动操作触发IM客户端调用批量上传接口,即接口ITXWBloglmageMgr中的UploadImageList模块被调用。 [0050] When IM users need to use the IM client to upload pictures to the time microblogging, manually operated trigger IM client calls bulk upload interface, that interfaces ITXWBloglmageMgr in UploadImageList module is called.

[0051] 步骤202,IM客户端向调用的批量上传接口中加入任务队列m_mapTaSk_C00kie_ Array0该任务即为图片批量上传的任务。 [0051] Step 202, IM client to call the bulk upload task queue interface added to the task is the task m_mapTaSk_C00kie_ Array0 picture bulk upload.

[0052] 步骤203,IM客户端初始化该任务(即图片批量上传任务)完成数量m_mapTaSk_ Cookie_CompleteNum。 [0052] Step 203, IM client initiates the task (ie picture bulk upload tasks) to complete the number of m_mapTaSk_ Cookie_CompleteNum. 该m_mapTask_Cookie_CompleteNum 用于限制图片批量上传的数量 The m_mapTask_Cookie_CompleteNum used to limit the number of bulk upload pictures

7上限。 7 upper limit.

[0053] 步骤204,IM客户端对待上传的图片进行压缩和格式转换处理。 [0053] Step 204, IM client to upload pictures to treat compression and format conversion process.

[0054] 步骤205,IM客户端将需要批量上传的每一个图片加入等待上传队列m_ mapffaiting_Cookie_tagImage 中。 [0054] Step 205, IM client will require each picture added bulk upload queue waiting for upload in m_ mapffaiting_Cookie_tagImage.

[0055] 步骤206,IM客户端将回调指针m_SinkMgr_UploadImage加入等待上传队列中。 [0055] Step 206, IM client callback pointer queue waiting for upload m_SinkMgr_UploadImage added. 加入回调指针的目的是,当批量上传完成后,通过该回调指针通知应用层,进而让用户获知批量上传的操作完成。 Callback object pointers is added, when the bulk upload is completed, by the notification callback function pointer of the application layer, thereby allowing the user to complete the learning operation bulk upload.

[0056] 步骤207,触发UploadWaitingQueue模块开始执行图片上传的操作。 [0056] In step 207, the trigger module UploadWaitingQueue begin operation uploaded images.

[0057] UploadWaitingQueue模块被触发后,扫描等待上传队列,每次调用队首的一个图片进行上传。 After the [0057] UploadWaitingQueue module is triggered, scan wait upload queue, each call to the first team of a picture to upload. 该UploadWaitingQueue模块的调用时机可以是图片加入等待上传队列后、调用一个图片完成后或上传一个图片完成后。 UploadWaitingQueue called as soon as the module can be added after picture upload queue waiting, after calling a complete picture or upload a picture is completed.

[0058] 此外,图片的上传还需调用底层组件CTXHttpDownload,由底层组件CTXHttpDownload 负责创建上传的传输控制协议(TCP, Transmission ControlProtocol) 通道、建立连接、发送图片等处理。 [0058] In addition, the need to upload pictures CTXHttpDownload calls the underlying components, the underlying components CTXHttpDownload responsible for creating the Transmission Control Protocol upload (TCP, Transmission ControlProtocol) channel, establish a connection, send pictures and other processing.

[0059] 进一步的,为了保证上传效率,本发明还可以采用一个CTXHttpDownload的管理池CHttpUploadPool,负责提供CTXHttpDownload 对象及管理CTXHttpDownload 对象的状态。 [0059] Further, in order to ensure efficient upload, the present invention also may employ a pool management CTXHttpDownload CHttpUploadPool, responsible for providing and managing objects CTXHttpDownload CTXHttpDownload state of the object. 较佳的,CTXHttpDownload的管理池最大管理5个CTXHttpDownload对象,以及可以支持5张图片的同时上传。 Preferably, the maximum upload CTXHttpDownload management pool management 5 CTXHttpDownload objects, and can support five simultaneous pictures.

[0060] 在上传完成后,上传组件会返回一个JSON(JavaScript Object Notation)格式的文件(作为上传结果文件),文件中包含批量上传的结果信息JSON是一种轻量级的数据交换格式。 [0060] After the upload is complete, a file upload component returns JSON (JavaScript Object Notation) format (as a result of uploading files), bulk upload file contains result information JSON is a lightweight data-interchange format. IM客户端通过解析该结果信息,可以得到批量上传成功或失败的信息,如果上传结果为成功,则会进一步解析得到所上传图片的URL;也就是说,上传成功时,上述结果信息中还包含有所上传图片的URL。 IM client parses the result information, you can get bulk upload success or failure of information, if the results of the upload is successful, it will be further parsed uploaded pictures URL; that is, when the upload is successful, these results also contains information URL upload some pictures.

[0061] 下面再结合图3所示的具体实例,对微博消息图片的上传流程做进一步的详细阐述,如图3所示,主要包括以下步骤: [0061] The following specific recombination example shown in FIG. 3, the process of uploading images Twitter message further detail, as shown in FIG. 3, includes the following steps:

[0062]步骤 301,IM 客户端从ChttpUploadPool 中获取CTXHttpDownload 对象。 [0062] Step 301, IM client obtains CTXHttpDownload object from the ChttpUploadPool.

[0063] 步骤302,取等待上传队列m_mapWaiting_Cookie_tagImage中的第一个等待上传项,该上传项中即包含m_mapWaiting_Cookie_tagImage中第一个等待上传的图片。 [0063] Step 302, taking a wait for the first upload in the queue waiting for upload m_mapWaiting_Cookie_tagImage items, i.e. the upload item comprising a first wait m_mapWaiting_Cookie_tagImage uploaded image.

[0064] 步骤303,按上传图片的超文本传输协议(HTTP, HyperText TransferProtocol) 组装上传数据。 [0064] In step 303, according to upload pictures of Hypertext Transfer Protocol (HTTP, HyperText TransferProtocol) assembled to upload data.

[0065] 步骤304,调用CTXHttpDownload对象的接口UploadFormData上传图片,调用失败时执行步骤309,调用成功时执行步骤305。 [0065] Step 304, call the object's interface UploadFormData CTXHttpDownload upload pictures, step 309 is executed when the call fails, the call to step 305 if successful.

[0066] 步骤305,该任务完成数量m_mapTask_Cookie_CompleteNum加1,在上传成功时执行步骤306,上传错误时执行步骤309。 [0066] Step 305, the number of the task is completed m_mapTask_Cookie_CompleteNum plus 1, step 306 is executed when the upload is successful, Step 309 upload errors.

[0067] 步骤306,解析上传结果文件,如果结果显示为成功,则执行步骤307 ;如果结果显示为失败,则执行步骤309。 [0067] Step 306, the analysis results of the upload file, if the result is displayed as successful, step 307 is executed; if the result is displayed as a failure, step 309 is executed.

[0068] 步骤307,解析上传结果文件得到所上传图片的URL和类型。 [0068] In step 307, the analysis results file upload URL and get the type of uploaded images.

[0069] 步骤308,根据解析得到的URL和类型命名图片并保存到IM客户端本地。 [0069] Step 308, based on the URL name and type resolution images obtained and saved to a local IM client.

[0070] 步骤309,检查该批量任务是否已完成,如果完成,则通过回调指针!11_3^110%1~_ [0070] Step 309, to check whether the task has been completed the batch, and if completed, the callback pointer! 11_3 ~ _ 1 ^ 110%

8UploadImage通知应用层;如果未完成,则下载下一个UploadWaitingQueue,并返回步骤301继续执行。 8UploadImage notification application layer; if not completed, the next download UploadWaitingQueue, and returns to step 301 to continue execution.

[0071] 在实际应用中,微博的底层并没有直接暴露下载接口给应用层,而是提供GetImageI^th接口,即查询本地,如果图片存在,则返回成功并带上图片的路径;如果本地不存在,则返回失败且启动下载,下载完成后通知应用层。 [0071] In practical applications, the underlying micro-blog, and download interface is not directly exposed to the application layer, but to provide an interface GetImageI ^ th, i.e. the local query, if the picture is present, and a successful return path band images; If the local does not exist, failed to return and start the download, notifies the application layer after the download is complete.

[0072] 另外,图片是根据其URL和图片的类型来命名的,那么在根据URL和类型查询图片时,可以根据该URL和类型得到图片的文件名,从而在本地的微博图片保存路径查询该图片是否存在,例如:微博图片的保存路径为Util: :Dir: :UserData: :GteImageDir() +L "WBl og\\,,。 [0072] In addition, the picture is based on the type of URL and pictures to name, then when based on the URL and the type of query images can be obtained based on the URL and type of the image file name, so inquire locally microblogging picture save path the picture is present, for example: the save path microblogging picture is Util:: Dir:: UserData:: GteImageDir () + L "WBl og \\ ,,.

[0073] 基于此,本发明实施例所提供的微博消息图片下载流程如图4所示,主要包括以下步骤: [0073] Based on this, a micro-blog message image download process provided by the present embodiment of the invention shown in Figure 4, includes the following steps:

[0074] 步骤401,IM客户端调用GetImageI^ath模块。 [0074] Step 401, IM client calls GetImageI ^ ath module.

[0075] 步骤402,根据所需下载图片的URL和类型查询本地保存路径中是否有该图片,如果有,则向应用层返回所查询到的图片在本地保存的路径;如果没有,则执行步骤403。 [0075] Step 402, based on the URL and download the required type of image queries whether the picture stored in the local path, if any, are returned to the application layer to the image path in the query locally stored; if not, step 403.

[0076] 微博消息中的图片通常是以缩略图或链接的形式显示的,用户要下载对应的图片,需要触发(如鼠标点击)该缩略图或链接。 [0076] microblogging messages or pictures usually in the form of a thumbnail display of links, users should download the corresponding picture, you need to trigger (such as a mouse click) the thumbnails or links.

[0077] 当用户触发所需下载图片的缩略图或链接时,GetImageI^th模块根据所述缩略图或链接获取所需下载图片的URL和类型;将获取到的URL和类型与IM客户端本地保存路径中的图片的URL和类型进行匹配,如果匹配到相同的URL和类型,则判断本地保存路径中有所需下载图片;否则,判断本地保存路径中没有所需下载图片。 [0077] When a user triggers the thumbnail or download the linked image, GetImageI ^ th module acquires the URL and download the images according to the type of the thumbnail image or the link; the acquired URL and type of local IM client URL and type the path to save the picture to match, if the match to the same URL and type, it is determined that there needed to be saved locally path download pictures; otherwise, the judge is not required for local save path download pictures.

[0078]步骤 403,调用DownloadImage 模块。 [0078] Step 403, call DownloadImage module.

[0079] 步骤404,将下载任务的Downloadlmage模块加入下载map中,并设置下载状态为等待。 [0079] Step 404, the download task module Downloadlmage added download the map, and setting the download waiting state.

[0080] 其中,下载map是内存中的一个数据结构,其保存下载任务的相关信息。 [0080] wherein, download map is a data structure in memory that stores information about the download task.

[0081] 步骤405,触发DoDownload模块进行下载。 [0081] In step 405, triggering DoDownload module to download.

[0082] 步骤406,在等待队列中取一个等待的或第一次下载失败的下载任务。 [0082] Step 406, in the fetch queue waits for a download of the first or failed download task.

[0083] 步骤407,下载完成,如果下载成功,则执行步骤408 ;如果下载失败,则执行步骤411。 [0083] Step 407, the download is complete, if the download is successful, step 408; if the download fails, step 411 is executed.

[0084] 步骤408,根据所下载图片的URL和类型生成下载文件名。 [0084] Step 408, generated based on the URL to download the file name and type of the downloaded images.

[0085] 步骤409,拷贝下载文件到Image文件中,删除原临时下载文件。 [0085] In step 409, a copy of downloaded files to Image files, delete temporary download the original file.

[0086] 由于步骤407中下载成功的图片是首先存储到临时下载文件目录中的,因此,步骤409的操作即是将该临时下载文件拷贝到步骤408中的下载文件名所对应的Image文件夹中,而原临时下载文件则需要相应删除。 [0086] Since the step 407 successfully downloaded picture is first stored in the temporary download file in the directory, and therefore, the steps 409 that is a copy of the temporary download files to the step 408 to download the file name corresponding to Image Folder while the original temporary download files you need to delete accordingly.

[0087] 步骤410,抛下载完成事件,执行完后转到步骤412。 [0087] Step 410, the download is complete throwing events, after the implementation proceeds to step 412.

[0088] 下载完成后,DoDownload模块将下载完成事件抛给应用层,通知用户该图片的下载完成。 [0088] After the download is complete, DoDownload module to download the complete event thrown to the application layer, notify the user to download the picture complete.

[0089] 步骤411,在下载失败时,如果判断是第一次下载失败,则修改状态后返回步骤405 ;如果是第二次下载失败,则执行步骤412。 [0089] Step 411, when the download fails, if the judgment is the first download fails, the state returns after the modifying step 405; if it is the second download fails, step 412 is executed.

[0090] 在下载失败时,如果判断是第一次下载失败,则将该图片的下载状态修改为第一次下载失败,从而该图片的状态即从最开始的等待状态,到正在下载状态,再到了现在的第一次下载状态。 [0090] When the download fails, if the judgment is the first download fails, the state of the downloaded image is modified to first download fail, i.e., the state of the picture from the beginning of the wait state, the state is being downloaded, then the first download status now.

[0091] 步骤412,将该下载任务从下载map移出,如果还有其他的下载任务,则返回步骤405继续执行;如果没有下载任务,则结束整个流程。 [0091] Step 412, the download task is removed from the downloaded map, if there are other tasks download, execution returns to step 405 to continue; if the task is not downloaded, then the entire process ends.

[0092] 对应上述基于IM客户端实现微博消息图片管理的方法,本发明还提供了一种基于IM客户端实现微博消息图片管理的装置,适用于IM客户端中,该装置包括:上传组件和下载组件。 [0092] The above-described method corresponding to the image management message Twitter IM client-based implementation of the present invention also provides a method based IM client implementation Twitter picture message management apparatus for IM client, the apparatus comprising: uploading components and downloading components.

[0093] 其中,上传组件用于在IM的用户需要上传图片时,通过对批量上传接口的调用, 将等待批量上传的图片加入等待上传队列中,并通过对等待上传队列的扫描,对等待上传队列中的图片进行上传。 [0093] wherein, when the upload component for IM user needs to upload pictures, by bulk upload call interface will wait for a waiting bulk upload image upload queue and waiting for upload by scanning the queue, waiting for upload picture upload queue.

[0094] 下载组件,用于在IM的用户需要下载图片时,根据所需下载图片的URL和类型查询本地保存路径中是否有所需下载图片,如果有,则直接返回所需下载图片在本地保存的路径;如果没有,则执行相应图片的下载,并将下载的图片保存到本地。 [0094] download components for an IM users need to download the pictures, if there needed to download images stored locally path based on the URL and type download pictures query, if any, required to download pictures directly back locally saved path; if not, proceed to download the appropriate image, save and download the pictures to your local. 具体的:当用户触发所需下载图片的缩略图或链接时,根据所述缩略图或链接获取所需下载图片的URL和类型;将获取到的URL和类型与IM客户端本地保存路径中的图片的URL和类型进行匹配,如果匹配到相同的URL和类型,则判断本地保存路径中有所需下载图片;否则,判断本地保存路径中没有所需下载图片。 Specifically: When a user triggers the desired image thumbnails or links to download, access the URL and download the images according to the type of the thumbnails or links; the acquired URL and type of IM client local save path URL and type of the image to match, if the match to the same URL and type, it is determined that there needed to be saved locally path download pictures; otherwise, the judge is not required for local save path download pictures.

[0095] 进一步的,上传组件还用于在上传完成后,解析生成的上传结果文件,在解析显示上传成功时,进一步解析得到所上传图片的URL和类型,并根据解析得到URL和类型命名图片并保存到IM客户端本地。 [0095] Further, the upload component is further configured to, after the upload is complete, the resulting analytical results of the upload file, parsing display successful upload, further resolved to give the URL and the type of uploaded images, and the type and URL naming pictures obtained based on the analysis and save it to IM clients locally.

[0096] 进一步的,该装置还包括底层组件,用于负责创建上传的TCP通道,并建立连接; 底层组件的管理池,负责多个底层组件的提供以及管理多个底层组件的状态。 [0096] Further, the apparatus further comprises a bottom layer assembly, is responsible for creating the TCP channel to upload and establish a connection; underlying pool management module, responsible for providing a plurality of underlying components and a plurality of state management of the underlying components.

[0097] 进一步的,下载组件还用于,在下载成功时,将以URL和类型命名的图片保存到IM 客户端本地。 [0097] Further, the component is also used to download, when the download is successful, will save the URL and type the name of the picture IM client locally. 在下载失败时,判断对应图片是否为第一次下载失败,如果是第一次下载失败,则将对应图片的状态修改为第一次下载失败并重新下载;否则,结束下载。 When the download fails, to determine whether the corresponding picture for the first time failed to download, if download failed the first time, the picture will be changed to the state corresponding to first download fails and re-download; otherwise, the end of the download.

[0098] 综上所述,本发明一方面在微博应用中由于消息传播的特点以及泛关系链的用户模型,可以非常方便的实现大消息量中图片信息的上传与下载拉取管理;而且,本发明通过URL和图片的类型来唯一确认图片,并将已下载过的图片用URL和类型命名后保存到IM客户端本地,这可以有效避免重复下载。 [0098] In summary, an aspect of the present invention, since the micro-blog application message propagation characteristics and the user model pan relationship chain may be very easy to realize uploading and downloading image information in a large amount in pulling management message; and the present invention is to uniquely identify pictures by URL and type of the image, and has downloaded the picture is saved with the URL to the name and type of local IM client, which can effectively avoid duplication download. 另一方面也可以非常方便的将这类模型复用在类似大消息量中图片信息的管理产品中,实现消息图片信息的有效管理和展现。 On the other hand can be very convenient to reuse this type of model in the management of a large volume of messages similar products in the picture information, the effective management of information and presentation of news pictures. 本发明基于IM 客户端实现的图片管理方法和装置,不仅限于在微博消息中的应用,对于类似微博这种大消息量的应用都是适用的。 The present invention is based on the image management method and apparatus IM client implementation is not limited to application in micro-blog message, the message for such a large amount of micro-blog like application are suitable.

[0099] 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 [0099] The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention.

Claims (14)

1. 一种基于即时通讯(IM)客户端实现消息图片管理的方法,其特征在于,该方法包括:当IM的用户需要下载图片时,IM客户端的下载组件根据所需下载图片的统一资源定位符(URL)和类型查询本地保存路径中是否有所需下载图片,如果有,则直接返回所需下载图片在本地保存的路径;如果没有,则执行相应图片的下载,并将下载的图片保存到本地。 1. A method for message-based image management of instant messaging (IM) client, wherein the method comprises: when the IM user needs to download pictures, download IM client component positioning according to the uniform resource required to download the picture Fu (URL) and the type of query whether there needed to download images stored locally path, if there is, then returned directly download pictures stored in the local path required; download if not, then the implementation of the corresponding picture, and save the downloaded pictures locally.
2.根据权利要求1所述基于IM客户端实现消息图片管理的方法,其特征在于,所述当IM的用户需要下载图片时,IM客户端的下载组件根据所需下载图片的URL和类型查询本地保存路径中是否有所需下载图片,具体为:当用户触发所需下载图片的缩略图或链接时,根据所述缩略图或链接获取所需下载图片的URL和类型;将获取到的URL和类型与所述IM客户端本地保存路径中的图片的URL和类型进行匹配,如果匹配到相同的URL和类型,则判断所述本地保存路径中有所需下载图片;否则,判断所述本地保存路径中没有所需下载图片。 The image management method for message-based IM client of claim 1, wherein, when the IM user needs to download images, download component queries the local IM client based on the URL and download the image to the desired type is there a path to save the required download pictures, in particular: when the user triggers a thumbnail or link to download the images, access URL and download the images according to the type of the thumbnails or links; and the acquired URL type of the IM client and the URL stored in the local path type image matches, if the URL and matched to the same type, it is determined that the path has stored locally download pictures required; otherwise, determining that the locally stored the path is not required to download pictures.
3.根据权利要求1或2所述基于IM客户端实现消息图片管理的方法,其特征在于,该方法进一步包括:在下载成功时,将以URL和类型命名的图片保存到IM客户端本地。 3. The method for message-based image management of the IM client according to claim 1 or 2, characterized in that, the method further comprising: upon successfully downloaded, will save the URL and the name of the type IM client to the local image.
4.根据权利要求1或2所述基于IM客户端实现消息图片管理的方法,其特征在于,该方法进一步包括:在下载失败时,判断对应图片是否为第一次下载失败,如果是第一次下载失败,则将对应图片的状态修改为第一次下载失败并重新下载;否则,结束下载。 The image management method for message-based IM client as claimed in claim 1 or 2, characterized in that, the method further comprising: a download fails, it is determined whether or not the first image corresponding to the download fails, if it is the first downloads fail, then the picture corresponding to the first state to modify and re-download the download fails; otherwise, the end of the download.
5.根据权利要求1所述基于IM客户端实现消息图片管理的方法,其特征在于,该方法进一步包括:当IM的用户需要上传图片时,IM客户端的上传组件通过对批量上传接口的调用,将等待批量上传的图片加入等待上传队列中,并通过对等待上传队列的扫描,对所述等待上传队列中的图片进行上传。 The image management method for message-based IM client of claim 1, wherein the method further comprises: when a user needs to upload image IM, the IM client upload component by calling the bulk upload interface, We will wait a waiting bulk upload image upload queue, and the queue of waiting for upload scanning the queue waiting for upload by uploading picture.
6.根据权利要求5所述基于IM客户端实现消息图片管理的方法,其特征在于,在上传完成后该方法进一步包括:解析生成的上传结果文件,如果解析显示上传成功,则进一步解析得到所上传图片的URL和类型;根据解析得到URL和类型命名图片并保存到所述IM客户端本地。 The image management method for message-based IM client as claimed in claim 5, characterized in that the method further comprises, after the completion of uploading: parsing the file upload result generated, parsing the display if successful, it is further resolved to give URL and upload pictures of type; according to resolve URL and get the type of picture naming and save to the IM client locally.
7.根据权利要求5或6所述基于IM客户端实现消息图片管理的方法,其特征在于,该方法进一步包括:所述图片的上传还需调用底层组件,负责创建上传的传输控制协议(TCP)通道,并建立连接;所述IM客户端采用底层组件的管理池,负责多个底层组件的提供以及管理多个底层组件的状态。 The image management method for message-based IM client claimed in claim 5 or claim 6, wherein the method further comprises: the call needs to upload pictures to underlying components, responsible for creating uploaded Transmission Control Protocol (TCP ) channel, and establishes a connection; IM client uses the underlying pool management module, responsible for providing a plurality of underlying components and a plurality of state management of the underlying components.
8. 一种基于IM客户端实现消息图片管理的装置,其特征在于,该装置包括:下载组件, 用于在IM的用户需要下载图片时,根据所需下载图片的URL和类型查询本地保存路径中是否有所需下载图片,如果有,则直接返回所需下载图片在本地保存的路径;如果没有,则执行相应图片的下载,并将下载的图片保存到本地。 A device management message image IM client-based implementation wherein, the apparatus comprising: a download component for when the user needs to download the image IM, based on the URL and type download pictures stored in the local query path if there needed to download pictures, if any, required to return directly download pictures saved in a local path; if not, proceed to download the appropriate image, download and save images locally.
9.根据权利要求8所述基于IM客户端实现消息图片管理的装置,其特征在于,所述下载组件进一步用于,当用户触发所需下载图片的缩略图或链接时,根据所述缩略图或链接获取所需下载图片的URL和类型;将获取到的URL和类型与所述IM客户端本地保存路径中的图片的URL和类型进行匹配,如果匹配到相同的URL和类型,则判断所述本地保存路径中有所需下载图片;否则,判断所述本地保存路径中没有所需下载图片。 9. The apparatus for message-based image management of the IM client according to claim 8, wherein said component is further configured to download, when a user triggers the thumbnail or download the linked image based on the thumbnail or a URL link for downloading pictures and type; URL and the type of the acquired URL and type of the IM client of the image stored in the local path matches, if the URL and matched to the same type, it is determined whether the said local path stored pictures have the required downloading; otherwise, determining whether the local storage is not required to download image path.
10.根据权利要求8或9所述基于IM客户端实现消息图片管理的装置,其特征在于,所述下载组件进一步用于,在下载成功时,将以URL和类型命名的图片保存到IM客户端本地。 10. The image management apparatus to implement message based IM client according to claim 8 or claim 9, wherein said assembly is further configured to download, the download is successful, will save the URL and the type of image to IM client named end local.
11.根据权利要求8或9所述基于IM客户端实现消息图片管理的装置,其特征在于,所述下载组件进一步用于,在下载失败时,判断对应图片是否为第一次下载失败,如果是第一次下载失败,则将对应图片的状态修改为第一次下载失败并重新下载;否则,结束下载。 11. The apparatus for message management based image IM client according to claim 8 or claim 9, wherein said assembly is further configured to download, the download fails, it is determined whether or not the first image corresponding to the download fails, if download failed for the first time, the picture will be changed to the state corresponding to first download fails and re-download; otherwise, the end of the download.
12.根据权利要求8所述基于IM客户端实现消息图片管理的装置,其特征在于,该装置还包括:上传组件,用于在IM的用户需要上传图片时,通过对批量上传接口的调用,将等待批量上传的图片加入等待上传队列中,并通过对等待上传队列的扫描,对所述等待上传队列中的图片进行上传。 12. The apparatus for message-based image management of the IM client according to claim 8, wherein the apparatus further comprises: uploading assembly for an IM user needs to upload pictures by calling bulk upload interface, We will wait a waiting bulk upload image upload queue, and the queue of waiting for upload scanning the queue waiting for upload by uploading picture.
13.根据权利要求12所述基于IM客户端实现消息图片管理的装置,其特征在于,所述上传组件进一步用于,在上传完成后,解析生成的上传结果文件,在解析显示上传成功时, 进一步解析得到所上传图片的URL和类型,并根据解析得到URL和类型命名图片并保存到所述IM客户端本地。 13. The apparatus for message-based image management of the IM client according to claim 12, wherein the upload component is further configured to, after the upload is complete, the resulting analytical results of the upload file upload is successful in the analysis and display, further parse the URL and get the type of uploaded images, and get the URL and type names and images saved to the IM client according to local resolution.
14.根据权利要求12或13所述基于IM客户端实现消息图片管理的装置,其特征在于, 该装置还包括底层组件,用于负责创建上传的TCP通道,并建立连接;底层组件的管理池,负责多个底层组件的提供以及管理多个底层组件的状态。 14. The apparatus for message management based image IM client 12 or claim 13, wherein the apparatus further comprises a bottom layer assembly, is responsible for creating the TCP channel to upload and establish a connection; underlying pool management component , responsible for providing and managing multiple multiple underlying components of the underlying components of the state.
CN 201010503345 2010-09-30 2010-09-30 Method and device for managing messages and pictures based on IM (Instant Messaging) client CN102447642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010503345 CN102447642B (en) 2010-09-30 2010-09-30 Method and device for managing messages and pictures based on IM (Instant Messaging) client

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201010503345 CN102447642B (en) 2010-09-30 2010-09-30 Method and device for managing messages and pictures based on IM (Instant Messaging) client
PCT/CN2011/079970 WO2012041177A1 (en) 2010-09-30 2011-09-21 Method and apparatus for client-side management of messages and pictures based on im

Publications (2)

Publication Number Publication Date
CN102447642A true true CN102447642A (en) 2012-05-09
CN102447642B CN102447642B (en) 2015-04-15

Family

ID=45891928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010503345 CN102447642B (en) 2010-09-30 2010-09-30 Method and device for managing messages and pictures based on IM (Instant Messaging) client

Country Status (2)

Country Link
CN (1) CN102447642B (en)
WO (1) WO2012041177A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760070A (en) * 2012-06-08 2012-10-31 华为终端有限公司 Method for storing downloaded file and mobile terminal
CN103390012A (en) * 2012-09-13 2013-11-13 爱乐活(北京)科技有限公司 Display picture generating method and device based on access
CN103793380A (en) * 2012-10-26 2014-05-14 北京新媒传信科技有限公司 Method and system for downloading picture in application
CN104348705A (en) * 2013-08-01 2015-02-11 上海云睦网络科技有限公司 Picture group sending data processing method based on enterprise instant communication platform

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780652B (en) * 2012-10-23 2017-12-01 腾讯科技(深圳)有限公司 A micro-Bo method and system resource sharing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054917B1 (en) * 2002-08-07 2006-05-30 Propel Software Corporation Method for accelerating delivery of content in a computer network
CN101221580A (en) * 2008-01-03 2008-07-16 中兴通讯股份有限公司 Method for improving page layout display performance of embedded browser
CN101246476A (en) * 2007-02-15 2008-08-20 北京腾瑞万里信息技术有限公司 Map data downloading method, downloading device and server
CN101458693A (en) * 2007-12-13 2009-06-17 鸿富锦精密工业(深圳)有限公司;鸿海精密工业股份有限公司 Web page download parsing system and method
CN101465953A (en) * 2009-01-15 2009-06-24 深圳市茁壮网络技术有限公司 Method for displaying picture and system for browsing digital television picture as well as television set-top box

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054917B1 (en) * 2002-08-07 2006-05-30 Propel Software Corporation Method for accelerating delivery of content in a computer network
CN101246476A (en) * 2007-02-15 2008-08-20 北京腾瑞万里信息技术有限公司 Map data downloading method, downloading device and server
CN101458693A (en) * 2007-12-13 2009-06-17 鸿富锦精密工业(深圳)有限公司;鸿海精密工业股份有限公司 Web page download parsing system and method
CN101221580A (en) * 2008-01-03 2008-07-16 中兴通讯股份有限公司 Method for improving page layout display performance of embedded browser
CN101465953A (en) * 2009-01-15 2009-06-24 深圳市茁壮网络技术有限公司 Method for displaying picture and system for browsing digital television picture as well as television set-top box

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
永辉: "《哈娜现身 腾讯微薄Android手机客户端试用》", 《HTTP://NEWS.MYDRIVERS.COM/1/163/163575_ALL.HTM》, 7 May 2010 (2010-05-07) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760070A (en) * 2012-06-08 2012-10-31 华为终端有限公司 Method for storing downloaded file and mobile terminal
CN103390012A (en) * 2012-09-13 2013-11-13 爱乐活(北京)科技有限公司 Display picture generating method and device based on access
CN103390012B (en) * 2012-09-13 2017-03-08 百度在线网络技术(北京)有限公司 A method and apparatus based on the display image generation access
CN103793380A (en) * 2012-10-26 2014-05-14 北京新媒传信科技有限公司 Method and system for downloading picture in application
CN103793380B (en) * 2012-10-26 2017-08-04 北京新媒传信科技有限公司 Method for downloading images and application systems
CN104348705A (en) * 2013-08-01 2015-02-11 上海云睦网络科技有限公司 Picture group sending data processing method based on enterprise instant communication platform
CN104348705B (en) * 2013-08-01 2017-12-15 上海云睦网络科技有限公司 Image data processing method based on mass enterprise instant messaging platform

Also Published As

Publication number Publication date Type
CN102447642B (en) 2015-04-15 grant
WO2012041177A1 (en) 2012-04-05 application

Similar Documents

Publication Publication Date Title
US7917584B2 (en) Gesture-based collaboration
US8224308B1 (en) Mobile device catalog registration based on user agents and customer snapshots of capabilities
US20070027857A1 (en) System and method for searching multimedia and download the search result to mobile devices
US20090158142A1 (en) Network operating system
US20100223467A1 (en) Methods and Systems for Sharing Database Content
US20100306642A1 (en) Co-browsing (java) scripted html documents
US20040172451A1 (en) System and method for sharing digital images
US6684239B1 (en) System and method for automatically publishing electronic mail messages on the internet
US20060047844A1 (en) One step approach to deliver multimedia from local PC to mobile devices
US20090013265A1 (en) Instant messaging communication system and method
US20090094377A1 (en) Method and system for accelerating browsing sessions
US20140059217A1 (en) Method for content change notification in a cloud storage system, a corresponding cloud broker and cloud agent
US20070159651A1 (en) Publishing and subscribing to digital image feeds
US20090006538A1 (en) Automatic Distributed Downloading
US20050097367A1 (en) System for providing services for applications available under different protocols
US7499958B1 (en) Systems and methods of replicating all or part of a data store
US20100217834A1 (en) Configuration and distribution of content at capture
CN101957844A (en) On-line application system and implementation method thereof
US20120072541A1 (en) Dynamic application programming interface
CN101193074A (en) A method and system for display image on instant communication demonstration frame
JP2006345214A (en) Method and device for distributing 3-dimensional image data
CN102857579A (en) Information processing method, device, terminal and server
Allinson et al. SWORD: Simple Web-service offering repository deposit
US20050071754A1 (en) Pushing information to distributed display screens
CN102508843A (en) Screen capture method and system with microblogging function

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model