CN105631048A - 一种移动设备的应用内实现实时更新图像内容的方法 - Google Patents

一种移动设备的应用内实现实时更新图像内容的方法 Download PDF

Info

Publication number
CN105631048A
CN105631048A CN201610090010.8A CN201610090010A CN105631048A CN 105631048 A CN105631048 A CN 105631048A CN 201610090010 A CN201610090010 A CN 201610090010A CN 105631048 A CN105631048 A CN 105631048A
Authority
CN
China
Prior art keywords
picture material
image content
party
address
index key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610090010.8A
Other languages
English (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.)
Ma'anshan Sober Software Technology Co Ltd
Original Assignee
Ma'anshan Sober Software Technology 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 Ma'anshan Sober Software Technology Co Ltd filed Critical Ma'anshan Sober Software Technology Co Ltd
Priority to CN201610090010.8A priority Critical patent/CN105631048A/zh
Publication of CN105631048A publication Critical patent/CN105631048A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种移动设备的应用内实现实时更新图像内容的方法,属于通信技术领域。本发明的步骤为:步骤一:在第三方储存地址统一存储图像内容,图像内容有唯一的索引方式;步骤二:消息发送方通过索引与第三方储存地址联系,并同步图像内容至本地段;步骤三:在消息发送的本地段,图像内容及远程索引键持续保留;步骤四:发送消息时,发送方发送图像内容对应的第三方存储地址的索引键,接收方收取索引键后,访问第三方存储地址,同步图像内容,实现图像内容与发送方保持一致;步骤五:接收方同步内容后,缓存图像内容至本地。该方法能够高效实时地更新图像内容,高效实现消息发送方与接受方内容的统一。

Description

