WO2014101461A1 - 图片下载方法及装置 - Google Patents

图片下载方法及装置 Download PDF

Info

Publication number
WO2014101461A1
WO2014101461A1 PCT/CN2013/082924 CN2013082924W WO2014101461A1 WO 2014101461 A1 WO2014101461 A1 WO 2014101461A1 CN 2013082924 W CN2013082924 W CN 2013082924W WO 2014101461 A1 WO2014101461 A1 WO 2014101461A1
Authority
WO
WIPO (PCT)
Prior art keywords
proxy server
merged
pictures
url address
picture
Prior art date
Application number
PCT/CN2013/082924
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 WO2014101461A1 publication Critical patent/WO2014101461A1/zh
Priority to US14/750,142 priority Critical patent/US20150296014A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • H04L41/0293Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP] for accessing web services by means of a binding identification of the management service or element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols

Definitions

  • the present invention claims priority to Chinese Patent Application No. 201210578999.9, entitled “A Picture Downloading Method and Apparatus", filed on December 27, 2012, the entire contents of which are hereby incorporated by reference. Combined in this application.
  • TECHNICAL FIELD The present invention relates to the field of communication technology.
  • BACKGROUND When a mobile terminal, a tablet computer, or the like is used to browse a picture, when downloading the same webpage or having multiple images in one interface, multiple hyperlinks (HTTP, Hypertext transfer protocol) are used to extract the image. Leading to excessive network links takes time.
  • HTTP Hypertext transfer protocol
  • a merging unit for merging URL addresses of each picture in multiple pictures
  • a sending unit configured to send a download request to the proxy server, where the download request carries the merged picture
  • a port a parsing unit, configured to parse the number of the merged pictures of the multiple pictures from the proxy server The plurality of pictures are obtained according to the stream.
  • the non-transitory computer readable storage medium provided by the embodiment of the present invention has stored thereon computer executable instructions. When the executable instructions are run in the computer, the following steps are performed:
  • FIG. 1 is a schematic flow chart of a picture downloading method in a first embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a picture downloading method in a second embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a picture downloading apparatus in a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a picture downloading apparatus in a fourth embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a picture downloading apparatus in a fifth embodiment of the present invention.
  • the technical solutions of the embodiments of the present invention are further described below with reference to the accompanying drawings and specific embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • the first embodiment of the present invention takes a mobile phone terminal as an example, and other mobile terminals also apply the implementation process of the technical solution in this embodiment.
  • the picture downloading method in this embodiment includes steps 101 to 103.
  • step 101 the URL addresses of each of the plurality of pictures are combined.
  • the mobile terminal combines the addresses of the Uniform / Universal Resource Locator (URL, Uniform / Universal Resource Locator) of each of the plurality of pictures selected by the user.
  • URL Uniform / Universal Resource Locator
  • the URL of image 2 is:
  • Http ⁇ matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpgl
  • a download request is sent to the proxy server, where the downloaded request carries the merged slice.
  • the mobile terminal sends a download request to the proxy server, where the download request is used to request the proxy server to download a plurality of pictures selected by the user to be downloaded, and the download request carries multiple pictures. .
  • step 103 the picture data stream merged from the plurality of pictures from the proxy server is parsed to obtain the plurality of pictures.
  • the proxy server acquires the multiple pictures according to the merged URL address sent by the mobile terminal, combines the multiple pictures into one picture data stream, and sends the combined picture data stream to the mobile phone. terminal.
  • the mobile phone terminal After receiving the merged picture data stream sent by the proxy server, the mobile phone terminal parses the merged picture data stream, and obtains the multiple pictures.
  • the mobile terminal combines the URL addresses of each of the multiple pictures to be downloaded, and sends a download request to the proxy server, where the download request carries the merged URL address, so that the proxy server
  • the merged URL address obtains the plurality of pictures.
  • the second embodiment of the present invention provides another method for downloading pictures. Referring to FIG. 2, the picture downloading method in this embodiment includes steps 201 to 205.
  • step 201 a URL address of each picture in multiple pictures is obtained.
  • the mobile terminal obtains the URL address of each of the plurality of pictures to be downloaded, and is implemented by a module having a function of acquiring a picture URL address in the mobile terminal, and the software for acquiring a picture URL address function is saved in the module.
  • step 202 the URL addresses of each of the plurality of pictures are merged.
  • the mobile terminal combines the URL addresses of each of the multiple pictures selected by the user to be combined into one URL address, which can be implemented by a module having a function of merging picture URL addresses in the mobile terminal, and is saved in the module.
  • the mobile terminal merges the URL addresses of each of the plurality of pictures selected by the user to be downloaded.
  • the URL of image 1 is:
  • the URL of Figure 2 is: Http: ⁇ matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpg
  • the URL of the picture 3 is:
  • Http ⁇ matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpgl
  • a download request is sent to the proxy server, where the downloaded request carries the merged slice.
  • the mobile terminal sends a download request to the proxy server, where the download request is used to request the proxy server to download a plurality of images selected by the user to be downloaded, where the download request carries the merged URL.
  • the manner in which the server obtains multiple images according to the merged URL address may be that multiple images are acquired in parallel through multi-threading.
  • a thread is a single sequential control process in a program. Running multiple threads simultaneously in a single program to accomplish different tasks is called multithreading.
  • Step 204 Receive a picture data stream that is sent by the proxy server and merge the multiple pictures according to a pre-negotiating rule.
  • the mobile terminal receives the merged picture data stream sent by the proxy server by the proxy server.
  • the proxy server acquires the multiple pictures according to the merged URL address sent by the mobile terminal, and combines the multiple pictures into one picture data according to a pre-negotiating rule with the mobile terminal system, and combines multiple pictures into a picture data stream. And rules for how the mobile terminal parses each individual picture data according to the picture data stream.
  • the merged picture data stream is parsed according to the pre-negotiated rule to obtain the multiple pictures.
  • the mobile terminal After receiving the merged picture data stream from the proxy server, the mobile terminal parses the merged picture data stream according to the pre-negotiation rule to obtain the multiple pictures.
  • the mobile terminal acquires the URL address of each picture in the multiple pictures to be downloaded, and merges and merges the obtained URL addresses, and sends a download request to the proxy server, where the download request carries the merged URL address. And causing the merged URL address of the proxy server to acquire the multiple pictures in parallel through a multi-threading manner.
  • Receiving, by the mobile terminal, the picture data stream that is combined by the multiple photos according to the pre-negotiating rule, and parsing the combined picture data stream according to the pre-negotiating rule to obtain the multiple pictures This implementation downloads multiple images at once, reducing network time and increasing the speed of downloading images.
  • a third embodiment of the present invention provides a picture downloading device. Referring to FIG. 3, the image downloading apparatus in this embodiment includes:
  • a merging unit 301 configured to merge URL addresses of each picture in multiple pictures
  • the sending unit 302 is configured to send a download request to the proxy server, where the download request carries the merged URL address of the merging unit 301, so that the proxy server acquires the multiple images according to the merged URL address;
  • the parsing unit 303 is configured to parse the merged picture data stream from the proxy server to obtain the multiple pictures.
  • the merging unit 301 merges the URL addresses of each of the plurality of pictures, and the sending unit 302 sends a download request to the proxy server, where the download request carries the merged URL address, so that the proxy server is configured according to the proxy server.
  • the merged URL address acquires the plurality of pictures.
  • the parsing unit 303 parses the merged picture data stream from the proxy server to obtain the plurality of pictures, thereby implementing downloading multiple pictures at one time, reducing network time and increasing the speed of downloading pictures.
  • the fourth embodiment of the present invention provides another image downloading apparatus. Referring to FIG. 4, the image downloading apparatus provided in this embodiment further includes:
  • the receiving unit 304 is configured to receive a picture data stream that is merged by multiple pictures sent by the proxy server.
  • the parsing unit 304 may parse the merged picture data stream received by the receiving unit 303 to obtain the plurality of pictures.
  • the fifth embodiment of the present invention provides another image downloading apparatus.
  • the image downloading apparatus in this embodiment includes:
  • a merging unit 401 configured to merge URL addresses of each picture in multiple pictures
  • the sending unit 402 is configured to send a download request to the proxy server, where the download request carries the merged URL address of the merging unit 401, so that the proxy server acquires the multiple images according to the merged URL address;
  • the receiving unit 403 is configured to receive the merged picture data stream sent by the proxy server by the proxy server;
  • the parsing unit 404 is configured to parse the merged picture data stream received by the receiving unit 403 to obtain the multiple pictures.
  • the picture data stream sent by the proxy server received by the receiving unit 403 is merged according to a pre-negotiating rule
  • the parsing unit 404 may further parse the merged picture data stream according to the pre-negotiation rule to obtain the multiple pictures.
  • the image downloading apparatus in the embodiment of the present invention may further include: an obtaining unit 405, configured to acquire a URL address of each of the plurality of pictures to be downloaded.
  • an obtaining unit 405 configured to acquire a URL address of each of the plurality of pictures to be downloaded.
  • the obtaining unit 405 obtains the URL address of each picture in the multiple pictures
  • the merging unit 401 merges the obtained URL addresses
  • the sending unit 402 sends a download request to the proxy server, where the downloading request carries the merging unit.
  • the merged URL address is such that the merged URL address of the proxy server acquires the plurality of pictures in parallel through a multi-threading manner.
  • the parsing unit 404 parses the merged picture data stream according to the pre-negotiating rule to obtain the multiple pictures, thereby implementing downloading multiple pictures at one time, reducing network time consumption, and improving downloading pictures. speed.
  • the present invention also provides a program product for storing a machine readable instruction code.
  • Such machine readable storage media include, but are not limited to, various memories and storage units, semiconductor devices, disk units such as optical, magnetic and magneto-optical disks, and other media suitable for storing information and the like.
  • various memories and storage units semiconductor devices
  • disk units such as optical, magnetic and magneto-optical disks
  • other media suitable for storing information and the like.

