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 CN2010105033450A CN201010503345A CN102447642A CN 102447642 A CN102447642 A CN 102447642A CN 2010105033450 A CN2010105033450 A CN 2010105033450A CN 201010503345 A CN201010503345 A CN 201010503345A CN 102447642 A CN102447642 A CN 102447642A
Authority
CN
China
Prior art keywords
download
pictures
picture
client
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.)
Granted
Application number
CN2010105033450A
Other languages
Chinese (zh)
Other versions
CN102447642B (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

Images

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 of realizing the message pictures management based on the IM client
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method and apparatus of realizing the message pictures management based on instant messaging (IM) client.
Background technology
Network instant communication (IM; Instant Messaging) the instrument development is accepted by numerous netizens, and has been become the requisite Software tool of user so far; IM and is used in user's work not only in amusement and recreation at ordinary times widely.Therefore, in actual application, the user has proposed higher requirement to aspects such as the ease for use of IM, stability, fail safes.In IM software, main what realize is chat the separately crowd of pattern and one-to-many or the message chat pattern of discussion group of man-to-man good friend.Continuous development along with internet, applications; The similar spy's of pushing away (twitter) microblogging is used as a kind of new tool of the IM of expansion message propagation mechanism and is also constantly developed; Amount of information about the miniature blog of this type makes the user through 140 words is expressed oneself; This mode can be propagated very fast, realize user message chat pattern from one to one, one-to-many is to a pair of infinite leap; This a pair of infinite message chat pattern means that also a user can carry out transmission of news to infinite a plurality of users; A user also can collect the user message more than ten thousand grades simultaneously simultaneously; Thereby this has also just proposed new requirement to the application of large user's amount.
Machine-processed new application has obtained development fast to microblogging as a kind of IM of expansion message propagation, and still good friend's quantity in original IM instrument (hundreds ofs are individual at most) and microblogging listens to customer volume obviously not at (more than ten thousand grades) on the same grade; Because the customer volume that microblogging is listened to is very huge; This just causes the IM client to receive that the size of message of Twitter message can be very big; Yet; In the IM client, lack at present and a kind ofly can upload and download the technical scheme that pulls management to the picture of this big size of message, thus can't realize fast and effectively the picture of this big size of message of similar microblogging in using upload with download management with represent.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of and realizes the method and apparatus of message pictures management based on the IM client, with realize fast and effectively the picture of this big size of message of similar microblogging in using upload with download management with represent.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method based on instant messaging (IM) client realization message pictures management, this method comprises:
When the user of IM needs download pictures; The download component of IM client inquires about according to the URL (URL) and the type of required download pictures whether required download pictures is arranged in the local storing path; If have, then directly return the path that required download pictures is preserved in this locality; If no, then carry out the download of corresponding picture, and the picture of downloading is saved in this locality.
When said user as IM needed download pictures, the download component of IM client inquired about according to the URL and the type of required download pictures whether required download pictures is arranged in the local storing path, is specially:
When thumbnail or when link that the user triggers required download pictures, obtain the URL and the type of required download pictures according to said thumbnail or link;
The URL and the type of the picture in the URL that gets access to and type and the said IM client terminal local storing path are mated, if match identical URL and type, then judging in the said local storing path has required download pictures; Otherwise judging in the said local storing path does not have required download pictures.
This method further comprises:
When downloading successfully, will be saved in the IM client terminal local with the picture of URL and type name.
This method further comprises:
When failed download, judge that whether corresponding picture is failed download for the first time, if failed download for the first time, then lay equal stress on newly downloaded for failed download for the first time the status modifier of corresponding picture; Otherwise, finish to download.
This method further comprises:
When the user of IM needs uploading pictures; The transmitting assembly of IM client is through uploading calling of interface to batch; Upload in the formation waiting for that the picture adding of uploading is in batches waited for, and, the picture that said wait is uploaded in the formation is uploaded through wait being uploaded the scanning of formation.
This method further comprises after uploading completion:
Resolve the destination file of uploading that generates,, then further resolve URL and the type that obtains institute's uploading pictures if parsing and displaying is uploaded success;
Obtain URL and type name picture and be saved in said IM client terminal local according to parsing.
This method further comprises:
Uploading also of said picture need be called the bottom assembly, the transmission control protocol that responsible establishment is uploaded (TCP) passage, and connect;
The stored reservoir of said IM customer end adopted bottom assembly, the state that provides and manage a plurality of bottom assemblies of responsible a plurality of bottom assemblies.
The present invention also provides a kind of device of realizing the message pictures management based on the IM client; This device comprises: download component; Be used for when the user of IM needs download pictures; URL and type according to required download pictures inquire about whether required download pictures is arranged in the local storing path, if having, then directly return the path that required download pictures is preserved in this locality; If no, then carry out the download of corresponding picture, and the picture of downloading is saved in this locality.
Said download component is further used for, and when thumbnail or when link that the user triggers required download pictures, obtains the URL and the type of required download pictures according to said thumbnail or link; The URL and the type of the picture in the URL that gets access to and type and the said IM client terminal local storing path are mated, if match identical URL and type, then judging in the said local storing path has required download pictures; Otherwise judging in the said local storing path does not have required download pictures.
Said download component is further used for, and when downloading successfully, will be saved in the IM client terminal local with the picture of URL and type name.
Said download component is further used for, and when failed download, judges that whether corresponding picture is failed download for the first time, if failed download for the first time, then lays equal stress on newly downloaded for failed download for the first time the status modifier of corresponding picture; Otherwise, finish to download.
This device also comprises: transmitting assembly; Be used for when the user of IM needs uploading pictures,, upload in the formation waiting for that the picture adding of uploading is in batches waited for through to uploading calling of interface in batches; And, the picture that said wait is uploaded in the formation is uploaded through wait being uploaded the scanning of formation.
Said transmitting assembly is further used for; After uploading completion, resolve the destination file of uploading that generates, when parsing and displaying is uploaded successfully; Further resolve URL and the type that obtains institute's uploading pictures, and obtain URL and type name picture and be saved in said IM client terminal local according to parsing.
This device also comprises the bottom assembly, is used for being responsible for creating the TCP passage of uploading, and connects;
The stored reservoir of bottom assembly, the state that provides and manage a plurality of bottom assemblies of responsible a plurality of bottom assemblies.
A kind of method and apparatus of realizing the message pictures management based on the IM client provided by the present invention;, microblogging, can realize very easily that uploading and downloading of pictorial information pulls management in the big size of message in using owing to the characteristics of message propagation and the user model of universal relation chain; In addition, the type of the present invention through URL and picture come unique affirmation picture, and the picture that will download is saved in the IM client terminal local after naming with URL and type, and this can effectively be avoided repeated downloads.
Description of drawings
Fig. 1 is the structural representation with download component of uploading of Twitter message picture among the present invention;
Fig. 2 is for realizing the method flow diagram one that the Twitter message picture is uploaded based on the IM client in the embodiment of the invention;
Fig. 3 is for realizing the method flow diagram two that the Twitter message picture is uploaded based on the IM client in the embodiment of the invention;
Fig. 4 realizes the method flow diagram that the Twitter message picture is downloaded based on the IM client in the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment technical scheme of the present invention is further set forth in detail.
The present invention is based on the IM client, for realize fast and effectively the picture of this big size of message of similar microblogging in using upload with download management with represent.In the IM client, picture is uploaded and is downloaded as a global service (Service) model and offers the upper strata and call, and the IM client externally provides picture to upload and download function according to concrete application, and has encapsulated the details of uploading download.
Upload for picture, the concrete application scenarios of using according to this big size of message of similar microblogging and consider later autgmentability, the IM client externally provides the interface of uploading in batches, and promptly the outside of IM client can be called once this interface and uploaded plurality of pictures; The download component of uploading of IM client goes this a collection of picture that will upload to accomplish as a task, and has uploaded in the application layer of uploading the back notice IM client that finishes and to finish.
Download for picture, the IM client externally provides the interface of downloading individual picture according to URL (URL, UniversalResource Locator).Consider because the enormous amount of the picture that this big size of message of similar microblogging is used, for reduce to the pressure downloaded with improve the performance that the IM client Shows Picture, the figure sector-meeting of download is saved in this locality of IM client; If when the request of downloading this picture is arranged again, then can directly return the picture that the IM client terminal local is preserved next time.
As shown in Figure 1; The structural representation of uploading download component for the Twitter message of IM client; The download component of uploading of IM client externally provides interface ITXWBlogImageMgr, provides uploading pictures (UploadImageList), cancellation in batches to upload (CancelUploadImageList) in this interface, obtains picture path (GetImagePath) and cancellation download (CancelDownloadImage) these four modules; Wherein, module UploadImageList, CancelUploadImageList are used to realize the picture upload function of Twitter message; Module GetImagePath, CancelDownloadImage are used to realize the picture download function of Twitter message.This ITXWBlogImageMgr interface realizes that by CWBlogImageMgr (CWBlogImageMgr is as a class) inside of CWBlogImageMgr has comprised 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 that by the CWBlogImageUpload object download function is realized by the CWBlogImageDownload object.Wherein, Comprise in the CWBlogImageUpload object with lower module: UploadImageList, CancelUploadImageList, OnUploadComplete, UploadWaitingQueue, InternelUploadImage, GetInfoFromResultFile and CheckNeedCallback
Wherein, module OnUploadComplete is used to upload the processing of completion; Module UploadWaitingQueue is used for choosing the picture of waiting list and uploads; Module I nternelUploadImage is used for uploading pictures; Module GetInfoFromResultFile is used to upload the destination file that resolution server returns that finishes, and comprises the URL of institute's uploading pictures in this destination file; Module CheckNeedCallback is used to check whether a collection of picture is all uploaded, and need inform after uploading that this batch of user picture has been uploaded to finish.
Comprise in the CWBlogImageDownload object with lower module: DownloadImage, OnDownloadComplete, DoDownload and CancelDownloadImage,
Wherein, module DownloadImage is used for the user and calls this interface download pictures, task is joined in the waiting list of download; Module OnDownloadComplete is used to download the processing of completion; Module DoDownload is used for down operation; Module CancelDownloadImage is used to cancel the operation of download.
In addition; WBlogImageHelper is the help class that picture is uploaded download; Provide picture to upload among the WBlogImageHelper and downloaded relevant help module, mainly comprised: GetImageHash, GetImageSize, AddImagePostfix, GetFullUrl, GetUrlAndSize, GetFileNameFromUrl and GteImageSavePath.Wherein, module GetImageHash is used to obtain the operation of picture hash; Module GetImageSize is used to obtain the operation of picture size; Modules A ddImagePostfix is used to add the operation of picture suffix; Module GetFullUrl is used to obtain the operation of URL; Module GetUrlAndSize is used to obtain the operation of URL and picture size; Module GetFileNameFromUrl is used for obtaining from URL the operation of filename; Module GteImageSavePath is used to obtain the operation of picture storing path.
Need to prove that the above-mentioned application of download component for this big size of message of similar microblogging of uploading shown in Figure 1 all is suitable for.The download component of uploading based on above-mentioned IM client shown in Figure 1; The method of the message pictures management that the present invention realized; Comprise uploading and two aspects of download management of picture, upload administrative section and accomplish that the download management part is accomplished by download component by transmitting assembly; Certainly, also can transmitting assembly and download component be closed among the present invention and establish, form and upload download component, realize uploading and download management.Pictures management with Twitter message is an example, wherein, the Twitter message picture to upload flow process as shown in Figure 2, mainly may further comprise the steps:
Step 201, the IM client call is uploaded interface in batches, i.e. UploadImageList module among the calling interface ITXWBlogImageMgr.
When the user of IM need utilize IM client upload picture to microblogging, trigger the IM client call through manual operation and upload interface in batches, promptly the UploadImageList module among the interface ITXWBlogImageMgr is called.
Step 202, IM client are uploaded to the batch that calls and are added task queue m_mapTask_Cookie_Array in the interface.This task is the task that picture is uploaded in batches.
Step 203, this task of IM client initialization (being that picture is uploaded task in batches) quantity performed m_mapTask_Cookie_CompleteNum.This m_mapTask_Cookie_CompleteNum is used to limit the quantity upper limit that picture is uploaded in batches.
Step 204, IM client are treated the picture of uploading and are compressed and format conversion processing.
Each picture that step 205, IM client need be uploaded in batches adds wait and uploads among the formation m_mapWaiting_Cookie_tagImage.
Step 206, IM client will be adjusted back pointer m_SinkMgr_UploadImage adding wait and uploaded in the formation.The purpose that adds the readjustment pointer is that after uploading completion in batches, through this readjustment pointer notification applications layer, and then the operation that lets the user know that batch is uploaded is accomplished.
Step 207 triggers the UploadWaitingQueue module and begins to carry out the operation that picture is uploaded.
After the UploadWaitingQueue module was triggered, scanning was waited for and is uploaded formation, calls a picture of head of the queue at every turn and upload.The opportunity of calling of this UploadWaitingQueue module can be picture add to wait for upload formation after, call a picture and accomplish the back or upload a picture completion after.
In addition; Uploading of picture also need be called bottom assembly CTXHttpDownload; Be responsible for creating transmission control protocol (TCP, the Transmission ControlProtocol) passage uploaded, connect, send processing such as picture by bottom assembly CTXHttpDownload.
Further, in order to guarantee transfer efficiency, the present invention can also adopt the stored reservoir CHttpUploadPool of a CTXHttpDownload, is responsible for providing the state of CTXHttpDownload object and management CTXHttpDownload object.Preferable, 5 CTXHttpDownload objects of the maximum management of the stored reservoir of CTXHttpDownload, and upload when can support 5 pictures.
After uploading completion, transmitting assembly can return the file (as uploading destination file) of a JSON (JavaScript Object Notation) form, comprises the object information of uploading in batches in the file; JSON is a kind of data interchange format of lightweight.The IM client can obtain uploading the information of success or failure in batches through resolving this object information, is successfully if upload the result, then can further resolve the URL that obtains institute's uploading pictures; That is to say, when uploading successfully, also comprise the URL of uploading pictures to some extent in the The above results information.
Combine instantiation shown in Figure 3 below again, the flow process of uploading of Twitter message picture is done further elaboration in detail, as shown in Figure 3, mainly may further comprise the steps:
Step 301, the IM client is obtained the CTXHttpDownload object from ChttpUploadPool.
Step 302 is got and is waited for that first wait upload among the formation m_mapWaiting_Cookie_tagImage uploads item, and this is uploaded and promptly comprises the picture that first wait is uploaded among the m_mapWaiting_Cookie_tagImage in the item.
Step 303 is uploaded data by HTTP (HTTP, the HyperText TransferProtocol) assembling of uploading pictures.
Step 304 is called the interface UploadFormData uploading pictures of CTXHttpDownload object, and execution in step 309 during malloc failure malloc, and execution in step 305 when calling successfully.
Step 305, this task quantity performed m_mapTask_Cookie_CompleteNum adds 1, and execution in step 306 when uploading successfully, and execution in step 309 when uploading mistake.
Step 306 is resolved and is uploaded destination file, if the result is shown as successfully, then execution in step 307; If the result is shown as failure, then execution in step 309.
Step 307 is resolved and is uploaded URL and the type that destination file obtains institute's uploading pictures.
Step 308 is named picture and is saved in the IM client terminal local according to URL and type that parsing obtains.
Step 309 checks whether this batch tasks is accomplished, if accomplish, then through readjustment pointer m_SinkMgr_UploadImage notification applications layer; If do not accomplish, then download next UploadWaitingQueue, and return step 301 and continue to carry out.
In practical application, the bottom of microblogging does not directly expose download interface and gives application layer, and provides the GetImagePath interface, i.e. inquiry is local, if picture exists, then returns success and with the last path of picture; If this locality does not exist, then return failure and start and download, notification applications layer after download is accomplished.
In addition; Picture is to name according to the type of its URL and picture; So the time according to URL and type inquiry picture; Can obtain the filename of picture according to this URL and type, thereby whether exist at this picture of microblogging picture storing path inquiry of this locality, for example: the storing path of microblogging picture be Util::Dir::UserData::GteImageDir ()+L " WBlog ".
Based on this, it is as shown in Figure 4 that the Twitter message picture that the embodiment of the invention provided is downloaded flow process, mainly may further comprise the steps:
Step 401, IM client call GetImagePath module.
Step 402 inquires about according to the URL and the type of required download pictures whether this picture is arranged in the local storing path, if having, then returns the path that the picture that inquired is preserved in this locality to application layer; If no, execution in step 403 then.
Picture in the Twitter message shows with the form of thumbnail or link that normally the user will download corresponding picture, needs to trigger (like click) this thumbnail or link.
When the user triggered the thumbnail of required download pictures or links, the GetImagePath module was obtained the URL and the type of required download pictures according to said thumbnail or link; The URL and the type of the picture in the URL that gets access to and type and the IM client terminal local storing path are mated, if match identical URL and type, then judging has required download pictures in the local storing path; Otherwise judging does not have required download pictures in the local storing path.
Step 403 is called the DownloadImage module.
Step 404 is downloaded the DownloadImage module adding of downloading task among the map, and download state is set for waiting for.
Wherein, downloading map is a data structure in the internal memory, and it preserves the relevant information of downloading task.
Step 405 triggers the DoDownload module and downloads.
Step 406, in waiting list, get a wait or the downloading task of failed download for the first time.
Step 407 is downloaded and is accomplished, if download successfully, then execution in step 408; If failed download, then execution in step 411.
Step 408 is according to the URL and the type generation file in download name of institute's download pictures.
Step 409, copy download file are deleted former interim file in download in the Image file.
Because downloading successful picture in the step 407 is at first to store in the interim file in download catalogue; Therefore; The operation of step 409 promptly is that this interim file in download is copied in the pairing Image file of file in download name in the step 408, and former interim file in download then needs corresponding deletion.
Step 410 is thrown and is downloaded the completion incident, forwards step 412 to after executing.
After download accomplishing, the DoDownload module will be downloaded the completion incident application layer of throwing to, notify the download completion of this picture of user.
Step 411 when failed download, if judge it is the failed download first time, is then returned step 405 behind the modification state; If failed download for the second time, then execution in step 412.
When failed download, if judge it is failed download for the first time, then the download state with this picture is revised as failed download for the first time, thereby the i.e. wait state from beginning most of the state of this picture to just in download state, has arrived the present download state first time again.
Step 412 shifts out this downloading task from downloading map, if also have other downloading task, then return step 405 and continue to carry out; If there is not downloading task, then finish whole flow process.
Corresponding above-mentioned method based on IM client realization Twitter message pictures management, the present invention also provides a kind of device based on IM client realization Twitter message pictures management, is applicable to that in the IM client, this device comprises: transmitting assembly and download component.
Wherein, Transmitting assembly is used for when the user of IM needs uploading pictures, through to uploading calling of interface in batches, uploads in the formation waiting for that the picture adding of uploading is in batches waited for; And, the picture that wait is uploaded in the formation is uploaded through wait being uploaded the scanning of formation.
Download component is used for when the user of IM needs download pictures, inquires about according to the URL and the type of required download pictures whether required download pictures is arranged in the local storing path, if having, then directly returns the path that required download pictures is preserved in this locality; If no, then carry out the download of corresponding picture, and the picture of downloading is saved in this locality.Concrete: as when the user triggers thumbnail or the link of required download pictures, to obtain the URL and the type of required download pictures according to said thumbnail or link; The URL and the type of the picture in the URL that gets access to and type and the IM client terminal local storing path are mated, if match identical URL and type, then judging has required download pictures in the local storing path; Otherwise judging does not have required download pictures in the local storing path.
Further; Transmitting assembly also is used for after uploading completion, resolves the destination file of uploading that generates, when parsing and displaying is uploaded successfully; Further resolve URL and the type that obtains institute's uploading pictures, and obtain URL and type name picture and be saved in the IM client terminal local according to parsing.
Further, this device also comprises the bottom assembly, is used for being responsible for creating the TCP passage of uploading, and connects; The stored reservoir of bottom assembly, the state that provides and manage a plurality of bottom assemblies of responsible a plurality of bottom assemblies.
Further, download component also is used for, and when downloading successfully, will be saved in the IM client terminal local with the picture of URL and type name.When failed download, judge that whether corresponding picture is failed download for the first time, if failed download for the first time, then lay equal stress on newly downloaded for failed download for the first time the status modifier of corresponding picture; Otherwise, finish to download.
In sum, one aspect of the present invention owing to the characteristics of message propagation and the user model of universal relation chain, can realize very easily that uploading and downloading of pictorial information pulls management in the big size of message in microblogging is used; And the type of the present invention through URL and picture come unique affirmation picture, and the picture that will download is saved in the IM client terminal local after naming with URL and type, and this can effectively be avoided repeated downloads.On the other hand also can be very easily that this class model is multiplexing in similar big size of message in the management product of pictorial information, realize effective management of message pictorial information and represent.The present invention is based on picture management method and device that the IM client realizes, be not limited only to the application in Twitter message, all be suitable for for the application of this big size of message of similar microblogging.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.

Claims (14)

1. realize the method for message pictures management it is characterized in that this method comprises based on instant messaging (IM) client for one kind:
When the user of IM needs download pictures; The download component of IM client inquires about according to the URL (URL) and the type of required download pictures whether required download pictures is arranged in the local storing path; If have, then directly return the path that required download pictures is preserved in this locality; If no, then carry out the download of corresponding picture, and the picture of downloading is saved in this locality.
2. according to the said method that realizes the message pictures management based on the IM client of claim 1; It is characterized in that; When said user as IM needs download pictures; The download component of IM client inquires about according to the URL and the type of required download pictures whether required download pictures is arranged in the local storing path, is specially:
When thumbnail or when link that the user triggers required download pictures, obtain the URL and the type of required download pictures according to said thumbnail or link;
The URL and the type of the picture in the URL that gets access to and type and the said IM client terminal local storing path are mated, if match identical URL and type, then judging in the said local storing path has required download pictures; Otherwise judging in the said local storing path does not have required download pictures.
3. according to claim 1 or 2 said methods, it is characterized in that this method further comprises based on IM client realization message pictures management:
When downloading successfully, will be saved in the IM client terminal local with the picture of URL and type name.
4. according to claim 1 or 2 said methods, it is characterized in that this method further comprises based on IM client realization message pictures management:
When failed download, judge that whether corresponding picture is failed download for the first time, if failed download for the first time, then lay equal stress on newly downloaded for failed download for the first time the status modifier of corresponding picture; Otherwise, finish to download.
5. according to the said method of claim 1, it is characterized in that this method further comprises based on IM client realization message pictures management:
When the user of IM needs uploading pictures; The transmitting assembly of IM client is through uploading calling of interface to batch; Upload in the formation waiting for that the picture adding of uploading is in batches waited for, and, the picture that said wait is uploaded in the formation is uploaded through wait being uploaded the scanning of formation.
6. according to the said method of claim 5, it is characterized in that this method further comprises after uploading completion based on IM client realization message pictures management:
Resolve the destination file of uploading that generates,, then further resolve URL and the type that obtains institute's uploading pictures if parsing and displaying is uploaded success;
Obtain URL and type name picture and be saved in said IM client terminal local according to parsing.
7. according to claim 5 or 6 said methods, it is characterized in that this method further comprises based on IM client realization message pictures management:
Uploading also of said picture need be called the bottom assembly, the transmission control protocol that responsible establishment is uploaded (TCP) passage, and connect;
The stored reservoir of said IM customer end adopted bottom assembly, the state that provides and manage a plurality of bottom assemblies of responsible a plurality of bottom assemblies.
8. device of realizing the message pictures management based on the IM client; It is characterized in that; This device comprises: download component, be used for when the user of IM needs download pictures, and inquire about according to the URL and the type of required download pictures whether required download pictures is arranged in the local storing path; If have, then directly return the path that required download pictures is preserved in this locality; If no, then carry out the download of corresponding picture, and the picture of downloading is saved in this locality.
9. the said according to Claim 8 device of realizing the message pictures management based on the IM client; It is characterized in that; Said download component is further used for, and when thumbnail or when link that the user triggers required download pictures, obtains the URL and the type of required download pictures according to said thumbnail or link; The URL and the type of the picture in the URL that gets access to and type and the said IM client terminal local storing path are mated, if match identical URL and type, then judging in the said local storing path has required download pictures; Otherwise judging in the said local storing path does not have required download pictures.
10. according to Claim 8 or 9 saidly realize the devices of message pictures management it is characterized in that said download component is further used for, when downloading successfully, will be saved in the IM client terminal local with the picture that URL and type are named based on the IM client.
11. according to Claim 8 or the 9 said devices of realizing the message pictures management based on the IM client; It is characterized in that; Said download component is further used for, and when failed download, judges whether corresponding picture is the failed download first time; If failed download for the first time, then lay equal stress on newly downloaded for failed download for the first time the status modifier of corresponding picture; Otherwise, finish to download.
12. the said according to Claim 8 device of realizing the message pictures management based on the IM client; It is characterized in that this device also comprises: transmitting assembly is used for when the user of IM needs uploading pictures; Through batch is uploaded calling of interface; Upload in the formation waiting for that the picture adding of uploading is in batches waited for, and, the picture that said wait is uploaded in the formation is uploaded through wait being uploaded the scanning of formation.
13. according to the said device of realizing the message pictures management based on the IM client of claim 12; It is characterized in that said transmitting assembly is further used for, after uploading completion; Resolve the destination file of uploading that generates; When parsing and displaying is uploaded successfully, further resolve URL and the type that obtains institute's uploading pictures, and obtain URL and type name picture and be saved in said IM client terminal local according to parsing.
14. according to claim 12 or 13 said devices, it is characterized in that this device also comprises the bottom assembly, be used for being responsible for creating the TCP passage of uploading, and connect based on IM client realization message pictures management;
The stored reservoir of bottom assembly, the state that provides and manage a plurality of bottom assemblies of responsible a plurality of bottom assemblies.
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 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
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)