一种移动设备的应用内实现实时更新图像内容的方法
技术领域
本发明涉及通信技术领域,更具体地说,涉及一种移动设备的应用内实现实时更新图像内容的方法。
背景技术
随着现代经济的快速发展,智能移动设备逐步普及,在移动端的聊天中涉及到图像的表达日益增多,平均每七条文字信息中就有一条是表情信息。因此如何实现移动设备应用内图像内容的实时更新,消息发送方与接受方内容的统一成为了一系列很重要的问题。目前移动设备的应用内不能高效实现实时更新图像内容,通信技术有待于进一步地改进。
发明内容
1.发明要解决的技术问题
本发明的目的在于解决目前移动设备的应用内不能高效实现实时更新图像内容的问题,提供了一种移动设备的应用内实现实时更新图像内容的方法。该方法能够高效实时地更新图像内容,高效实现消息发送方与接受方内容的统一。
2.技术方案
为达到上述目的,本发明提供的技术方案为:
本发明的一种移动设备的应用内实现实时更新图像内容的方法,其步骤为:
步骤一:在第三方储存地址统一存储图像内容,图像内容有唯一的索引方式;
步骤二:消息发送方通过索引与第三方储存地址联系,并同步图像内容至本地段;
步骤三:在消息发送的本地段,图像内容及远程索引键持续保留,本地段通过索引键在不与第三方存储地址沟通的情况下在本地找到图像内容;
步骤四:发送消息时,发送方发送图像内容对应的第三方存储地址的索引键,接收方收取索引键后,访问第三方存储地址,同步图像内容,实现图像内容与发送方保持一致;
步骤五:接收方同步内容后,缓存图像内容至本地。
进一步地,所述的第三方储存地址由独一的url作为索引键。
进一步地,所述的索引采用的方法包括哈希算法。
进一步地,步骤三中的实现方式由缓存解决方案实现。
3.有益效果
采用本发明提供的技术方案,与现有技术相比,具有如下有益效果:
本发明在第三方储存地址统一存储图像内容,由独一的url作为索引键,能够高效实时地更新图像内容,高效实现消息发送方与接受方内容的统一。
具体实施方式
下面结合实施例对本发明作进一步的描述:
实施例1
本实施例的一种移动设备的应用内实现实时更新图像内容的方法,其步骤为:步骤一:在第三方储存地址(e.g.服务器端)统一存储图像内容,图像内容需要有唯一的索引方式(e.g.服务器端由独一的url作为索引键),索引的方法包括哈希算法;步骤二:消息发送方通过索引与第三方储存地址联系,并同步图像内容至本地段(i.e客户端),本步骤中关于通过url从远程加载图像的部分代码如下:
(id<SDWebImageOperation>)downloadImageWithURL:(NSUR*)url
options:(SDWebImageDownloaderOptions)options
progress:(SDWebImageDownloaderProgressBlock)progressBlock
completed:(SDWebImageDownloaderCompletedBlock)completedBlock{
__blockSDWebImageDownloaderOperation*operation;
__weak__typeof(self)wself=self;
selfaddProgressCallback:progressBlockandCompletedBlock:completedBlockforURL:url
createCallback:^{
NSTimeIntervaltimeoutInterval=wself.downloadTimeout;
if(timeoutInterval==0.0){
timeoutInterval=15.0;
}
if(wself.headersFilter){
request.allHTTPHeaderFields=wself.headersFilter(url,[wself.HTTPHeaderscopy]);
}
else{
request.allHTTPHeaderFields=wself.HTTPHeaders;
}
operation=[[wself.operationClassalloc]initWithRequest:request
options:options
progress:^(NSIntegerreceivedSize,NSIntegerexpectedSize){
SDWebImageDownloader*sself=wself;
if(!sself)return;
__blockNSArray*callbacksForURL;
if(wself.username&&wself.password){
operation.credential=[NSURLCredentialcredentialWithUser:wself.username
password:wself.passwordpersistence:NSURLCredentialPersistenceForSession];
}
if(options&SDWebImageDownloaderHighPriority){
operation.queuePriority=NSOperationQueuePriorityHigh;
}elseif(options&SDWebImageDownloaderLowPriority){
operation.queuePriority=NSOperationQueuePriorityLow;
}
[wself.downloadQueueaddOperation:operation];
if(wself.executionOrder==SDWebImageDownloaderLIFOExecutionOrder){
[wself.lastAddedOperationaddDependency:operation];
wself.lastAddedOperation=operation;
}
}];
步骤三:在消息发送的本地段,图像内容及远程索引键持续保留,本地段通过索引键可以在不与第三方存储地址沟通的情况下在本地找到图像内容,实现方式由缓存解决方案实现,本步骤中关于图像缓存部分代码如下:
#import"SDWebImageDownloader.h"
#import"SDWebImageDownloaderOperation.h"
staticNSString*constkProgressCallbackKey="progress";
staticNSString*constkCompletedCallbackKey="completed";
interfaceSDWebImageDownloader()
property(strong,nonatomic)NSOperationQueue*downloadQueue;
property(weak,nonatomic)NSOperation*lastAddedOperation;
property(assign,nonatomic)ClassoperationClass;
property(strong,nonatomic)NSMutableDictionary*URLCallbacks;
property(strong,nonatomic)NSMutableDictionary*HTTPHeaders;
property(SDDispatchQueueSetterSementics,nonatomic)dispatch_queue_tbarrierQueue;
(void)addProgressCallback:(SDWebImageDownloaderProgressBlock)progressBlock
andCompletedBlock:(SDWebImageDownloaderCompletedBlock)completedBlock
forURL:(NSURL*)urlcreateCallback:(SDWebImageNoParamsBlock)createCallback{
if(url==nil){
if(completedBlock!=nil){
completedBlock(nil,nil,nil,NO);
}
return;
}
dispatch_barrier_sync(self.barrierQueue,^{
BOOLfirst=NO;
if(!self.URLCallbacks[url]){
self.URLCallbacks[url]=[NSMutableArraynew];
first=YES;
}
//HandlesingledownloadofsimultaneousdownloadrequestforthesameURL
NSMutableArray*callbacksForURL=self.URLCallbacks[url];
NSMutableDictionary*callbacks=[NSMutableDictionarynew];
if(progressBlock)callbacks[kProgressCallbackKey]=[progressBlockcopy];
if(completedBlock)callbacks[kCompletedCallbackKey]=[completedBlockcopy];
[callbacksForURLaddObject:callbacks];
self.URLCallbacks[url]=callbacksForURL;
if(first){
createCallback();
}
}
end
步骤四:发送消息时,发送方发送图像内容对应的第三方存储地址的索引键,接收方收取索引键后,访问第三方存储地址,同步图像内容,实现图像内容与发送方保持一致;步骤五:接收方同步内容后,缓存图像内容至本地,再次接受或发送同一图像内容时不必再次与第三方存储方同步。本方法在第三方储存地址统一存储图像内容,由独一的url作为索引键,本地段通过索引键在不与第三方存储地址沟通的情况下在本地找到图像内容,能够高效实时地更新图像内容,高效实现消息发送方与接受方内容的统一。
以上示意性的对本发明及其实施方式进行了描述,该描述没有限制性,实际的方法并不局限于此。所以,如果本领域的普通技术人员受其启示,在不脱离本发明创造宗旨的情况下,不经创造性的设计出与该技术方案相似的结构方式及实施例,均应属于本发明的保护范围。

Claims (4)

1.一种移动设备的应用内实现实时更新图像内容的方法,其特征在于:其步骤为:
步骤一:在第三方储存地址统一存储图像内容,图像内容有唯一的索引方式;
步骤二:消息发送方通过索引与第三方储存地址联系,并同步图像内容至本地段;
步骤三:在消息发送的本地段,图像内容及远程索引键持续保留,本地段通过索引键在不与第三方存储地址沟通的情况下在本地找到图像内容;
步骤四:发送消息时,发送方发送图像内容对应的第三方存储地址的索引键,接收方收取索引键后,访问第三方存储地址,同步图像内容,实现图像内容与发送方保持一致;
步骤五:接收方同步内容后,缓存图像内容至本地。
2.根据权利要求1所述的一种移动设备的应用内实现实时更新图像内容的方法,其特征在于:所述的第三方储存地址由独一的url作为索引键。
3.根据权利要求1或2所述的一种移动设备的应用内实现实时更新图像内容的方法,其特征在于:所述的索引采用的方法包括哈希算法。
4.根据权利要求3所述的一种移动设备的应用内实现实时更新图像内容的方法,其特征在于:步骤三中的实现方式由缓存解决方案实现。
CN201610090010.8A 2016-02-17 2016-02-17 一种移动设备的应用内实现实时更新图像内容的方法 Pending CN105631048A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610090010.8A CN105631048A (zh) 2016-02-17 2016-02-17 一种移动设备的应用内实现实时更新图像内容的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610090010.8A CN105631048A (zh) 2016-02-17 2016-02-17 一种移动设备的应用内实现实时更新图像内容的方法

Publications (1)

Publication Number Publication Date
CN105631048A true CN105631048A (zh) 2016-06-01

Family

ID=56045980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610090010.8A Pending CN105631048A (zh) 2016-02-17 2016-02-17 一种移动设备的应用内实现实时更新图像内容的方法

Country Status (1)

Country Link
CN (1) CN105631048A (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657254A (zh) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 一种联系人信息的同步方法、装置及系统
CN114245152A (zh) * 2021-11-03 2022-03-25 武汉斗鱼鱼乐网络科技有限公司 标识图片加载方法、装置、存储介质及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277276B (zh) * 2008-04-23 2011-02-16 腾讯科技(深圳)有限公司 一种离线图像传输方法和系统
CN101453705B (zh) * 2007-12-05 2011-04-06 北京邮电大学 一种新闻离线浏览系统
CN104639651A (zh) * 2015-03-04 2015-05-20 成都维远艾珏信息技术有限公司 一种移动设备信息传输方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453705B (zh) * 2007-12-05 2011-04-06 北京邮电大学 一种新闻离线浏览系统
CN101277276B (zh) * 2008-04-23 2011-02-16 腾讯科技(深圳)有限公司 一种离线图像传输方法和系统
CN104639651A (zh) * 2015-03-04 2015-05-20 成都维远艾珏信息技术有限公司 一种移动设备信息传输方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657254A (zh) * 2016-10-25 2017-05-10 广东欧珀移动通信有限公司 一种联系人信息的同步方法、装置及系统
CN106657254B (zh) * 2016-10-25 2019-10-25 Oppo广东移动通信有限公司 一种联系人信息的同步方法、装置及系统
US10938773B2 (en) 2016-10-25 2021-03-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for synchronizing contact information and medium
CN114245152A (zh) * 2021-11-03 2022-03-25 武汉斗鱼鱼乐网络科技有限公司 标识图片加载方法、装置、存储介质及电子设备

Similar Documents

Publication Publication Date Title
US9712632B2 (en) Method for receiving data, method for sending data, mobile terminal, and server
CA2905889C (en) Systems and methods for delivering multimedia information to mobile devices
CN104243318A (zh) Vxlan网络中的mac地址学习方法及装置
SE9201723D0 (sv) Foerfarande i samband med uppdatering av en eller flera hlr-databaser som ingaar i ett mobiltelefonisystem
CN108123873B (zh) 数据转发路径选择方法及装置、存储介质、服务端
CN104243630A (zh) Vxlan网络中的mac地址学习方法及装置
CN104967651A (zh) 基于cdn架构的数据推送、存储、下载方法和装置
KR102316873B1 (ko) 비디오 전송 방법, 장치, 및 시스템과 컴퓨터 판독가능 저장 매체
TW201737107A (zh) 資料的同步方法和裝置
CN103209214A (zh) 一种基于NoSQL的消息中间件的实现方法
US20230300106A1 (en) Data processing method, network element device and readable storage medium
CN105631048A (zh) 一种移动设备的应用内实现实时更新图像内容的方法
CN107979645B (zh) 一种物联网实现方法
US20140282788A1 (en) System for controlling video distribution in response to a request on reduced video data traffic and a method therefor
CN111436009B (zh) 一种实时视频流传送、显示方法以及传送和播放系统
EP1840770A1 (en) A system and a method for reliable symmetric data synchronization
CN107820277B (zh) 用于无线网络的父节点装置、终端装置及其数据传输方法
CN103856435A (zh) 一种地址解析协议缓存及其缓存方法
EP3288242B1 (en) Domain name system accessing method and device
CN105471719A (zh) 一种通过云服务器储存技术解决聊天软件在弱信号下通讯问题的方法
CN106973106A (zh) 一种获取会话信息的方法、装置及系统
CN108270876B (zh) 一种信号系统中代理服务器的实现方法
CN105007233B (zh) 一种基于dhcp服务器集群负载分配地址的方法
CN105827699A (zh) 数据同步方法
CN112702361B (zh) 基于轻量级分布式协同设备安全阻断方法、装置及设备

Legal Events

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

Application publication date: 20160601