Landscapes

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

Abstract

本发明实施例公开了一种图片下载方法及装置,用于加快同时下载多张图片的下载速度。本发明实施例方法包括:合并多张图片中每张图片的URL地址,向代理服务器发送下载请求,所述下载请求中携带合并后的URL地址,使得所述代理服务器根据所述合并后的URL地址获取所述多张图片,以及,解析来自所述代理服务器的所述多张图片合并后的图片数据流得到所述多张图片。

Description

图片下载方法及装置 本申请要求于 2012 年 12 月 27 日提交中国专利局、 申请号为 201210578999.9、 发明名称为"一种图片下载方法及装置"的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术领域。 背景技术 在使用手机、平板电脑等移动终端浏览图片时, 当下载同一网页或者一个 界面中有多张图片时, 要进行多次的超文本传输协议 ( HTTP , Hypertext transfer protocol )短连接提取图片, 导致过多的网络链接耗时。 发明内容 本发明实施例提供了一种图片下载方法及装置, 以解决以上问题。
本发明实施例提供的图片下载方法, 包括:
合并多张图片中每张图片的 URL地址;
向代理服务器发送下载请求, 所述下载请求中携带合并后的 URL地址, 解析来自所述代理服务器的所述多张图片合并后的图片数据流得到所述 多张图片。
本发明实施例提供的图片下载装置, 包括:
合并单元, 用于合并多张图片中每张图片的 URL地址;
发送单元, 用于向代理服务器发送下载请求, 所述下载请求中携带合并后 图片; 口 、 ' 解析单元,用于解析来自所述代理服务器的所述多张图片合并后的图片数 据流得到所述多张图片。
本发明实施例提供的非瞬时性的计算机可读存储介质,其上存储有计算机 可执行指令, 当计算机中运行这些可执行指令时, 执行如下步骤:
合并多张图片中每张图片的 URL地址;
向代理服务器发送下载请求, 所述下载请求中携带合并后的 URL地址, 解析来自所述代理服务器的所述多张图片合并后的图片数据流得到所述 多张图片。
从以上技术方案可以看出, 本发明实施例具有以下优点: 合并多张图片中 每张图片的 URL地址, 向代理服务器发送下载请求, 所述下载请求中携带合 多张图片,解析来自代理服务器的所述多张图片合并后的图片数据流得到所述 多张图片, 由此实现一次性下载多张图片, 降低网络耗时, 提高下载图片的速 度。 附图说明 图 1为本发明第一实施例中的图片下载方法的流程示意图
图 2为本发明第二实施例中的图片下载方法的流程示意图
图 3为本发明第三实施例中的图片下载装置的结构示意图
图 4为本发明第四实施例中的图片下载装置的结构示意图; 以及
图 5为本发明第五实施例中的图片下载装置的结构示意图。 具体实施方式 下面结合附图和具体实施例进一步说明本发明实施例的技术方案, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发 明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
本发明第一实施例以手机终端为例,其他移动终端同样适用本实施例中的 技术方案的实现过程。 请参阅图 1 , 本实施例中的图片下载方法包括步骤 101至步骤 103。
步骤 101中, 合并多张图片中每张图片的 URL地址。
用户在使用手机终端浏览网上的图片时, 如果需要下载图片, 通常通过 HTTP短连接下载图片。 那么, 当同一网页或者一个界面中有多张图片时, 要 进行多次的短连接提取多张图片, 会导致过多的网络链接緩沖耗时。
本实施例中,手机终端将用户选定要下载的多张图片中每张图片的统一资 源定位符 ( URL, Uniform / Universal Resource Locator )地址进行合并。 例: ¾口: 图片 1的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/184/217/1227/79841194.jpg,
图片 2的 URL地址是:
http:〃 matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpg, 图片 3的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/54/202/1225/79707189.jpg,
图片 4的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/90/27/1228/79857675.jpg,
则合并后的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/184/217/1227/79841194.jpgl
http:〃 matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpgl
http://imgl.gtimg.com/news/pics/hvl/54/202/1225/79707189.jpgl
http://imgl.gtimg.com/news/pics/hvl/90/27/1228/79857675.jpg
步骤 102中, 向代理服务器发送下载请求, 所述下载请求中携带合并后的 片。 口 、 ' 本实施例中, 手机终端向代理服务器发送下载请求, 所述下载请求用于向 所述代理服务器请求下载用户选定要下载的多张图片,所述下载请求中携带合 多张图片。
步骤 103中,解析来自所述代理服务器的所述多张图片合并后的图片数据 流, 得到所述多张图片。 本实施例中, 代理服务器根据手机终端发送的所述合并后的 URL地址获 取所述多张图片,将所述多张图片合并为一个图片数据流, 并将合并后的图片 数据流发送给手机终端。手机终端接收所述代理服务器发送的所述多张图片合 并后的图片数据流后, 解析所述合并后的图片数据流, 并得到所述多张图片。
本实施例中, 手机终端将要下载的多张图片中每张图片的 URL地址进行 合并, 并向代理服务器发送下载请求, 所述下载请求中携带合并后的 URL地 址, 使得所述代理服务器根据所述合并后的 URL地址获取所述多张图片。 所 述手机终端接收所述代理服务器发送的所述多张图片合并后的图片数据流,解 析所述合并后的图片数据流得到所述多张图片, 由此实现一次性下载多张图 片, 降低网络耗时, 提高下载图片的速度。 本发明第二实施例提供另一种图片下载方法, 请参阅图 2, 本实施例中的 图片下载方法包括步骤 201至步骤 205。
步骤 201中, 获取多张图片中每张图片的 URL地址。
手机终端获取要下载的所述多张图片中每张图片的 URL地址, 可通过手 机终端中具有获取图片 URL地址功能的模块实现, 在该模块中保存有获取图 片 URL地址功能的软件。
步骤 202中, 合并所述多张图片中每张图片的 URL地址。;
用户在使用手机终端浏览网上的图片时, 如果需要下载图片, 通常通过 HTTP短连接下载图片。 那么, 当同一网页或者一个界面中有多张图片时, 要 进行多次的短连接提取多张图片, 会导致过多的网络链接緩沖耗时。
本实施例中, 手机终端将用户选定要下载的多张图片中每张图片的 URL 地址合并为一个 URL地址,可通过手机终端中具有合并图片 URL地址功能的 模块实现, 在该模块中保存有合并图片 URL地址功能的软件。
手机终端将用户选定要下载的多张图片中每张图片的 URL地址进行合 并。 例如:
图片 1的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/184/217/1227/79841194.jpg,
图片 2的 URL地址是: http:〃 matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpg, 图片 3的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/54/202/1225/79707189.jpg,
图片 4的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/90/27/1228/79857675.jpg,
则合并后的 URL地址是:
http://imgl.gtimg.com/news/pics/hvl/184/217/1227/79841194.jpgl
http:〃 matl.gtimg.com/news/012xusong/shijie/piaojinhui/pjhl78.jpgl
http://imgl.gtimg.com/news/pics/hvl/54/202/1225/79707189.jpgl
http://imgl.gtimg.com/news/pics/hvl/90/27/1228/79857675.jpg
步骤 203中, 向代理服务器发送下载请求, 所述下载请求中携带合并后的 片。 、 口 ' 手机终端向代理服务器发送下载请求,所述下载请求用于向所述代理服务 器请求下载用户选定要下载的多张图片, 所述下载请求中携带合并后的 URL 本实施例中代理服务器根据所述合并后的 URL地址获取多张图片的方 式, 可以是通过多线程方式并行获取多张图片。 线程是程序中一个单一的顺序 控制流程。 在单个程序中同时运行多个线程完成不同的工作, 称为多线程。
步骤 204中,接收所述代理服务器发送的根据预先协商规则将所述多张图 片合并后的图片数据流。
手机终端接收所述代理服务器发送的所述多张图片合并后的图片数据流, 并。
代理服务器根据手机终端发送的所述合并后的 URL地址获取所述多张图 片, 根据与手机终端系统预先协商规则将所述多张图片合并为一个图片数据 何将多张图片合并为图片数据流,以及手机终端如何根据图片数据流解析出其 中的各个单个图片数据的规则。 步骤 205中,根据所述预先协商的规则解析所述合并后的图片数据流得到 所述多张图片。
手机终端从代理服务器处接收到所述合并后的图片数据流后,根据所述预 先协商规则解析所述合并后的图片数据流, 得到所述多张图片。
本实施例中, 手机终端获取要下载的多张图片中每张图片的 URL地址, 并将获取的 URL地址进行合并合并, 向代理服务器发送下载请求, 所述下载 请求中携带合并后的 URL地址,使得所述代理服务器合并后的 URL地址通过 多线程方式并行获取所述多张图片。手机终端接收所述代理服务器发送的根据 预先协商规则将所述多张图片合并后的图片数据流,并根据所述预先协商规则 解析所述合并后的图片数据流得到所述多张图片,由此实现一次性下载多张图 片, 降低网络耗时, 提高下载图片的速度。 本发明第三实施例提供一种图片下载装置, 请参阅图 3, 本实施例中的图 片下载装置包括:
合并单元 301 , 用于合并多张图片中每张图片的 URL地址;
发送单元 302, 用于向代理服务器发送下载请求, 所述下载请求中携带所 述合并单元 301合并后的 URL地址, 使得所述代理服务器根据所述合并后的 URL地址获取所述多张图片;
解析单元 303, 用于解析来自所述代理服务器的所述多张图片合并后的图 片数据流得到所述多张图片。
本发明实施例中的图片下载装置中各单元实现各自功能的过程,请参见前 述图 1所述实施例中的具体描述, 此处不再赘述。
本发明实施例中,合并单元 301将多张图片中每张图片的 URL地址合并, 发送单元 302向代理服务器发送下载请求,所述下载请求中携带合并后的 URL 地址, 使得所述代理服务器根据所述合并后的 URL地址获取所述多张图片。 解析单元 303 解析来自所述代理服务器的所述多张图片合并后的图片数据流 得到所述多张图片, 由此实现一次性下载多张图片, 降低网络耗时, 提高下载 图片的速度。 本发明第四实施例提供另一种图片下载装置, 参阅图 4, 与第三实施例相 比, 本实施例所提供的图片下载装置还包括:
接收单元 304, 用于接收代理服务器发送的多张图片合并后的图片数据 流。
解析单元 304可解析接收单元 303所接收到的所述多张图片合并后的图片 数据流, 得到所述多张图片。
本发明第五实施例提供另一种图片下载装置, 请参阅图 5, 本实施例中的 图片下载装置包括:
合并单元 401 , 用于合并多张图片中每张图片的 URL地址;
发送单元 402, 用于向代理服务器发送下载请求, 所述下载请求中携带所 述合并单元 401合并后的 URL地址, 使得所述代理服务器根据所述合并后的 URL地址获取所述多张图片;
接收单元 403, 用于接收所述代理服务器发送的所述多张图片合并后的图 片数据流;
解析单元 404, 用于解析所述接收单元 403接收的所述合并后的图片数据 流得到所述多张图片。
进一步地,
所述接收单元 403 所接收到的所述代理服务器发送的图片数据流根据预 先协商规则进行合并;
所述解析单元 404, 还可根据所述预先协商规则, 解析所述合并后的图片 数据流得到所述多张图片。
需要说明的是, 本发明实施例中的图片下载装置还可以进一步包括: 获取单元 405, 用于获取要下载的所述多张图片中每张图片的 URL地址。 本发明实施例中的图片下载装置中各单元实现各自功能的过程,请参见前 述图 1及图 2所述实施例中的具体描述, 此处不再赘述。
本发明实施例中, 获取单元 405获取多张图片中每张图片的 URL地址, 合并单元 401将获取的 URL地址进行合并, 发送单元 402向代理服务器发送 下载请求, 所述下载请求中携带合并单元 401合并后的 URL地址, 使得所述 代理服务器合并后的 URL地址通过多线程方式并行获取所述多张图片。 接收 后的图片数据流,解析单元 404根据所述预先协商规则解析所述合并后的图片 数据流得到所述多张图片, 由此实现一次性下载多张图片, 降低网络耗时, 提 高下载图片的速度。 此外, 本发明还提供了一种存储有机器可读取的指令代码的程序产品。上 述指令代码由机器读取并执行时,可执行上述本发明实施例的硬件性能评测方 法。 相应地, 用于承载这种程序产品的例如磁盘、 光盘、 磁光盘、 半导体存储 器等的各种存储介质也包括在本发明的公开中。
上述这些机器可读存储介质包括但不限于: 各种存储器和存储单元, 半导 体设备, 磁盘单元例如光、 磁和磁光盘, 以及其他适于存储信息的介质等。 以上对本发明所提供的一种图片下载方法及装置进行了详细介绍,对于本 领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均 会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种图片下载方法, 其特征在于, 包括:
合并多张图片中每张图片的统一资源定位符(URL )地址;
向代理服务器发送下载请求, 所述下载请求中携带合并后的 URL地址, 多张图片; 以及 解析来自所述代理服务器的所述多张图片合并后的图片数据流得到所述 张图片。
2、 根据权利要求 1所述的方法, 其特征在于, 所述向代理服务器发送下 载请求, 所述下载请求中携带合并后的 URL地址, 使得所述代理服务器根据 所述合并后的 URL地址获取所述多张图片包括:
向代理服务器发送下载请求, 所述下载请求中携带合并后的 URL地址, 使得所述代理服务器根据所述合并后的 URL地址通过多线程并行的方式获取 所述多张图片。
3、 根据权利要求 1和 2中任意一项的方法, 其特征在于, 所述合并多张 图片中每张图片的 URL地址之前包括:
获取所述多张图片中每张图片的 URL地址。
4、 一种图片下载装置, 其特征在于, 包括:
合并单元, 用于合并多张图片中每张图片的 URL地址;
发送单元, 用于向代理服务器发送下载请求, 所述下载请求中携带所述合 并单元合并后的 URL地址,使得所述代理服务器根据所述合并后的 URL地址 获取所述多张图片; 以及
解析单元,用于解析来自所述代理服务器的所述多张图片合并后的图片数
5、 根据权利要求 6所述的装置, 其特征在于, 还包括:
接收单元,用于接收所述代理服务器发送的所述多张图片合并后的图片数 据流。
6、 根据权利要求 4所述的装置, 其特征在于, 还包括:
获取单元, 用于获取所述多张图片中每张图片的 URL地址。
7、一种非瞬时性的计算机可读存储介质,其上存储有计算机可执行指令, 当计算机中运行这些可执行指令时, 执行如下步骤:
合并多张图片中每张图片的 URL地址;
向代理服务器发送下载请求, 所述下载请求中携带合并后的 URL地址, 解析来自所述代理服务器的所述多张图片合并后的图片数据流得到所述 多张图片。
PCT/CN2013/082924 2012-12-27 2013-09-04 图片下载方法及装置 WO2014101461A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/750,142 US20150296014A1 (en) 2012-12-27 2015-06-25 Picture download method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210578999.9A CN103905496A (zh) 2012-12-27 2012-12-27 一种图片下载方法及装置
CN201210578999.9 2012-12-27

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/750,142 Continuation US20150296014A1 (en) 2012-12-27 2015-06-25 Picture download method and apparatus

Publications (1)

Publication Number Publication Date
WO2014101461A1 true WO2014101461A1 (zh) 2014-07-03

Family

ID=50996651

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082924 WO2014101461A1 (zh) 2012-12-27 2013-09-04 图片下载方法及装置

Country Status (3)

Country Link
US (1) US20150296014A1 (zh)
CN (1) CN103905496A (zh)
WO (1) WO2014101461A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103854006A (zh) * 2012-12-06 2014-06-11 腾讯科技(深圳)有限公司 图片识别方法及装置
CN104516971B (zh) * 2014-12-25 2018-07-13 深圳联友科技有限公司 一种合并css样式文件中背景图片的方法
CN110069728B (zh) * 2017-10-30 2022-08-12 北京京东尚科信息技术有限公司 用于展示图片的方法及装置
CN109947378A (zh) * 2017-12-20 2019-06-28 鸿合科技股份有限公司 展示图片的方法和装置
CN112202865A (zh) * 2020-09-25 2021-01-08 北京微步在线科技有限公司 一种图片下载方法及装置
CN112187949B (zh) * 2020-10-09 2021-08-20 珠海格力电器股份有限公司 图片的批量下载方法和装置、存储介质、电子装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346782A (zh) * 2011-10-25 2012-02-08 中兴通讯股份有限公司 在用户终端浏览器上按需显示图片的方法及装置
CN102737067A (zh) * 2011-04-15 2012-10-17 阿里巴巴集团控股有限公司 输出网页的方法和系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060242163A1 (en) * 2005-04-22 2006-10-26 Microsoft Corporation Local thumbnail cache
JP4542591B2 (ja) * 2008-03-05 2010-09-15 富士フイルム株式会社 画像処理システム、画像保管装置、および、画像処理装置、並びに、画像処理方法、プログラム
KR101467875B1 (ko) * 2008-09-04 2014-12-02 삼성전자주식회사 프레임 레이트의 가변화 설정이 가능한 디지털 카메라 및 그 제어방법
US10296653B2 (en) * 2010-09-07 2019-05-21 F5 Networks, Inc. Systems and methods for accelerating web page loading
US8850075B2 (en) * 2011-07-06 2014-09-30 Microsoft Corporation Predictive, multi-layer caching architectures
US9183319B2 (en) * 2012-10-17 2015-11-10 Cloudflare, Inc. Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
US9405734B2 (en) * 2012-12-27 2016-08-02 Reflektion, Inc. Image manipulation for web content
US9098477B2 (en) * 2013-05-15 2015-08-04 Cloudflare, Inc. Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
EP2830275A1 (en) * 2013-07-23 2015-01-28 Thomson Licensing Method of identification of multimedia flows and corresponding apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737067A (zh) * 2011-04-15 2012-10-17 阿里巴巴集团控股有限公司 输出网页的方法和系统
CN102346782A (zh) * 2011-10-25 2012-02-08 中兴通讯股份有限公司 在用户终端浏览器上按需显示图片的方法及装置

