CN102447642B - 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
CN102447642B
CN102447642B CN201010503345.0A CN201010503345A CN102447642B CN 102447642 B CN102447642 B CN 102447642B CN 201010503345 A CN201010503345 A CN 201010503345A CN 102447642 B CN102447642 B CN 102447642B
Authority
CN
China
Prior art keywords
download
picture
client
pictures
url
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010503345.0A
Other languages
Chinese (zh)
Other versions
CN102447642A (en
Inventor
张丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201010503345.0A priority Critical patent/CN102447642B/en
Priority to PCT/CN2011/079970 priority patent/WO2012041177A1/en
Publication of CN102447642A publication Critical patent/CN102447642A/en
Application granted granted Critical
Publication of CN102447642B publication Critical patent/CN102447642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

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

A kind of method and apparatus realizing message pictures management based on IM client
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and apparatus realizing message pictures management based on instant messaging (IM) client.
Background technology
Network instant communication (IM, Instant Messaging) instrument is developed so far, accept by numerous netizens, and become the requisite Software tool of user, IM not only in amusement and recreation at ordinary times, and is widely used in the work of user.Therefore, in actual application, the aspect such as ease for use, stability, fail safe of user to IM proposes higher requirement.In IM software, what mainly realize is the group of the independent Chat mode of man-to-man good friend and one-to-many or the messaging chat pattern of discussion group.Along with the development of internet, applications, the microblogging application of the similar spy of pushing away (twitter) is as a kind of new tool also development growth expanding IM message propagation mechanism, this kind of miniature blog makes user express oneself by the amount of information about 140 words, this mode can be propagated very fast, realize user message Chat mode from one to one, one-to-many is to a pair infinite leap; This pair infinite messaging chat pattern also means that a user can carry out transmission of news to infinite multiple user, also can collect the user message of more than ten thousand grades while of a user simultaneously, thus this also just proposes new requirement to the application of large user's amount.
Microblogging obtains as a kind of new opplication of the IM of expansion message propagation mechanism and develops fast, but the good friend's quantity in original IM instrument (maximum hundreds of) and microblogging listen to customer volume obviously not in same grade (more than ten thousand grades); The customer volume listened to due to microblogging is very huge, this just causes IM client to receive the size of message of Twitter message can be very large, but, lack in IM client at present and a kind ofly can carry out uploading and download the technical scheme pulling management for the picture of this large size of message, thus picture uploading and the download management that cannot realize fast and effectively in this large size of message application of similar microblogging and represent.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and apparatus realizing message pictures management based on IM client, with the picture uploading and the download management that realize fast and effectively in this large size of message application of similar microblogging and represent.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method realizing message pictures management based on instant messaging (IM) client, the method comprises:
When the user of IM needs download pictures, whether the download component of IM client has required download pictures according in the URL(uniform resource locator) (URL) of required download pictures and the local storing path of type queries, if had, then directly return to the path that required download pictures is preserved in this locality; If no, then perform the download of corresponding picture, when downloading successfully, local by being saved in IM client with the picture of URL and type command.
When the described user as IM needs download pictures, whether the download component of IM client has required download pictures according in the URL of required download pictures and the local storing path of type queries, is specially:
When user triggers thumbnail or the link of required download pictures, obtain URL and the type of required download pictures according to described thumbnail or link;
The URL of the picture in local to the URL got and type and described IM client storing path and type are mated, if match identical URL and type, then judges there is required download pictures in described local storing path; Otherwise, judge there is no required download pictures in described local storing path.
The method comprises further:
When failed download, judge that whether corresponding picture is first time failed download, if first time failed download, then by the status modifier of corresponding picture for first time failed download is laid equal stress on newly downloaded; Otherwise, terminate to download.
The method comprises further:
When the user of IM needs uploading pictures, the transmitting assembly of IM client is by uploading calling of interface to batch, to wait in the queues to be uploaded such as the picture uploaded of batch adds, and by the scanning of reciprocity queue to be uploaded, the picture in the queue to be uploaded such as described will be uploaded.
After having uploaded, the method comprises further:
That resolves generation uploads destination file, uploads successfully, then resolve the URL and the type that obtain institute's uploading pictures further if resolve display;
URL and type command picture is obtained and to be saved in described IM client local according to parsing.
The method comprises further:
Uploading of described picture also needs to call bottom assembly, transmission control protocol (TCP) passage that responsible establishment is uploaded, and connects;
Described IM client adopts the stored reservoir of bottom assembly, is responsible for providing and managing the state of multiple bottom assembly of multiple bottom assembly.
Present invention also offers a kind of device realizing message pictures management based on IM client, this device comprises: download component, for when the user of IM needs download pictures, required download pictures whether is had according in the URL of required download pictures and the local storing path of type queries, if had, then directly return to the path that required download pictures is preserved in this locality; If no, then perform the download of corresponding picture, when downloading successfully, local by being saved in IM client with the picture of URL and type command.
Described download component is further used for, and when user triggers thumbnail or the link of required download pictures, obtains URL and the type of required download pictures according to described thumbnail or link; The URL of the picture in local to the URL got and type and described IM client storing path and type are mated, if match identical URL and type, then judges there is required download pictures in described local storing path; Otherwise, judge there is no required download pictures in described local storing path.
Described download component is further used for, and when failed download, judges that whether corresponding picture is first time failed download, if first time failed download, then by the status modifier of corresponding picture for first time failed download is laid equal stress on newly downloaded; Otherwise, terminate to download.
This device also comprises: transmitting assembly, for when the user of IM needs uploading pictures, by uploading calling of interface to batch, will wait in the queues to be uploaded such as the picture uploaded in batches adds, and by the scanning of reciprocity queue to be uploaded, the picture in the queue to be uploaded such as described is uploaded.
Described transmitting assembly is further used for, after having uploaded, that resolves generation has uploaded destination file, when resolving display and uploading successfully, further parsing obtains URL and the type of institute's uploading pictures, and obtains URL and type command picture according to parsing and to be saved in described IM client local.
This device also comprises bottom assembly, for the TCP channel that responsible establishment is uploaded, and connects;
The stored reservoir of bottom assembly, is responsible for providing and managing the state of multiple bottom assembly of multiple bottom assembly.
A kind of method and apparatus realizing message pictures management based on IM client provided by the present invention, due to the feature of message propagation and the user model of universal relation chain in microblogging application, uploading and downloading of pictorial information in large size of message can be realized very easily and pull management; In addition, the present invention uniquely confirms picture by the type of URL and picture, and local by being saved in IM client after the picture URL downloaded and type command, and this effectively can be avoided repeated downloads.
Accompanying drawing explanation
Fig. 1 is the structural representation of the upload and download assembly of Twitter message picture in the present invention;
Fig. 2 is the method flow diagram one realizing Twitter message picture uploading in the embodiment of the present invention based on IM client;
Fig. 3 is the method flow diagram two realizing Twitter message picture uploading in the embodiment of the present invention based on IM client;
Fig. 4 is the method flow diagram realizing the download of Twitter message picture in the embodiment of the present invention based on IM client.
Embodiment
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
The present invention is based on IM client, for the picture uploading and the download management that realize fast and effectively in this large size of message application of similar microblogging and represent.In IM client, picture uploading and download are supplied to upper strata call as global service (Service) models, and IM client externally provides picture uploading and download function according to concrete application, and encapsulates the details uploading download.
For picture uploading, consider later autgmentability according to the embody rule scene of this large size of message application of similar microblogging, IM client externally provides the interface that batch is uploaded, and namely the outside of IM client can be called once this interface and be uploaded plurality of pictures; This collection of picture that will upload has gone as a task by the download component of uploading of IM client, and after uploading, notify that the application layer of IM client has been uploaded complete.
Download for picture, IM client externally provides the interface downloading single picture according to URL(uniform resource locator) (URL, UniversalResource Locator).Consider the enormous amount of the picture due to this large size of message application of similar microblogging, in order to reduce the performance Showed Picture to the pressure downloaded and raising IM client, the figure sector-meeting of download is saved in this locality of IM client; If when having the request of downloading this picture next time again, then directly can return the picture that IM client this locality is preserved.
As shown in Figure 1, for the structural representation uploading download component of the Twitter message of IM client, the download component of uploading of IM client externally provides interface ITXWBlogImageMgr, provides batch uploading pictures (UploadImageList), cancels and upload (CancelUploadImageList), obtain picture path (GetImagePath) and cancel download (CancelDownloadImage) these four modules in this interface; Wherein, module UploadImageList, CancelUploadImageList are for realizing the picture uploading function of Twitter message; Module GetImagePath, CancelDownloadImage are for realizing the picture download function of Twitter message.This ITXWBlogImageMgr interface is realized by CWBlogImageMgr (CWBlogImageMgr is as a class), and the inside of CWBlogImageMgr contains with lower module:
UploadImageList, CancelUploadImageList, GetImagePath, QueryImagePath and CancelDownloadImage,
Wherein, QueryImagePath is the module of inquiry local path.
The interior polymeric of CWBlogImageMgr CWBlogImageUpload object and CWBlogImageDownload object, upload function is realized by CWBlogImageUpload object, and download function is realized by CWBlogImageDownload object.Wherein, comprise in CWBlogImageUpload object with lower module: UploadImageList, CancelUploadImageList, OnUploadComplete, UploadWaitingQueue, InternelUploadImage, GetInfoFromResultFile and CheckNeedCallback
Wherein, the process of module OnUploadComplete for having uploaded; Module UploadWaitingQueue is for choosing the picture uploading in waiting list; Module I nternelUploadImage is used for uploading pictures; The destination file that module GetInfoFromResultFile returns for uploading complete resolution server, comprises the URL of institute's uploading pictures in this destination file; Module CheckNeedCallback, for checking whether a collection of picture is all uploaded, needs after uploading to inform that user's this batch of picture has been uploaded complete.
Comprise in CWBlogImageDownload object with lower module: DownloadImage, OnDownloadComplete, DoDownload and CancelDownloadImage,
Wherein, module DownloadImage is used for user and calls this interface download pictures, task is joined in the waiting list of download; The process of module OnDownloadComplete for having downloaded; Module DoDownload is used for down operation; Module CancelDownloadImage is for cancelling the operation of download.
In addition, WBlogImageHelper is the help class that picture uploading is downloaded, provide picture uploading in WBlogImageHelper and download relevant help module, mainly comprise: GetImageHash, GetImageSize, AddImagePostfix, GetFullUrl, GetUrlAndSize, GetFileNameFromUrl and GteImageSavePath.Wherein, module GetImageHash is for obtaining the operation of picture hash; Module GetImageSize is for obtaining the operation of picture size; Modules A ddImagePostfix is for adding the operation of picture suffix; Module GetFullUrl is for obtaining the operation of URL; Module GetUrlAndSize is for obtaining the operation of URL and picture size; Module GetFileNameFromUrl is used for the operation obtaining filename from URL; Module GteImageSavePath is for obtaining the operation of picture storing path.
It should be noted that, upload the application of download component for this large size of message of similar microblogging shown in above-mentioned Fig. 1, is all applicable.Download component is uploaded based on IM client shown in above-mentioned Fig. 1, the method of the message pictures management that the present invention realizes, the upload and download comprising picture manages two aspects, and upload administrative section and come by transmitting assembly, download management part has been come by download component; Certainly, also transmitting assembly and download component can be closed in the present invention and establish, composition uploads download component, realizes upload and download management.For the pictures management of Twitter message, wherein, Twitter message picture upload flow process as shown in Figure 2, mainly comprise the following steps:
Step 201, IM client call batch uploads interface, the UploadImageList module namely in calling interface ITXWBlogImageMgr.
When the user of IM needs to utilize in IM client upload picture to microblogging, manually operation triggers IM client call batch and uploads interface, and the UploadImageList module namely in interface ITXWBlogImageMgr is called.
Step 202, IM client is uploaded in interface to the batch called and is added task queue m_mapTask_Cookie_Array.This task is the task that picture batch is uploaded.
Step 203, this task of IM client initialization (namely picture batch uploads task) quantity performed m_mapTask_Cookie_CompleteNum.The transformation that this m_mapTask_Cookie_CompleteNum uploads for limiting picture batch.
Step 204, IM client is compressed and format conversion processing picture to be uploaded.
Step 205, IM client is by the queue m_mapWaiting_Cookie_tagImage to be uploaded such as need each picture of uploading of batch to add.
Step 206, IM client is by the queues to be uploaded such as readjustment pointer m_SinkMgr_UploadImage adds.The object adding readjustment pointer is, after batch has been uploaded, by this readjustment pointer notice application layer, and then the operation that batch is uploaded completes to allow user know.
Step 207, triggers UploadWaitingQueue module and starts the operation performing picture uploading.
After UploadWaitingQueue module is triggered, the queues to be uploaded such as scanning, the picture at every turn calling head of the queue is uploaded.Opportunity of calling of this UploadWaitingQueue module can be after the queues to be uploaded such as picture adds, call a picture complete after or upload after a picture completes.
In addition, uploading of picture also needs to call bottom assembly CTXHttpDownload, by bottom assembly CTXHttpDownload be responsible for creating upload transmission control protocol (TCP, Transmission ControlProtocol) passage, connect, send the process such as picture.
Further, in order to ensure upper transfer efficiency, the present invention can also adopt the stored reservoir CHttpUploadPool of a CTXHttpDownload, is responsible for the state providing CTXHttpDownload object and management CTXHttpDownload object.Preferably, the maximum management of stored reservoir 5 CTXHttpDownload objects of CTXHttpDownload, and upload while 5 pictures can be supported.
After having uploaded, transmitting assembly can return the file (as uploading destination file) of a JSON (JavaScript Object Notation) form, comprises the object information that batch is uploaded in file; JSON is a kind of data interchange format of lightweight.IM client, by resolving this object information, can obtain batch and upload successfully or the information of failure, if uploading result is successfully, then can resolve the URL obtaining institute's uploading pictures further; That is, when uploading successfully, in the above results information, also comprise the URL of uploading pictures to some extent.
Instantiation shown in composition graphs 3 more below, does further elaborate the flow process of uploading of Twitter message picture, as shown in Figure 3, mainly comprise the following steps:
Step 301, IM client obtains CTXHttpDownload object from ChttpUploadPool.
Step 302, the items to be uploaded such as first in queue m_mapWaiting_Cookie_tagImage to be uploaded such as to get, and this is uploaded in item and namely to comprise in m_mapWaiting_Cookie_tagImage the picture to be uploaded such as first.
Step 303, assembles uploading data by the HTML (Hypertext Markup Language) (HTTP, HyperText TransferProtocol) of uploading pictures.
Step 304, calls the interface UploadFormData uploading pictures of CTXHttpDownload object, performs step 309 during malloc failure malloc, performs step 305 when calling successfully.
Step 305, this task quantity performed m_mapTask_Cookie_CompleteNum adds 1, performs step 306 when uploading successfully, performs step 309 when uploading mistake.
Step 306, resolves and uploads destination file, if result is shown as successfully, then performs step 307; If result is shown as unsuccessfully, then perform step 309.
Step 307, resolves and uploads URL and the type that destination file obtains institute's uploading pictures.
Step 308, according to resolving the URL that obtains and type command picture and to be saved in IM client local.
Step 309, checks whether this batch tasks completes, if completed, then notifies application layer by readjustment pointer m_SinkMgr_UploadImage; If do not completed, then download next UploadWaitingQueue, and return step 301 continuation execution.
In actual applications, the bottom of microblogging does not directly expose download interface to application layer, and is to provide GetImagePath interface, namely inquires about this locality, if picture existence, then returns successfully and brings the path of picture; If this locality does not exist, then return failure and start and download, downloaded rear notice application layer.
In addition, picture names according to the type of its URL and picture, so when according to URL and type queries picture, the filename of picture can be obtained according to this URL and type, thus inquire about this picture at the microblog picture storing path of this locality and whether exist, such as: the storing path of microblog picture is Util::Dir::UserData::GteImageDir ()+L " WBlog ".
Based on this, the Twitter message picture that the embodiment of the present invention provides downloads flow process as shown in Figure 4, mainly comprises the following steps:
Step 401, IM client call GetImagePath module.
Whether step 402, have this picture according in the URL of required download pictures and the local storing path of type queries, if had, then returns to application layer the path that inquired picture preserves in this locality; If no, then perform step 403.
Picture in Twitter message is normally with the display of the form of thumbnail or link, and user will download corresponding picture, needs to trigger (as mouse is clicked) this thumbnail or link.
When user triggers thumbnail or the link of required download pictures, GetImagePath module obtains URL and the type of required download pictures according to described thumbnail or link; The URL of the picture in local to the URL got and type and IM client storing path and type are mated, if match identical URL and type, then judges there is required download pictures in local storing path; Otherwise, judge there is no required download pictures in local storing path.
Step 403, calls DownloadImage module.
Step 404, adds the DownloadImage module of downloading task and downloads in map, and arranges download state for waiting for.
Wherein, download map is a data structure in internal memory, and it preserves the relevant information of downloading task.
Step 405, triggers DoDownload module and downloads.
Step 406, gets a downloading task that is that wait for or failed download for the first time in waiting list.
Step 407, download completes, if download successfully, then performs step 408; If failed download, then perform step 411.
Step 408, according to URL and the type generation download file name of institute's download pictures.
Step 409, copy download file, in Image file, deletes former interim download file.
First be stored in interim download file catalogue owing to downloading successful picture in step 407, therefore, namely the operation of step 409 is copied to by this interim download file in the Image file corresponding to download file name in step 408, and former interim download file then needs corresponding deletion.
Step 410, throws download and completes event, forward step 412 to after executing.
After download completes, download is completed event and to throw to application layer by DoDownload module, notifies that the download of this picture of user completes.
Step 411, when failed download, if judge it is first time failed download, then returns step 405 after amendment state; If second time failed download, then perform step 412.
When failed download, if judge it is first time failed download, then the download state of this picture is revised as first time failed download, thus the wait state of the state of this picture namely from, to just in download state, then arrives present first time download state.
Step 412, shifts out this downloading task from download map, if also have other downloading task, then returns step 405 and continues to perform; If there is no downloading task, then terminate whole flow process.
The corresponding above-mentioned method realizing Twitter message pictures management based on IM client, present invention also offers a kind of device realizing Twitter message pictures management based on IM client, be applicable in IM client, this device comprises: transmitting assembly and download component.
Wherein, transmitting assembly is used for when the user of IM needs uploading pictures, by uploading calling of interface to batch, will wait in the queues to be uploaded such as the picture uploaded in batches adds, and by the scanning of reciprocity queue to be uploaded, the picture in reciprocity queue to be uploaded is uploaded.
Whether download component, for when the user of IM needs download pictures, have required download pictures according in the URL of required download pictures and the local storing path of type queries, if had, then directly return to the path that required download pictures is preserved in this locality; If no, then perform the download of corresponding picture, and the picture of download is saved in this locality.Concrete: when user triggers thumbnail or the link of required download pictures, obtain URL and the type of required download pictures according to described thumbnail or link; The URL of the picture in local to the URL got and type and IM client storing path and type are mated, if match identical URL and type, then judges there is required download pictures in local storing path; Otherwise, judge there is no required download pictures in local storing path.
Further, transmitting assembly is also for after having uploaded, and that resolves generation uploads destination file, when resolving display and uploading successfully, further parsing obtains URL and the type of institute's uploading pictures, and obtains URL and type command picture according to parsing and to be saved in IM client local.
Further, this device also comprises bottom assembly, for the TCP channel that responsible establishment is uploaded, and connects; The stored reservoir of bottom assembly, is responsible for providing and managing the state of multiple bottom assembly of multiple bottom assembly.
Further, download component also for, when downloading successfully, IM client will be saved in the picture of URL and type command local.When failed download, judge that whether corresponding picture is first time failed download, if first time failed download, then by the status modifier of corresponding picture for first time failed download is laid equal stress on newly downloaded; Otherwise, terminate to download.
In sum, one aspect of the present invention due to the feature of message propagation and the user model of universal relation chain, can realize uploading and downloading of pictorial information in large size of message very easily and pull management in microblogging application; And the present invention uniquely confirms picture by the type of URL and picture, and local by being saved in IM client after the picture URL downloaded and type command, and this effectively can be avoided repeated downloads.Also very easily by the management product of this kind of Model Reuse pictorial information in similar large size of message, effective management of message pictorial information can be realized and represents on the other hand.The present invention is based on picture management method and the device of the realization of IM client, be not limited only to the application in Twitter message, the application for this large size of message of similar microblogging is all applicable.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (10)

1. one kind realizes the method for message pictures management based on instant messaging (IM) client, it is characterized in that, in IM client, picture uploading and download are supplied to upper strata as a global service model and call, and IM client externally provides picture uploading and download function, for picture uploading according to concrete application, the interface that IM client externally provides batch to upload, download for picture, IM client externally provides the interface of download pictures, and the method comprises:
When the user of IM needs from described concrete application download pictures, whether the download component of IM client has required download pictures according in the URL(uniform resource locator) (URL) of required download pictures and the local storing path of type queries, if had, then directly return to the path that required download pictures is preserved in this locality; If no, then perform the download of corresponding picture, when downloading successfully, local by being saved in IM client with the picture of URL and type command;
When the user of IM needs uploading pictures, the transmitting assembly of IM client is by uploading calling of interface to batch, to wait in the queues to be uploaded such as the picture uploaded of batch adds, and by the scanning of reciprocity queue to be uploaded, the picture in the queue to be uploaded such as described will be uploaded.
2. the method for message pictures management is realized according to claim 1 based on IM client, it is characterized in that, when the described user as IM needs download pictures, whether the download component of IM client has required download pictures according in the URL of required download pictures and the local storing path of type queries, is specially:
When user triggers thumbnail or the link of required download pictures, obtain URL and the type of required download pictures according to described thumbnail or link;
The URL of the picture in local to the URL got and type and described IM client storing path and type are mated, if match identical URL and type, then judges there is required download pictures in described local storing path; Otherwise, judge there is no required download pictures in described local storing path.
3. according to claim 1 or 2, realize the method for message pictures management based on IM client, it is characterized in that, the method comprises further:
When failed download, judge that whether corresponding picture is first time failed download, if first time failed download, then by the status modifier of corresponding picture for first time failed download is laid equal stress on newly downloaded; Otherwise, terminate to download.
4. realize the method for message pictures management according to claim 1 based on IM client, it is characterized in that, after having uploaded, the method comprises further:
That resolves generation uploads destination file, uploads successfully, then resolve the URL and the type that obtain institute's uploading pictures further if resolve display;
URL and type command picture is obtained and to be saved in described IM client local according to parsing.
5. according to claim 1 or 4, realize the method for message pictures management based on IM client, it is characterized in that, the method comprises further:
Uploading of described picture also needs to call bottom assembly, transmission control protocol (TCP) passage that responsible establishment is uploaded, and connects;
Described IM client adopts the stored reservoir of bottom assembly, is responsible for providing and managing the state of multiple bottom assembly of multiple bottom assembly.
6. one kind realizes the device of message pictures management based on IM client, it is characterized in that, in IM client, picture uploading and download are supplied to upper strata as a global service model and call, and IM client externally provides picture uploading and download function, for picture uploading according to concrete application, the interface that IM client externally provides batch to upload, download for picture, IM client externally provides the interface of download pictures, and this device comprises:
Download component, for when the user of IM needs from described concrete application download pictures, whether there is required download pictures according in the URL of required download pictures and the local storing path of type queries, if had, then directly return to the path that required download pictures is preserved in this locality; If no, then perform the download of corresponding picture, when downloading successfully, local by being saved in IM client with the picture of URL and type command;
Transmitting assembly, for when the user of IM needs uploading pictures, by uploading calling of interface to batch, will wait in the queues to be uploaded such as the picture uploaded in batches adds, and by the scanning of reciprocity queue to be uploaded, the picture in the queue to be uploaded such as described is uploaded.
7. the device of message pictures management is realized according to claim 6 based on IM client, it is characterized in that, described download component is further used for, and when user triggers thumbnail or the link of required download pictures, obtains URL and the type of required download pictures according to described thumbnail or link; The URL of the picture in local to the URL got and type and described IM client storing path and type are mated, if match identical URL and type, then judges there is required download pictures in described local storing path; Otherwise, judge there is no required download pictures in described local storing path.
8. according to claim 6 or 7, the device of message pictures management is realized based on IM client, it is characterized in that, described download component is further used for, when failed download, judge whether corresponding picture is first time failed download, if first time failed download, then by the status modifier of corresponding picture for first time failed download lay equal stress on newly downloaded; Otherwise, terminate to download.
9. the device of message pictures management is realized according to claim 6 based on IM client, it is characterized in that, described transmitting assembly is further used for, after having uploaded, that resolves generation uploads destination file, when resolving display and uploading successfully, resolve further the URL and the type that obtain institute's uploading pictures, and obtain URL and type command picture according to parsing and to be saved in described IM client local.
10. according to claim 6 or 9, realize the device of message pictures management based on IM client, it is characterized in that, this device also comprises bottom assembly, for the TCP channel that responsible establishment is uploaded, and connects;
The stored reservoir of bottom assembly, is responsible for providing and managing the state of multiple bottom assembly of multiple bottom assembly.
CN201010503345.0A 2010-09-30 2010-09-30 Method and device for managing messages and pictures based on IM (Instant Messaging) client Active CN102447642B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010503345.0A 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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=45891928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010503345.0A Active 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)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760070B (en) * 2012-06-08 2016-08-24 华为终端有限公司 A kind of store method and mobile terminal to downloading file
CN103390012B (en) * 2012-09-13 2017-03-08 百度在线网络技术(北京)有限公司 A kind of exhibiting pictures generation method based on access and device
CN103780652B (en) * 2012-10-23 2017-12-01 腾讯科技(深圳)有限公司 A kind of method and system of microblogging resource sharing
CN103793380B (en) * 2012-10-26 2017-08-04 北京新媒传信科技有限公司 A kind of method and system for downloading picture in application
CN104348705B (en) * 2013-08-01 2017-12-15 上海云睦网络科技有限公司 Picture mass-sending data processing method based on enterprise instant communication platform
CN103490985B (en) * 2013-09-18 2017-06-06 天脉聚源(北京)传媒科技有限公司 A kind for the treatment of method and apparatus of image information
CN103781039A (en) * 2014-02-24 2014-05-07 广州市久邦数码科技有限公司 Short message system with compression function and implementation method thereof
CN106850707B (en) * 2015-12-03 2020-08-21 北京国双科技有限公司 Method, device and system for batch uploading materials
CN105812894A (en) * 2016-03-15 2016-07-27 青岛海信传媒网络技术有限公司 Video file processing method and device based on intelligent terminal
CN107306219A (en) * 2016-04-21 2017-10-31 上海神计信息系统工程有限公司 Picture transmission method and device in instant messaging
CN106547881A (en) * 2016-10-26 2017-03-29 广州三星通信技术研究有限公司 The method and apparatus for managing picture in the electronic device
CN109218357A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of web advertisement load
CN107729419A (en) * 2017-09-27 2018-02-23 惠州Tcl移动通信有限公司 A kind of intelligence preserves method, mobile terminal and the storage medium of picture and video
CN109830106A (en) * 2019-03-15 2019-05-31 天津自贸试验区蓝高科技有限公司 A kind of method of Quick Acquisition vehicle appearance information

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