Cited By (12)

* 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
CN103490985A (en) * 2013-09-18 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for processing picture messages
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
CN105812894A (en) * 2016-03-15 2016-07-27 青岛海信传媒网络技术有限公司 Video file processing method and device based on intelligent terminal
CN106547881A (en) * 2016-10-26 2017-03-29 广州三星通信技术研究有限公司 The method and apparatus for managing picture in the electronic device
CN106850707A (en) * 2015-12-03 2017-06-13 北京国双科技有限公司 Method, apparatus and system that material batch is uploaded
CN107306219A (en) * 2016-04-21 2017-10-31 上海神计信息系统工程有限公司 Picture transmission method and device in instant messaging
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
CN109218357A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of web advertisement load
CN109830106A (en) * 2019-03-15 2019-05-31 天津自贸试验区蓝高科技有限公司 A kind of method of Quick Acquisition vehicle appearance information

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780652B (en) * 2012-10-23 2017-12-01 腾讯科技(深圳)有限公司 A kind of method and system of microblogging resource sharing
CN103781039A (en) * 2014-02-24 2014-05-07 广州市久邦数码科技有限公司 Short message system with compression function and implementation method thereof

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》 *

Cited By (15)

* 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 kind of exhibiting pictures generation method based on access and device
CN103793380A (en) * 2012-10-26 2014-05-14 北京新媒传信科技有限公司 Method and system for downloading picture in application
CN103793380B (en) * 2012-10-26 2017-08-04 北京新媒传信科技有限公司 A kind of 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
CN104348705B (en) * 2013-08-01 2017-12-15 上海云睦网络科技有限公司 Picture mass-sending data processing method based on enterprise instant communication platform
CN103490985A (en) * 2013-09-18 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for processing picture messages
CN106850707A (en) * 2015-12-03 2017-06-13 北京国双科技有限公司 Method, apparatus and system that material batch is uploaded
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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN102447642A (en) Method and device for managing messages and pictures based on IM (Instant Messaging) client
JP2017517063A (en) Instant messaging system and method
US20060294189A1 (en) Instant messaging with search
KR20080025689A (en) Instant messaging with data sharing
CN104333599A (en) Application sharing method and system and application service platform
JP2003256259A (en) Document distribution and storage system and method
CN103338276B (en) A kind of method transmitting data between the network terminal
CN103078881A (en) Sharing control system and method for network resource downloading information
JP2006522415A (en) Content embedded message generation apparatus and method
CN102687116A (en) Managed channel for asynchronous requests
CN1812450A (en) Intelligent mobile telephone incoming call relative information displaying and utilizing method
US20170149726A1 (en) Method for establishing social network and storage medium thereof
CN108512928A (en) Cloud virtual machine and its file management method, system, virtual machine thin-client
US20120320411A1 (en) Sharing content among printers
CN103888505A (en) File transmission method and system, and terminal devices and servers
KR101502438B1 (en) Method, apparatus and system for accessing applications and content across a plurality of computers
KR101699066B1 (en) Message based on html5 sending method
CN103024049B (en) Realize the system that browser data is synchronous
US8264725B1 (en) Providing printable content
CN105408887A (en) Reverse number look up
CN101741877B (en) Method, system and equipment for operating media resource
JP5493567B2 (en) Message transmission / reception system, message transmission / reception method, message relay server, and message transmission / reception program
US8788593B1 (en) Systems and methods for downloading attachments
JP5729994B2 (en) Transmission device, transmission system, transmission method, and program
CN111475761A (en) Client, server and content sharing control method

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