Also Published As

Publication number Publication date
US20150296014A1 (en) 2015-10-15
CN103905496A (zh) 2014-07-02

Similar Documents

Publication Publication Date Title
US11356748B2 (en) Method, apparatus and system for slicing live streaming
US20190222619A1 (en) System and Method for Streaming Content from Multiple Servers
WO2014101461A1 (zh) 图片下载方法及装置
WO2017190641A1 (zh) 拦截爬虫的方法、装置、服务器终端以及计算机可读介质
KR102308269B1 (ko) 프록시 기반 네트워크 통신들에서의 제어 데이터의 전송
WO2020199751A1 (zh) 用于加载页面图片的方法、装置和电子设备
EP2985705A2 (en) Webpage access method and apparatus, and router
US10645145B2 (en) Method and apparatus for accelerating data transmission in a network communication system
WO2015106692A1 (en) Webpage pushing method, client, server, and system
US9639629B1 (en) Accelerating the downloading of content to an application
US20170163706A1 (en) Method, electronic device and system for controlling pull stream
WO2016127799A1 (zh) 一种视频广告过滤的方法、装置和系统
WO2017174026A1 (zh) 一种客户端连接方法及系统
CN109992406B (zh) 图片请求方法、响应图片请求的方法及客户端
CN104601534A (zh) Cdn系统图像处理的方法及系统
WO2012106647A2 (en) System and method for interaction between e-mail/web browser and communication devices
WO2017097210A1 (zh) 软件升级方法、装置及系统
WO2014169736A1 (zh) 一种终端设备及web网页多屏共享的方法
WO2014179950A1 (zh) 一种文件上传方法、客户端和服务端
CN112243013A (zh) 一种实现跨域资源缓存的方法、系统、服务器和存储介质
CN112965673A (zh) 内容的打印方法、装置、设备及存储介质
US20190370293A1 (en) Method and apparatus for processing information
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN105812839B (zh) 视频流数据获取、页面数据传输方法、系统及网络服务器
CN107809681B (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: 13869615

Country of ref document: EP

Kind code of ref document: A1

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 (EPO FORM 1205A DATED 10-11-2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13869615

Country of ref document: EP

Kind code of ref document: A1