[go: up one dir, main page]

WO2009129723A1 - 离线图像传输方法、系统和离线图像服务器 - Google Patents

离线图像传输方法、系统和离线图像服务器 Download PDF

Info

Publication number
WO2009129723A1
WO2009129723A1 PCT/CN2009/071265 CN2009071265W WO2009129723A1 WO 2009129723 A1 WO2009129723 A1 WO 2009129723A1 CN 2009071265 W CN2009071265 W CN 2009071265W WO 2009129723 A1 WO2009129723 A1 WO 2009129723A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
instant messaging
offline
image file
messaging terminal
Prior art date
Application number
PCT/CN2009/071265
Other languages
English (en)
French (fr)
Inventor
陈家君
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2009129723A1 publication Critical patent/WO2009129723A1/zh
Priority to US12/850,353 priority Critical patent/US20100318634A1/en

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]
    • 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/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression

Definitions

  • the present invention relates to the field of network applications, and more particularly to an offline image transmission method, system, and offline image server. Background of the invention
  • the instant messaging service is an Internet-based communication service, which is generally based on realizing instant messaging on the network.
  • instant messaging services have been widely used and recognized on the Internet, and instant messaging services can be implemented through instant messaging software.
  • Instant messaging software has won the recognition and love of the majority of Internet users with its advantages of fast speed, rich functions and stable use.
  • users can perform various operations such as interaction of text information, transmission of files, and transmission of short messages of mobile terminals through instant messaging software.
  • instant messaging software has been accepted by most netizens today, and has become an indispensable software tool for users.
  • Instant messaging software is widely used in the daily work of the user.
  • users also put forward higher requirements on the ease of use, stability and security of instant messaging software.
  • user-friendly services can provide users with a more intense sticky effect.
  • Embodiments of the present invention provide an offline image transmission method for transmitting an image file when an instant messaging terminal cannot directly receive an image file, thereby enhancing communication between users.
  • Embodiments of the present invention provide an offline image transmission system that transmits an image file when an instant messaging terminal cannot directly receive an image file, thereby enhancing communication between users.
  • An offline image transmission method comprising:
  • the first instant messaging terminal sends an image file upload request to the offline image server, and the offline image server sends the image file to the first instant messaging according to the image file upload request.
  • the terminal returns download index information of the image file
  • the first instant messaging terminal sends the download index information to the second instant messaging terminal, and the second instant messaging terminal acquires the image file according to the download index information.
  • An offline image transmission system comprising: a first instant messaging terminal, a second instant messaging terminal, and an offline image server, wherein:
  • the first instant messaging terminal is configured to: when the second instant messaging terminal cannot directly receive the image file from the first instant messaging terminal, send an image file upload request to the offline image server, and send the offline file to the second instant messaging terminal. Download index information returned by the image server;
  • the offline image server is configured to return, to the first instant communication terminal, download index information of the image file according to the image file upload request;
  • the second instant messaging terminal is configured to acquire the image file according to the download index information.
  • An offline image server comprising: an offline image indexing unit and an offline image transmission unit; wherein: The offline image indexing unit is configured to receive an image file upload request that includes the image file hash information sent by the first instant messaging terminal, and determine whether to receive the uploaded image file according to the image file hash information, and determine the receiving Providing, to the first instant messaging terminal, upload information about the offline image transmission unit when uploading the image file;
  • the offline image transmission unit is configured to receive an image file uploaded by the first instant messaging terminal according to the upload information, and return a download index that includes the storage information of the uploaded image file in the offline image server to the first instant messaging terminal. information.
  • the first instant messaging terminal when the second instant messaging terminal cannot directly receive the image file from the first instant messaging terminal, the first instant messaging terminal sends an image file upload request to the offline image server.
  • the offline image server returns the download index information of the image file to the first instant messaging terminal according to the image file upload request; and then the second instant messaging terminal acquires the image file according to the download index information provided by the first instant messaging terminal.
  • the image file can be obtained from the offline image server or the image file can be directly downloaded from the local, thereby realizing offline delivery of the image and display thereof, thereby enhancing Communication between users.
  • FIG. 2 is a schematic structural diagram of an offline image system according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of an offline image transmission method according to an embodiment of the present invention. Mode for carrying out the invention
  • FIG. 1 is a flow chart of an offline image transmission method in accordance with the present invention. Applying this process, when the other party is invisible or not online, it can send a message with an image, and the image in the message will be sent as an offline image.
  • the offline image transmission method includes:
  • Step 101 When the second instant messaging terminal cannot directly receive the image file from the first instant messaging terminal, the first instant messaging terminal sends an image file upload request to the offline image server, and the offline image server sends the image file to the first An instant messaging terminal returns download index information of the image file.
  • the case where the second instant messaging terminal cannot directly receive the image file from the first instant messaging terminal may include the second instant messaging terminal being in an offline state or a stealth state.
  • the invisibility is relative to the sender. If the chat interaction has just spoken, the other party is considered to be online and can directly establish a connection and send an image file.
  • the image file upload request may include hash information of the image file, and the offline image server determines whether to receive the uploaded image file according to the image file hash information. If it is determined that the image file hash information is the same as the hash information of the image file that has been retained in the offline image server, it indicates that the image file has been previously saved in the offline image server, and there is no need to receive the upload. If it is determined that the image file hash information is equal to the hash information of the commonly used custom expression, and the image file is not received at this time, the image file can be directly acquired from the local area of the second instant messaging terminal. Usually, the second instant messaging terminal has stored various commonly used custom expressions locally.
  • the first instant messaging terminal uploads an image file to the offline image server, and the download index information returned by the offline image server to the first instant messaging terminal includes the storage information of the uploaded image file in the offline image server; or the offline image server To the first instant messaging terminal Returning the local download index information of the image file, the second instant messaging terminal locally acquires the image file from the second instant messaging terminal according to the local download index information.
  • the offline image server may further determine whether the first instant messaging terminal satisfies a preset upload condition, and return to the first instant messaging terminal after determining that the upload condition is satisfied. Download index information for image files.
  • the preset uploading conditions may include: the first instant messaging terminal has an uploading authority, the image file uploaded by the second instant messaging terminal does not reach the limit number, the offline image server works normally, and the like.
  • the pre-set upload condition is related to the upload permission, that is, when the second instant messaging terminal has the upload permission, it is considered that the upload condition is satisfied.
  • the offline image server After the offline image server receives the image file upload request, it first determines whether the second instant messaging terminal has the upload permission, and if there is the upload permission, the offline image server processes the download, and returns the image file to the first instant messaging terminal. Index information, if there is no upload permission, the offline image server does not accept uploads.
  • Step 102 The first instant messaging terminal sends the download index information to the second instant messaging terminal, and the second instant messaging terminal acquires the image file according to the download index information.
  • the second instant messaging terminal determines whether the download index information is valid, and if valid, downloads the image file locally from the offline image server or the second instant messaging terminal and displays it; if invalid, the second instant messaging terminal replaces the image (For example, using a red cross to indicate that the display image failed) is displayed instead of the offline image.
  • the embodiment of the invention also proposes an offline image transmission system.
  • FIG. 2 is a schematic structural diagram of an offline image transmission system according to an embodiment of the present invention.
  • the system includes a first instant messaging terminal 201, a second instant messaging terminal 202, and an offline image server 203: wherein:
  • the first instant messaging terminal 201 is configured to send an image file upload request to the offline image server 103 when the second instant messaging terminal 202 cannot directly receive the image file from the first instant messaging terminal 201, and send the image file upload request to the second instant messaging terminal 202.
  • the offline image server 203 is configured to return, to the first instant messaging terminal 201, download index information of the image file according to the image file upload request;
  • the second instant messaging terminal 202 is configured to acquire an image file according to the download index information.
  • the first instant messaging terminal 201 can send an image file upload request to the offline image server 203 when the second instant messaging terminal 202 is in an offline state or a stealth state.
  • the offline image server 203 may specifically include an offline image indexing server 2031 and an offline image transmission server 2032;
  • the offline image indexing server 2031 is configured to receive an image file upload request that includes the image file hash information sent by the first instant messaging terminal 201, and determine whether to receive the uploaded image file according to the image file hash information, and determine the receiving
  • the upload information about the offline image transmission server 2032 is provided to the first instant messaging terminal 201 when the image file is uploaded.
  • the offline image indexing server 2031 determines whether to receive the uploaded image file according to the image file hash information. If received, the first instant messaging terminal uploads an image file to the offline image transmission server 2032, and the offline image transmission server 2032 points to the The download index information returned by the instant messaging terminal 201 includes the stored information of the uploaded image file in the offline image server; if it is determined that the receiving is not received according to the image file hash information, the offline image indexing server 2031 sends the first instant messaging The terminal 201 returns the local download index information of the image file, the first instant messaging terminal 201 sends the local download index information to the second instant messaging terminal 202, and the second instant messaging terminal 202 obtains the local download index information from the second instant messaging terminal. 202 locally obtains an image file. When the first instant messaging terminal 201 has insufficient authority and the number of uploaded images reaches a limit value, the offline image transmission service The device 2032 can also refuse to receive the uploaded image file of the first instant messaging terminal 201.
  • the first instant messaging terminal 201 is configured to upload an image file to the offline image transmission server 2032 according to the uploading information of the offline image transmission server 2032.
  • the offline image transmission server 2032 is configured to return the image to the first instant messaging terminal 201 and include the uploaded image.
  • the upload information about the offline image transmission server 2032 includes any one of the following information or any combination of more than two: an IP address of the image transmission server; a port of the image transmission server; upload verification key information, and, in addition, the image file may include each Custom expressions and/or pictures.
  • the second instant messaging terminal 202 is further configured to determine whether the download index information is valid. For example, the second instant messaging terminal 202 determines whether the download index information is valid URL information. If it is valid URL information, it considers that the download index information is valid, and vice versa. Alternatively, the second instant messaging terminal 202 determines whether the download index information is an identifier corresponding to a commonly used custom expression, and if so, considers that the download index information is valid, and vice versa. When it is determined that the download index information is valid, the second instant messaging terminal 202 locally downloads the image file from the offline image server 203 or the second instant messaging terminal 202 and displays it; if it is invalid, replaces the offline image with the replacement image and displays it.
  • FIG. 3 is a flowchart of an offline image transmission method according to an embodiment of the present invention.
  • the method includes:
  • Step 1 The first instant messaging terminal caches the instant messaging message that is expected to be sent, delays sending for a few seconds, and replaces the image in the instant messaging message body with an encoding format (for example: starting and ending with a special symbol, including the image type, Information such as image size, image file hash information, etc., if there are duplicate images, the encoding only needs to indicate which image in the message is the same to save the transmission amount).
  • an encoding format for example: starting and ending with a special symbol, including the image type, Information such as image size, image file hash information, etc.
  • Step 2 The first instant messaging terminal sends an image file to the offline image indexing server.
  • the request is passed, and the request carries the image file hash information.
  • Step 3 After receiving the image file upload request, the offline image indexing server provides three kinds of reply results according to the parsing of the image file hash information:
  • step 4-6 No upload is required (if the image file already exists on the server or the image file is an existing emoticon).
  • the offline image indexing server returns the download index information, and the first instant communication terminal will skip step 4-6 and directly enter step 7;
  • the offline image indexing server returns the offline image downloading information in the response returned to the first instant messaging terminal, and returns the IP, port, and upload of the specifically uploaded offline image transmission server when uploading is required. Verify the key, download the index and other information, and reject the upload will bring the reason for the rejection. If the upload is rejected due to insufficient permissions, the number of uploaded images is reached, etc., the first instant communication terminal does not attempt to send other images in the message and jumps out of the process.
  • Step 4 The first instant messaging terminal carries the information such as the upload verification key returned in step 3, and connects to the designated offline image transmission server for uploading. Since the instant messaging terminal group is large, the number of offline image transmission servers can be plural, and the offline image indexing server specifies the offline image transmission server that specifically provides the service for the first instant messaging terminal.
  • Step 5 After the first instant messaging terminal successfully uploads, the offline image transmission server sends the upload result to the offline image indexing server.
  • Step 6 The offline image transmission server directly returns the upload result to the first instant messaging terminal, or the offline image index server returns the upload result to the first instant messaging terminal.
  • Step 7 If the upload is successful, the first instant messaging terminal will return in step 3 The index information is inserted into the image code. If there are other offline images in the message that need to be uploaded, go to step 2.
  • Step 8 The first instant messaging terminal sends the delayed instant messaging message after all the offline images have been sent or the message delay reaches the maximum time.
  • the offline image receiving process will be performed, including:
  • Step 9 The second instant messaging terminal checks the image information in the message (search for image encoding in the message body), if there is no valid offline image download information, or the image in the valid offline image information does not need to be downloaded (according to If the image file hash information determines that the local one already exists, the entire message is directly processed and displayed (the local display is directly displayed, and the image without the download information is replaced with the wrong image), and the subsequent process is not performed.
  • Step 10 The second instant messaging terminal applies for downloading to the offline image indexing server according to the download index information.
  • Step 11 The offline image index server returns the application result. If the download is allowed, it includes the specific download server IP, port, download verification key, etc. If rejected, the reason for rejection is included.
  • Step 12 The second instant messaging terminal carries the downloading verification key returned in step 11 and the like to connect to the designated offline image transmission server for downloading.
  • Step 13 After the second instant messaging terminal downloads successfully, the offline image transmission server notifies the offline image indexing server of the download result.
  • Step 14 The offline image indexing server returns the download result to the second instant messaging terminal.
  • Step 15 When all offline images in the offline message have downloaded results or have reached the maximum delay time, the message is processed and displayed (if the maximum delay time is reached, the offline image that has not been downloaded is indicated The downloaded image is replaced, and then the real offline image is displayed after the download is completed, otherwise it is returned to step 10 to continue downloading other unfinished departures. Line image.
  • the second instant messaging terminal acquires the image file from the local or offline image server after receiving the offline message, and displays the image file at the original position of the offline message in the offline image, This ensures that the position of the text and images remains inconvenient, and the original text and image order can be correctly displayed.
  • the image file when the instant messaging terminal cannot directly receive the image file, the image file may be obtained from the offline image server or the image file may be directly downloaded from the local image, thereby realizing offline delivery of the image, thereby enhancing the user. Communication between.
  • the embodiment of the present invention associates a message and an image such as an expression as offline information transmission.
  • an image such as an expression may be included.
  • the recipient When the recipient is not online or invisible, the recipient will receive a prompt to let the user retrieve the message (the expression of the message is present on the offline image server). If the expression has been used by other users, then when uploading to the offline image server, there is no need to upload), and then the display on the receiving side is realized.
  • the recipient can receive a prompt if it is invisible and can get messages from the offline image server without exposing himself to being invisible.

Landscapes

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

Description

离线图像传输方法、 系统和离线图像服务器 技术领域
本发明涉及网络应用 (appl i ca t ion )技术领域, 更具体地说, 本发 明涉及一种离线图像传输方法、 系统和离线图像服务器。 发明背景
即时通讯服务是一种基于互联网 (Internet ) 的通信服务, 一般以 实现网络上即时通讯功能为主。 目前, 即时通讯服务已经在互联网上得 到了广泛的应用和认可, 即时通讯服务可以通过即时通讯软件来实现。 即时通讯软件以速度快、 功能丰富、 使用稳定等优点而获得了广大网民 的认可和喜爱。 在现有的即时通讯服务中, 用户之间可以通过即时通讯 软件进行文字信息的交互、传送文件、发送移动终端短消息等多种操作。
随着网络技术的发展, 即时通讯软件发展到今天已经被大多数的网 民所接受, 已经成为用户必不可少的软件工具。 即时通讯软件不但在平 时的休闲娱乐中, 在用户的工作中也得到广泛的使用。 相应地, 用户对 即时通讯软件的易用性、 稳定性、 安全性等方面也提出了较高的要求。 在即时通讯软件中, 人性化的服务可以为用户提供一种更加强烈的粘性 作用。
然而, 当前的即时通讯软件在某些情况下还是会限制用户的沟通需 求。 比如, 由于传送需要对方即时通讯软件参与, 如若对方不在线则无 法向其发送自定义表情和 /或图像文件, 这就不利于用户的沟通。 另夕卜, 如果对方处于隐身状态, 也不能直接接收自定义表情和 /或图像文件, 否则会暴露隐身。 发明内容
本发明实施例提出一种离线图像传输方法, 在即时通讯终端不能直 接接收图像文件时传输图像文件, 从而增强用户之间的沟通。
本发明实施例提出一种离线图像传输系统, 在即时通讯终端不能直 接接收图像文件时传输图像文件, 从而增强用户之间的沟通。
本发明实施例的技术方案如下:
一种离线图像传输方法, 该方法包括:
当第二即时通讯终端不能直接从第 ―即时通讯终端接收图像文件 时, 第一即时通讯终端向离线图像服务器发送图像文件上传请求, 离线 图像服务器根据该图像文件上传请求向所述第一即时通讯终端返回该 图像文件的下载索引信息;
第一即时通讯终端向第二即时通讯终端发送所述下载索引信息, 第 二即时通讯终端根据该下载索引信息获取所述图像文件。
一种离线图像传输系统, 该系统包括第一即时通讯终端、 第二即时 通讯终端和离线图像 Λ良务器, 其中:
所述第 ―即时通讯终端, 用于当第二即时通讯终端不能直接从该第 一即时通讯终端接收图像文件时, 向离线图像服务器发送图像文件上传 请求, 并向第二即时通讯终端发送由离线图像服务器返回的下载索引信 息;
所述离线图像服务器, 用于根据该图像文件上传请求向所述第一即 时通讯终端返回该图像文件的下载索引信息;
所述第二即时通讯终端, 用于根据该下载索引信息获取所述图像文 件。
一种离线图像服务器,其特征在于, 所述包括离线图像索引单元和 离线图像传输单元; 其中: 所述离线图像索引单元, 用于接收第一即时通讯终端发送来的、 包 括图像文件哈希信息的图像文件上传请求, 并根据该图像文件哈希信息 判断是否接收上传图像文件, 并在判定接收上传图像文件时向第一即时 通讯终端提供关于离线图像传输单元的上传信息;
所述离线图像传输单元, 用于接收第一即时通讯终端根据该上传信 息所上传的图像文件, 并且向第一即时通讯终端返回包含该上传图像文 件在该离线图像服务器中的存储信息的下载索引信息。
从上述技术方案中可以看出, 在本发明实施例中, 当第二即时通讯 终端不能直接从第 ―即时通讯终端接收图像文件时, 第一即时通讯终端 向离线图像服务器发送图像文件上传请求, 离线图像服务器根据该图像 文件上传请求向第一即时通讯终端返回该图像文件的下载索引信息; 然 后第二即时通讯终端再根据第一即时通讯终端提供的下载索引信息获 取所述图像文件。 由此可见, 应用本发明实施例以后, 在即时通讯终端 不能直接接收图像文件时, 可以从离线图像服务器获取该图像文件或者 直接从本地下载图像文件, 实现了离线传递图像并予以显示, 从而增强 了用户之间的沟通。 附图简要说明
图 1为根据本发明的离线图像传输方法流程图;
图 2为根据本发明实施例的离线图像系统结构示意图;
图 3为根据本发明实施例的离线图像传输方法流程图。 实施本发明的方式
为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明再作进一步详细的说明。 图 1为根据本发明的离线图像传输方法流程图。 应用本流程, 当对 方隐身或不在线的时候可以向其发送带图像的消息, 该消息中的图像将 会以离线图像的形式发送。
如图 1所示, 该离线图像传输方法包括:
步骤 101 : 当第二即时通讯终端不能直接从第一即时通讯终端接收 图像文件时, 第一即时通讯终端向离线图像服务器发送图像文件上传请 求, 离线图像服务器根据该图像文件上传请求向所述第一即时通讯终端 返回该图像文件的下载索引信息。
其中, 第二即时通讯终端不能直接从第一即时通讯终端接收图像文 件的情形可以包括第二即时通讯终端处于离线状态或者隐身状态等。 隐 身是相对发送方来说的,如果聊天交互双方刚说过话,则认为对方在线, 可以直接建立连接并发送图像文件。
图像文件上传请求中可以包括该图像文件的哈希信息, 离线图像服 务器根据该图像文件哈希信息判断是否接收该上传图像文件。 如果判定 该图像文件哈希信息与离线图像服务器中已保留的图像文件的哈希信 息相同, 则表明该图像文件已经预先保存在离线图像服务器中, 则无需 接收上传。 如果判定该图像文件哈希信息与常用自定义表情的哈希信息 相等, 此时同样也无需接收图像文件, 可以从第二即时通讯终端的本地 直接获取该图像文件。 通常情况下, 第二即时通讯终端本地已经存储有 各种常用自定义表情。
如果判定该图像文件哈希信息与离线图像服务器中已保留的图像文 件的哈希信息不相同,且不是自定义表情, 则判定接收图像文件。 此时, 第一即时通讯终端向离线图像服务器上传图像文件, 离线图像服务器向 第一即时通讯终端返回的下载索引信息中包含该上传图像文件在该离 线图像服务器中的存储信息; 或者离线图像服务器向第一即时通讯终端 返回该图像文件的本地下载索引信息, 第二即时通讯终端根据该本地下 载索引信息从第二即时通讯终端本地获取所述图像文件。
在这里, 离线图像服务器收到图像文件上传请求后, 离线图像服务 器可以进一步判断该第一即时通讯终端是否满足预先设定的上传条件, 且当判定满足上传条件后向第一即时通讯终端返回该图像文件的下载 索引信息。
此处, 预先设定的上传条件可以包括: 该第一即时通讯终端具有上 传权限、 该第二即时通讯终端上传的图像文件没有达到限制数量、 离线 图像服务器工作正常, 等。
比如, 假设预先设置的上传条件与上传权限相关, 即当该第二即时 通讯终端具有上传权限时才认为满足上传条件。 当离线图像服务器收到 图像文件上传请求后, 首先判断该该第二即时通讯终端是否具有上传权 限, 如果有上传权限, 离线图像服务器才作出处理, 向第一即时通讯终 端返回该图像文件的下载索引信息, 如果没有上传权限, 离线图像服务 器不接受上传。
步骤 102: 第一即时通讯终端向第二即时通讯终端发送所述下载索 引信息, 第二即时通讯终端根据该下载索引信息获取图像文件。
在这里, 第二即时通讯终端判断该下载索引信息是否有效, 如果有 效则从离线图像服务器或者第二即时通讯终端本地下载所述图像文件 并予以显示; 如果无效, 第二即时通讯终端以替换图像(比如, 利用红 色的叉表示显示图像失败)代替离线图像予以显示。
本发明实施例还提出了一种离线图像传输系统。
图 2为根据本发明实施例的离线图像传输系统结构示意图。
如图 2所示, 该系统包括第一即时通讯终端 201、 第二即时通讯 终端 202和离线图像服务器 203: 其中: 第一即时通讯终端 201 , 用于当第二即时通讯终端 202不能直接从 该第一即时通讯终端 201接收图像文件时, 向离线图像服务器 103发送 图像文件上传请求, 并向第二即时通讯终端 202发送由离线图像服务器 203返回的下载索引信息;
离线图像服务器 203 , 用于根据该图像文件上传请求向第一即时通 讯终端 201返回该图像文件的下载索引信息;
第二即时通讯终端 202 , 用于根据该下载索引信息获取图像文件。 其中, 第一即时通讯终端 201可以当第二即时通讯终端 202处于离 线状态或者隐身状态时,向离线图像服务器 203发送图像文件上传请求。
离线图像服务器 203具体可以包括离线图像索引服务器 2031和离线 图像传输服务器 2032; 其中:
离线图像索引服务器 2031 ,用于接收第一即时通讯终端 201发送来 的、 包括图像文件哈希信息的图像文件上传请求, 并根据该图像文件哈 希信息判断是否接收上传图像文件, 并在判定接收上传图像文件时向第 一即时通讯终端 201提供关于离线图像传输服务器 2032的上传信息。
具体地,离线图像索引服务器 2031根据该图像文件哈希信息判断是 否接收该上传图像文件, 如果接收, 第一即时通讯终端向离线图像传输 服务器 2032上传图像文件, 离线图像传输服务器 2032向所述第一即时 通讯终端 201返回的下载索引信息中包含该上传图像文件在该离线图像 服务器中的存储信息; 如果根据该图像文件哈希信息判定不用接收, 离 线图像索引服务器 2031向所述第一即时通讯终端 201返回该图像文件 的本地下载索引信息, 第一即时通讯终端 201将本地下载索引信息发送 到第二即时通讯终端 202 , 第二即时通讯终端 202根据该本地下载索引 信息从第二即时通讯终端 202本地获取图像文件。 当第一即时通讯终端 201 权限不够、 上传图像数量达到限制值等情形下, 离线图像传输服务 器 2032还可以拒绝接收第一即时通讯终端 201的上传图像文件。
第一即时通讯终端 201 ,用于根据离线图像传输服务器 2032的上传 信息向离线图像传输服务器 2032 上传图像文件; 离线图像传输服务器 2032 , 用于向所述第一即时通讯终端 201返回包含该上传图像文件在该 离线图像服务器 2032中的存储信息的下载索引信息。 关于离线图像传 输服务器 2032的上传信息包括下列信息中的任一个或者多于两个的 任意组合: 图像传输服务器的 IP地址; 图像传输服务器的端口; 上 传验证 Key信息, 另外, 图像文件可以包括各种自定义表情和 /或图 片。
第二即时通讯终端 202 , 进一步用于判断下载索引信息是否有效。 比如,第二即时通讯终端 202判断下载索引信息是否为有效的 URL信息, 如果是有效的 URL信息, 则认为下载索引信息有效, 反之则认为无效。 或者, 第二即时通讯终端 202判定下载索引信息是否为对应于常用自定 义表情的标识符, 如果是则认为下载索引信息有效, 反之则认为无效。 当判定下载索引信息有效后, 第二即时通讯终端 202从离线图像服务器 203或者第二即时通讯终端 202本地下载所述图像文件并予以显示; 如 果无效, 则以替换图像代替离线图像并予以显示。
图 3为根据本发明实施例的离线图像传输方法流程图。
如图 3所示, 该方法包括:
步骤 1 : 第一即时通讯终端对期望发送的即时通讯消息进行緩存, 延迟数秒再发送, 并且将即时通讯消息体中的图像替换为编码格式(比 如: 以特殊符号开始和结束, 包含图像类型、 图像大小、 图像文件哈希 信息等信息, 如果存在重复的图像, 则编码只需表示和本消息中哪个图 像相同以节省传输量)。
步骤 2 : 第一即时通讯终端向离线图像索引服务器发送图像文件上 传请求, 该请求中携带有图像文件哈希信息。
步骤 3 : 离线图像索引服务器收到图像文件上传请求后, 根据解析 该图像文件哈希信息, 提供 3种回复结果:
( 1 )当离线图像索引服务器和离线图像传输服务器中没有该图像文 件且该图像文件不是常用表情时, 允许上传图像文件;
( 2 )不需要上传(如果服务器已有该图像文件或者该图像文件为已 有的表情文件)。 此时离线图像索引服务器返回下载索引信息, 第一即 时通讯终端将跳过步骤 4-6直接进入步骤 7 ;
( 3 )拒绝上传(比如, 第一即时通讯终端上传权限不够、 离线图像 传输服务器保存的图像文件数量达到限制或离线图像索引服务器、 离线 图像传输服务器发生错误等)。 当允许上传或不需要上传时, 离线图像 索引服务器向第一即时通讯终端返回的响应中都会带有离线图像下载 信息,需要上传时还会返回具体上传的离线图像传输服务器的 IP、端口、 上传验证 key、 下载索引等信息, 拒绝上传时将会带上拒绝原因。 如果 因为权限不够、 上传图像数量达到限制等原因造成拒绝上传, 则第一即 时通讯终端不会尝试发送消息中的其他图像, 并跳出本流程。
步骤 4 : 第一即时通讯终端带上步骤 3返回的上传验证 key等信息 连接指定的离线图像传输服务器进行上传。 由于即时通讯终端群庞大, 通常离线图像传输服务器的数量可以为多台, 并且由离线图像索引服务 器为第一即时通讯终端指定具体提供服务的离线图像传输服务器。
步骤 5 : 第一即时通讯终端上传成功后, 离线图像传输服务器向离 线图像索引服务器发送上传结果。
步骤 6 : 离线图像传输服务器直接向第一即时通讯终端返回上传结 果, 或者离线图像索引服务器向第一即时通讯终端返回上传结果。
步骤 7 : 如果成功上传, 则第一即时通讯终端将步骤 3中返回的下 载索引信息插入到图像编码中, 如果消息中还有其他离线图像需要上 传, 则转步骤 2。
步骤 8 : 第一即时通讯终端在所有离线图像的发送都有了结果或消 息延迟达到最大时间以后, 将被延迟的即时通讯消息发送出去。
第二即时通讯终端收到带离线图像的即时通讯消息后, 将会进行离 线图像接收流程, 包括:
步骤 9 : 第二即时通讯终端对消息中的图像信息进行检查(在消息 体中搜索图像编码), 如果没有有效的离线图像下载信息, 或有效的离 线图像信息中的图像都不需要下载 (根据图像文件哈希信息判断到本地 已经存在), 则直接处理并显示整条消息 (本地已有直接显示, 无下载 信息的图像处用错误图像替换), 且不再进行后续流程。
步骤 10: 第二即时通讯终端根据下载索引信息向离线图像索引服务 器申请下载。
步骤 11 : 离线图像索引服务器返回申请结果, 如果允许下载, 则包 含具体的下载服务器 IP、 端口、 下载验证 key等信息, 如果拒绝, 则包 含拒绝原因。
步骤 12: 第二即时通讯终端带上步骤 11返回的下载验证 key等信 息连接指定的离线图像传输服务器进行下载。
步骤 13: 第二即时通讯终端下载成功后, 离线图像传输服务器向离 线图像索引服务器告知下载结果。
步骤 14: 离线图像索引服务器向第二即时通讯终端返回下载结果。 步骤 15: 当离线消息中所有需要下载的离线图像都有了下载结果或 已经达到最大延迟时间时, 则处理并显示消息(如果是达到最大延迟时 间, 则未下载完的离线图像处用表示正在下载的图像替换, 等下载完成 后再显示真实的离线图像), 否则转回步骤 10继续下载其他未完成的离 线图像。
当离线消息中包括文本和图像时, 第二即时通讯终端收到该离线消 息后, 从本地或离线图像服务器处获取图像文件, 并且在该离线图像在 离线消息的原始位置处显示该图像文件, 从而保证文本和图像的位置保 持不便, 能够正确显示原有的文本和图像顺序。
综上所述, 在本发明实施例中, 在即时通讯终端不能直接接收图像 文件时, 可以从离线图像服务器获取该图像文件或者直接从本地下载图 像文件, 实现了离线传递图像, 从而增强了用户之间的沟通。
具体地, 本发明实施例将消息和表情等图像联系起来作为离线的信 息发送。 例如: 在一条即时通讯消息中, 可以含有表情等图像, 在接收 方是非上线或者隐身的情况下, 接收方会收到提示, 让用户去取该消息 (该消息的表情等存在离线图像服务器上, 如果这个表情有其他用户使 用过, 则在开始上传到离线图像服务器的时候, 就不用上传), 然后就 实现了在接收方的显示。 另外, 接收方如果是隐身的状态也能够收到提 示, 并可以从离线图像服务器上取得消息, 而不用暴露自己处于隐身状 态。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种离线图像传输方法, 其特征在于, 该方法包括:
当第二即时通讯终端不能直接从第一即时通讯终端接收图像文件 时, 第一即时通讯终端向离线图像服务器发送图像文件上传请求, 离线 图像服务器根据该图像文件上传请求向所述第一即时通讯终端返回该 图像文件的下载索引信息;
第一即时通讯终端向第二即时通讯终端发送所述下载索引信息, 第 二即时通讯终端根据该下载索引信息获取所述图像文件。
2、根据权利要求 1所述的离线图像传输方法, 其特征在于, 所述第 二即时通讯终端不能直接从第 ―即时通讯终端接收图像文件包括:
第二即时通讯终端处于离线状态或者第二即时通讯终端处于隐身状 态。
3、根据权利要求 1所述的离线图像传输方法, 其特征在于, 所述图 像文件上传请求中包括图像文件哈希信息;
所述离线图像服务器根据该图像文件上传请求向第一即时通讯终端 返回该上传图像文件的下载索引信息包括:
所述离线图像服务器根据该图像文件哈希信息判断是否接收该上传 图像文件, 如果接收, 第一即时通讯终端向离线图像服务器上传图像文 件, 离线图像服务器向所述第一即时通讯终端返回的下载索引信息中包 含该上传图像文件在该离线图像服务器中的存储信息; 如果不接收, 离 线图像服务器向所述第一即时通讯终端返回该图像文件的本地下载索 引信息, 第二即时通讯终端根据该本地下载索引信息从第二即时通讯终 端本地获取所述图像文件。
4、根据权利要求 1、 2或 3所述的离线图像传输方法, 其特征在于, 所述图像文件包括自定义表情和图片。
5、根据权利要求 1所述的离线图像传输方法, 其特征在于, 所述第 二即时通讯终端根据该下载索引信息获取图像文件包括:
第二即时通讯终端判断该下载索引信息是否有效, 如果有效则从离 线图像服务器或者第二即时通讯终端本地下载所述图像文件并予以显 示; 如果无效, 第二即时通讯终端以替换图像代替所述离线图像予以显 示。
6、 根据权利要求 1、 2、 3、 或 5所述的离线图像传输方法, 其特征 在于, 离线图像服务器收到所述图像文件上传请求后, 该方法进一步包 括:
所述离线图像服务器判断该第二即时通讯终端是否满足上传条件, 且当判定满足上传条件后向所述第一即时通讯终端返回该图像文件的 下载索引信息。
7、根据权利要求 6所述的离线图像传输方法, 其特征在于, 所述满 足上传条件包括满足下列条件中的任一个或者多于两个的任意组合: 该第二即时通讯终端具有上传权限;
该第二即时通讯终端上传的图像文件没有达到限制数量;
所述离线图像服务器工作正常。
8、 一种离线图像传输系统, 其特征在于, 该系统包括第一即时通讯 终端、 第二即时通讯终端和离线图像 ^良务器, 其中:
所述第 ―即时通讯终端, 用于当第二即时通讯终端不能直接从该第 一即时通讯终端接收图像文件时, 向离线图像服务器发送图像文件上传 请求, 并向第二即时通讯终端发送由离线图像服务器返回的下载索引信 息;
所述离线图像服务器, 用于根据该图像文件上传请求向所述第一即 时通讯终端返回该图像文件的下载索引信息;
所述第二即时通讯终端, 用于根据该下载索引信息获取所述图像文 件。
9、根据权利要求 8所述的离线图像传输系统, 其特征在于, 所述第 ―即时通讯终端, 用于当所述第二即时通讯终端处于离线状态或者隐身 状态时, 向离线图像服务器发送图像文件上传请求。
10、 根据权利要求 8所述的离线图像传输系统, 其特征在于, 所述 离线图像服务器包括离线图像索引服务器和离线图像传输服务器; 其 中:
所述离线图像索引服务器, 用于接收第 ―即时通讯终端发送来的、 包括图像文件哈希信息的图像文件上传请求, 并根据该图像文件哈希信 息判断是否接收上传图像文件, 并在判定接收上传图像文件时向第一即 时通讯终端提供关于离线图像传输服务器的上传信息;
所述第一即时通讯终端, 用于根据该上传信息向离线图像传输服务 器上传图像文件;
所述离线图像传输服务器, 用于向所述第一即时通讯终端返回包含 该上传图像文件在该离线图像服务器中的存储信息的下载索引信息。
11、根据权利要求 10所述的离线图像传输系统, 其特征在于, 所述 关于离线图像传输服务器的上传信息包括下列信息中的任一个或者多 于两个的任意组合:
图像传输服务器的 IP地址;
图像传输服务器的端口;
上传验证 Key信息。
12、 根据权利要求 8、 9、 10或 11所述的离线图像传输系统, 其特 征在于, 所述图像文件包括自定义表情和图片。
13、 根据权利要求 8、 9、 10或 11所述的离线图像传输系统, 其特 征在于,
所述第二即时通讯终端, 用于判断所述下载索引信息是否有效, 如 果有效则从离线图像服务器或者第二即时通讯终端本地下载所述图像 文件并予以显示; 如果无效, 则以替换图像代替所述离线图像并予以显 示。
14、 一种离线图像服务器, 其特征在于, 所述包括离线图像索引单 元和离线图像传输单元; 其中:
所述离线图像索引单元, 用于接收第一即时通讯终端发送来的、 包 括图像文件哈希信息的图像文件上传请求, 并根据该图像文件哈希信息 判断是否接收上传图像文件, 并在判定接收上传图像文件时向第一即时 通讯终端提供关于离线图像传输单元的上传信息;
所述离线图像传输单元, 用于接收第 ―即时通讯终端根据该上传信 息所上传的图像文件, 并且向第一即时通讯终端返回包含该上传图像文 件在该离线图像服务器中的存储信息的下载索引信息。
15、根据权利要求 14所述的离线图像服务器, 其特征在于, 所述关 于离线图像传输服务器的上传信息包括下列信息中的任一个或者多于 两个的任意组合:
图像传输服务器的 IP地址;
图像传输服务器的端口;
上传验证 Key信息。
16、 根据权利要求 14或 15所述的离线图像服务器, 其特征在于, 所述图像文件包括自定义表情和图片。
PCT/CN2009/071265 2008-04-23 2009-04-14 离线图像传输方法、系统和离线图像服务器 WO2009129723A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US12/850,353 US20100318634A1 (en) 2008-04-23 2010-08-04 Method and system for sending, receiving and transmitting an offline image and offline image server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810095030.X 2008-04-23
CN200810095030XA CN101277276B (zh) 2008-04-23 2008-04-23 一种离线图像传输方法和系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/850,353 Continuation-In-Part US20100318634A1 (en) 2008-04-23 2010-08-04 Method and system for sending, receiving and transmitting an offline image and offline image server

Publications (1)

Publication Number Publication Date
WO2009129723A1 true WO2009129723A1 (zh) 2009-10-29

Family

ID=39996293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071265 WO2009129723A1 (zh) 2008-04-23 2009-04-14 离线图像传输方法、系统和离线图像服务器

Country Status (3)

Country Link
US (1) US20100318634A1 (zh)
CN (1) CN101277276B (zh)
WO (1) WO2009129723A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116260831A (zh) * 2023-05-16 2023-06-13 上海凯翔信息科技有限公司 一种基于云端nas的离线下载方法及存储介质

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277276B (zh) * 2008-04-23 2011-02-16 腾讯科技(深圳)有限公司 一种离线图像传输方法和系统
CN102355637A (zh) * 2011-09-30 2012-02-15 奇智软件(北京)有限公司 一种移动终端即时通讯处理方法及装置
CN103248645B (zh) 2012-02-08 2018-03-16 深圳市腾讯计算机系统有限公司 Bt离线数据下载系统及方法
CN103428231B (zh) * 2012-05-16 2018-06-01 腾讯科技(深圳)有限公司 离线下载方法和系统
CN102685223A (zh) * 2012-04-28 2012-09-19 广州市动景计算机科技有限公司 基于云端存储的文件处理方法及系统
CN103475564B (zh) * 2012-06-06 2018-11-23 腾讯科技(深圳)有限公司 网络附件传送方法及其系统
CN103581230B (zh) * 2012-07-26 2018-09-04 深圳市腾讯计算机系统有限公司 文件传输系统和方法、接收端、发送端
US9639318B2 (en) * 2012-09-26 2017-05-02 Tencent Technology (Shenzhen) Company Limited Systems and methods for sharing image data
US20140282786A1 (en) * 2013-03-12 2014-09-18 Time Warner Cable Enterprises Llc Methods and apparatus for providing and uploading content to personalized network storage
CN104683217A (zh) * 2013-12-03 2015-06-03 腾讯科技(深圳)有限公司 一种多媒体信息的传输方法及即时通讯客户端
CN105631048A (zh) * 2016-02-17 2016-06-01 马鞍山市清醒软件科技有限公司 一种移动设备的应用内实现实时更新图像内容的方法
CN110022329B (zh) * 2018-01-08 2022-03-11 腾讯科技(深圳)有限公司 文件传输方法、装置、计算机可读存储介质及计算机设备
CN110769177B (zh) * 2018-07-26 2021-07-06 亿度慧达教育科技(北京)有限公司 计算机可读存储介质、基于通讯软件的多媒体资源录制方法及系统
CN114245152A (zh) * 2021-11-03 2022-03-25 武汉斗鱼鱼乐网络科技有限公司 标识图片加载方法、装置、存储介质及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014022A (zh) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 一种在即时通信工具中传输文件的方法、装置和系统
CN101047511A (zh) * 2006-03-27 2007-10-03 腾讯科技(深圳)有限公司 一种文件传输方法与系统
CN101079849A (zh) * 2007-06-29 2007-11-28 腾讯科技(深圳)有限公司 即时通讯系统中发送离线消息的方法和系统
CN101277276A (zh) * 2008-04-23 2008-10-01 腾讯科技(深圳)有限公司 一种离线图像传输方法和系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6583792B1 (en) * 1999-11-09 2003-06-24 Newag Digital, Llc System and method for accurately displaying superimposed images
AU2001245930A1 (en) * 2000-03-22 2001-10-03 Omnipod, Inc. Integrated system and method of providing online access to files and information
CN1142659C (zh) * 2001-01-12 2004-03-17 北京北大天正科技发展有限公司 一种计算机网络中的共享数据传递方法
CN1393788A (zh) * 2001-06-22 2003-01-29 英业达集团(南京)电子技术有限公司 网上讯息服务提供系统与方法
US20050203976A1 (en) * 2004-02-11 2005-09-15 University Of California Systems, tools and methods for transferring files and metadata to and from a storage means
US7698442B1 (en) * 2005-03-03 2010-04-13 Voltage Security, Inc. Server-based universal resource locator verification service
US20070038681A1 (en) * 2005-08-10 2007-02-15 Spare Backup, Inc. System and method of remote storage of data through connection from a server to a client
US20080079984A1 (en) * 2006-09-22 2008-04-03 Gallucci Frank V Digital Image Sharing
US8880692B2 (en) * 2006-10-30 2014-11-04 International Business Machines Corporation Method of cascading transfer of authorization rights for file access
CN100589430C (zh) * 2007-07-23 2010-02-10 中国联合网络通信集团有限公司 一种即时消息的文件传输系统及其方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047511A (zh) * 2006-03-27 2007-10-03 腾讯科技(深圳)有限公司 一种文件传输方法与系统
CN101014022A (zh) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 一种在即时通信工具中传输文件的方法、装置和系统
CN101079849A (zh) * 2007-06-29 2007-11-28 腾讯科技(深圳)有限公司 即时通讯系统中发送离线消息的方法和系统
CN101277276A (zh) * 2008-04-23 2008-10-01 腾讯科技(深圳)有限公司 一种离线图像传输方法和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116260831A (zh) * 2023-05-16 2023-06-13 上海凯翔信息科技有限公司 一种基于云端nas的离线下载方法及存储介质
CN116260831B (zh) * 2023-05-16 2023-08-04 上海凯翔信息科技有限公司 一种基于云端nas的离线下载方法及存储介质

Also Published As

Publication number Publication date
US20100318634A1 (en) 2010-12-16
CN101277276B (zh) 2011-02-16
CN101277276A (zh) 2008-10-01

Similar Documents

Publication Publication Date Title
WO2009129723A1 (zh) 离线图像传输方法、系统和离线图像服务器
CN101170523B (zh) 文件传输系统、方法以及文件中转决策服务器
US7969461B2 (en) System and method for exchanging connection information for videoconferencing units using instant messaging
CN100438651C (zh) 即时消息服务器、客户端、处理系统及处理方法
US8447814B2 (en) Remote control using instant messaging
WO2008040248A1 (fr) Procédé et système de transmission de courrier électronique et serveur de courrier électronique poussé
WO2007071145A1 (fr) Procede de fourniture de services d'envoi groupe de messages, dispositif et systeme associes
CN102395115A (zh) 用于在融合ip消息业务中管理消息线程的方法和系统
CN101485173A (zh) 远程更新存在服务器上的用户状态
WO2007031708A1 (en) Group communications
KR20090115465A (ko) 멀티클라이언트 간 세션 이동을 위한 시스템 및 방법
JP2009512931A (ja) オフラインインスタントメッセージのリトリーブ
CN101160913A (zh) 一种离线消息处理方法
CN107580306B (zh) 一种转发多媒体消息的方法和系统
WO2009092222A1 (zh) 共享通信对象的方法、客户端及通信系统
US8924578B2 (en) Method for transmitting messages in an MMS-based communication system
WO2009097713A1 (zh) 在网络电视业务系统中实现信息共享的方法和终端
TW200803446A (en) A multimedia-messaging-service (MMS) system and the service method thereof
WO2007009369A1 (en) Method and system by which instant message user can use instant message system chat room to which user unbelongs
WO2008131628A1 (fr) Procédé et système de messagerie permettant de gérer des contenus multimédia dans un stockage uniforme
WO2010028565A1 (zh) 向即时通讯联系人发送电子邮件的方法、系统和客户端
WO2013086848A1 (zh) 向即时消息系统用户传输文件的方法、装置及系统
WO2008071109A1 (fr) Procédé et système de réalisation de gestion de compte de courrier tiers
WO2007003101A1 (fr) Procédé, appareil et système de sauvegarde d’un message instantané
CN101374254A (zh) 通信系统中传送报告的方法及设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09735679

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 1576/MUMNP/2010

Country of ref document: IN

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC. COMMUNICATION 1205A DATED 04-03-2011

122 Ep: pct application non-entry in european phase

Ref document number: 09735679

Country of ref document: EP

Kind code of ref document: A1