Also Published As

Publication number Publication date
WO2012041177A1 (en) 2012-04-05
CN102447642A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102447642B (en) Method and device for managing messages and pictures based on IM (Instant Messaging) client
US7283830B2 (en) Wireless device hub system and method
US8554939B1 (en) Systems and methods for downloading and viewing images
JP4270850B2 (en) Method and system for delivering a modified version of a document set
JP5489807B2 (en) Information processing apparatus, form data creation method, and computer program
JP6795531B2 (en) API adapter, API adapter creation method, and program
JP2017517063A (en) Instant messaging system and method
JP2014528198A (en) Mobile solution for signing and storing third-party documents
KR20080025689A (en) Instant messaging with data sharing
CN109582644A (en) File memory method, device, equipment and computer readable storage medium
US20170134495A1 (en) Method and apparatus for sharing collaboratively edited document
US11550551B2 (en) Method for establishing social network and storage medium thereof
CN102687116A (en) Managed channel for asynchronous requests
CN107231290A (en) A kind of instant communicating method and system
CN103095549A (en) Method and system for messaging between instant messaging tools
Kessler et al. A network communication protocol for distributed virtual environment systems
KR101699066B1 (en) Message based on html5 sending method
CN105100230A (en) File transmission method and device
US8264725B1 (en) Providing printable content
US8788593B1 (en) Systems and methods for downloading attachments
US20070239765A1 (en) Message-oriented divergence and convergence of message documents
JP5729994B2 (en) Transmission device, transmission system, transmission method, and program
JP2011034511A (en) Message transmitting and receiving system, message transmitting and receiving method, message relay server, and message transmission and reception program
JP5193912B2 (en) Web screen display method, image distribution method, server, client, and server / client system
CN102624887A (en) Interconnected digital photo frame supported by cloud computing server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant