[go: up one dir, main page]

CN106899630B - Thumbnail display method and device for pictures in network disk - Google Patents

Thumbnail display method and device for pictures in network disk Download PDF

Info

Publication number
CN106899630B
CN106899630B CN201510960339.0A CN201510960339A CN106899630B CN 106899630 B CN106899630 B CN 106899630B CN 201510960339 A CN201510960339 A CN 201510960339A CN 106899630 B CN106899630 B CN 106899630B
Authority
CN
China
Prior art keywords
picture
local
client
network disk
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510960339.0A
Other languages
Chinese (zh)
Other versions
CN106899630A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510960339.0A priority Critical patent/CN106899630B/en
Publication of CN106899630A publication Critical patent/CN106899630A/en
Application granted granted Critical
Publication of CN106899630B publication Critical patent/CN106899630B/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
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种网盘中图片的缩略图显示方法及装置,所述方法应用于安装有网盘应用程序的客户端,所述方法包括:向网盘应用程序发送加载图片的缩略图的请求;图片为客户端通过网盘应用程序备份至服务器的图片,请求包括对应的图片的标识符;判断预置的图片记录表里是否存在对应的图片的标识符;若存在,则从图片记录表中提取出与对应的图片的标识符对应的本地路径;在客户端按照本地路径获取本地图片,并在网盘应用程序中显示本地图片的缩略图。本发明在客户端中存在与服务器中相同的本地图片时,避免从服务器下载图片,通过获取本地图片的本地路径得到本地图片,并显示本地图片的缩略图,节省了从服务器下载图片或者图片的缩略图的时间。

Figure 201510960339

The present invention provides a method and device for displaying thumbnails of pictures in a network disk. The method is applied to a client installed with a network disk application. The method includes: sending a thumbnail image of a loaded picture to the network disk application. Request; the picture is the picture backed up by the client to the server through the network disk application, and the request includes the identifier of the corresponding picture; judge whether the identifier of the corresponding picture exists in the preset picture record table; The local path corresponding to the identifier of the corresponding image is extracted from the table; the client obtains the local image according to the local path, and displays the thumbnail of the local image in the network disk application. When the same local picture exists in the client as the server, the present invention avoids downloading the picture from the server, obtains the local picture by obtaining the local path of the local picture, and displays the thumbnail of the local picture, saving the time of downloading pictures or pictures from the server. Thumbnail time.

Figure 201510960339

Description

网盘中图片的缩略图显示方法与装置Thumbnail display method and device for pictures in network disk

技术领域technical field

本发明涉及互联网技术领域,特别是涉及一种网盘中图片的缩略图显示方法与装置。The invention relates to the field of Internet technologies, and in particular, to a method and device for displaying thumbnail images of pictures in a network disk.

背景技术Background technique

随着互联网络和计算机的普及,人们在生活和工作中一般都会拥有多个计算设备,例如,在工作单位至少会使用一台计算机,而在家中还会使用另一台计算机,而在外出或者娱乐时会使用各种移动计算设备如平板或者智能手机等。为了统一管理这些计算设备中的文件,出现了网络存储系统。一个典型的网络存储系统可以包括存储服务器和多个计算终端。每个计算终端经由网络与存储服务器进行通信。计算终端可以把本地文件传输到服务器上来集中存储。当用户使用其他计算终端时,可以通过这些计算终端来浏览服务器上存储的文件,并且可以下载到计算终端本地来使用。当网络速度越来越快时,这种网络存储方式越来越受到用户的欢迎。With the popularization of the Internet and computers, people generally have multiple computing devices in their life and work. For example, at least one computer is used at work, another computer is used at home, and one computer is used when going out or at home. Various mobile computing devices such as tablets or smartphones are used for entertainment. In order to uniformly manage files in these computing devices, network storage systems have emerged. A typical network storage system may include a storage server and multiple computing terminals. Each computing terminal communicates with the storage server via the network. The computing terminal can transfer local files to the server for centralized storage. When the user uses other computing terminals, the files stored on the server can be browsed through these computing terminals, and can be downloaded to the computing terminal for local use. When the network speed is getting faster and faster, this network storage method is more and more popular with users.

网盘是现有的比较常见的一种网络存储系统。网盘,又称网络U盘、网络硬盘,是由互联网公司推出的在线存储服务,向用户提供文件的存储、访问、备份、共享等文件管理等功能。用户可以把网盘看成一个放在网络上的硬盘或U盘,不管用户是在家中、单位或其它任何地方,只要可以连接到互联网,均可以管理、编辑网盘里的文件。不需要随身携带文件,更不怕文件丢失。用户可以在本地终端上安装网盘应用程序,利用网盘应用程序与网盘服务器相连接。A network disk is a relatively common network storage system in existence. Network disk, also known as network U disk, network hard disk, is an online storage service launched by Internet companies, providing users with file storage, access, backup, sharing and other file management functions. Users can regard the network disk as a hard disk or U disk placed on the network. No matter whether the user is at home, work or any other place, as long as they can connect to the Internet, they can manage and edit the files in the network disk. There is no need to carry documents with you, and you are not afraid of losing documents. The user can install the network disk application program on the local terminal, and use the network disk application program to connect with the network disk server.

若用户要观看网盘服务器中图片的缩略图,需要从网盘服务器中将目标图片或者目标图片的缩略图下载至本地终端的网盘客户端,若目标图片或者其缩略图占用的存储空间较大,目标图片的数量较多,或者从网盘服务器下载目标图片或其缩略图至本地终端的网盘客户端的网速较慢,需要较长的时间才能将目标图片或其缩略图从网盘下载至本地终端的网盘客户端,浪费时间。If the user wants to view the thumbnail of the picture in the network disk server, he needs to download the target picture or the thumbnail of the target picture from the network disk server to the network disk client of the local terminal. If the storage space occupied by the target picture or its thumbnail is relatively large Large, the number of target pictures is large, or the network speed of the network disk client that downloads the target picture or its thumbnail from the network disk server to the local terminal is slow, and it takes a long time to download the target picture or its thumbnail from the network disk. Downloading to the network disk client of the local terminal is a waste of time.

发明内容SUMMARY OF THE INVENTION

鉴于上述现有的网盘中图片的缩略图显示方法受限于目标图片或者其缩略图占用的存储空间过大以及网速过慢,下载目标图片或者其缩略图浪费时间的问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的网盘中图片的缩略图显示方法与装置。In view of the fact that the above-mentioned method for displaying thumbnails of pictures in the existing network disk is limited by the problem that the target picture or its thumbnail takes up too much storage space and the network speed is too slow, and the download of the target picture or its thumbnail is a waste of time, this paper proposes The invention is in order to provide a thumbnail display method and device for pictures in a network disk that overcomes the above problems or at least partially solves the above problems.

依据本发明的一个方面,提供了一种网盘中图片的缩略图显示方法,应用于安装有网盘应用程序的客户端,所述方法包括:According to one aspect of the present invention, a method for displaying thumbnails of pictures in a network disk is provided, which is applied to a client installed with a network disk application, and the method includes:

向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符;Send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes the identifier of the corresponding picture;

判断预置的图片记录表里是否存在所述对应的图片的标识符;Determine whether the identifier of the corresponding picture exists in the preset picture record table;

若存在,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径;If there is, extract the local path corresponding to the identifier of the corresponding picture from the picture record table;

在所述客户端按照所述本地路径获取本地图片,并在所述网盘应用程序中显示所述本地图片的缩略图。The client obtains a local picture according to the local path, and displays a thumbnail of the local picture in the network disk application.

可选地,所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;Optionally, identifiers and local paths of related pictures are stored in the picture record table, and the picture record table is periodically updated;

其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。The relevant pictures include pictures backed up by the client to the server through the network disk application, and pictures downloaded by the client from the server through the network disk application.

可选地,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:Optionally, after the client obtains the local picture according to the local path, the method further includes:

校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;Check whether the identifier of the obtained local picture is the same as the identifier in the request;

若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If the same, the operation of displaying the thumbnail of the local picture in the network disk application is performed.

可选地,所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一。Optionally, the request further includes at least one of the name, type, backup time and backup party information of the corresponding picture.

可选地,在所述判断预置的图片记录表里是否存在所述对应的图片的标识符之前,所述方法还包括:Optionally, before judging whether the identifier of the corresponding picture exists in the preset picture record table, the method further includes:

判断所述备份方信息是否与所述客户端的识别信息相同;Determine whether the backup party information is the same as the identification information of the client;

若相同,则执行所述判断预置的图片记录表里是否存在所述对应的图片的标识符的操作。If the same, the operation of judging whether the identifier of the corresponding picture exists in the preset picture record table is performed.

可选地,所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。Optionally, the identification information of the client includes a client ID and/or a username of the network disk application.

可选地,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:Optionally, after the client obtains the local picture according to the local path, the method further includes:

判断所述备份时间是否在所述本地图片的生成时间之后;Determine whether the backup time is after the generation time of the local picture;

若是,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If so, the operation of displaying the thumbnail of the local picture in the network disk application is performed.

可选地,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:Optionally, after the client obtains the local picture according to the local path, the method further includes:

判断所述类型是否与所述本地图片的类型相同;Determine whether the type is the same as the type of the local picture;

若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If the same, the operation of displaying the thumbnail of the local picture in the network disk application is performed.

可选地,所述标识符为MD5、SHA1和CRC32之一。Optionally, the identifier is one of MD5, SHA1 and CRC32.

根据本发明的另一方面,提供了一种网盘中图片的缩略图显示装置,应用于安装有网盘应用程序的客户端,所述装置包括:According to another aspect of the present invention, a device for displaying thumbnails of pictures in a network disk is provided, which is applied to a client installed with a network disk application, and the device includes:

请求发送模块,用于向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符;A request sending module, configured to send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes a corresponding picture identifier;

标识符判断模块,用于判断预置的图片记录表里是否存在所述对应的图片的标识符;an identifier judgment module for judging whether the identifier of the corresponding picture exists in the preset picture record table;

本地路径提取模块,用于若预置的图片记录表里存在所述对应的图片的标识符,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径;The local path extraction module is used to extract the local path corresponding to the identifier of the corresponding picture from the picture recording table if the identifier of the corresponding picture exists in the preset picture recording table;

本地图片获取模块,用于在所述客户端按照所述本地路径获取本地图片;a local picture acquisition module, configured to acquire a local picture on the client side according to the local path;

缩略图显示模块,用于在所述网盘应用程序中显示所述本地图片的缩略图。A thumbnail display module, configured to display the thumbnail of the local picture in the network disk application.

可选地,所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;Optionally, identifiers and local paths of related pictures are stored in the picture record table, and the picture record table is periodically updated;

其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。The relevant pictures include pictures backed up by the client to the server through the network disk application, and pictures downloaded by the client from the server through the network disk application.

可选地,所述装置还包括:Optionally, the device further includes:

标识符校验模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;an identifier verification module, configured to verify whether the identifier of the acquired local image is the same as the identifier in the request after the local image acquisition module acquires the local image on the client side according to the local path;

若相同,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If the same, the thumbnail display module displays the thumbnail of the local picture in the network disk application.

可选地,所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一。Optionally, the request further includes at least one of the name, type, backup time and backup party information of the corresponding picture.

可选地,所述装置还包括:Optionally, the device further includes:

备份方信息判断模块,用于在所述标识符判断模块判断预置的图片记录表里是否存在所述对应的图片的标识符之前,判断所述备份方信息是否与所述客户端的识别信息相同;The backup party information judgment module is used to judge whether the backup party information is the same as the identification information of the client before the identifier judgment module judges whether the identifier of the corresponding picture exists in the preset picture record table ;

若相同,则所述标识符判断模块判断预置的图片记录表里是否存在所述对应的图片的标识符。If they are the same, the identifier judging module judges whether the identifier of the corresponding picture exists in the preset picture record table.

可选地,所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。Optionally, the identification information of the client includes a client ID and/or a username of the network disk application.

可选地,所述装置还包括:Optionally, the device further includes:

备份时间判断模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,判断所述备份时间是否在所述本地图片的生成时间之后;A backup time judgment module, configured to judge whether the backup time is after the generation time of the local picture after the local picture obtaining module obtains the local picture on the client side according to the local path;

若是,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If so, the thumbnail display module displays the thumbnail of the local picture in the network disk application.

可选地,所述装置还包括:Optionally, the device further includes:

类型判断模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,判断所述类型是否与所述本地图片的类型相同;a type judgment module, configured to judge whether the type is the same as the type of the local image after the local image acquisition module acquires the local image on the client side according to the local path;

若相同,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If the same, the thumbnail display module displays the thumbnail of the local picture in the network disk application.

可选地,所述标识符为MD5、SHA1和CRC32之一。Optionally, the identifier is one of MD5, SHA1 and CRC32.

现有的网盘中图片的缩略图显示方法中,下载网盘服务器中的图片或其缩略图受限于目标图片或其缩略图占用的存储空间过大、网速过慢等条件,下载过程缓慢,浪费时间。本发明提供的网盘中图片的缩略图显示方案中,客户端中安装有网盘应用程序,通过网盘应用程序可以与服务器连接。向网盘应用程序发送加载图片的缩略图的请求,该图片为客户端通过网盘应用程序备份至服务器的图片。判断预置的图片记录表中是否存在请求中的图片的标识符,若存在,则从图片记录表中提取出与图片的标识符对应的本地路径,在客户端按照本地路径获取本地图片,并在网盘应用程序中显示本地图片的缩略图。即客户端中存在与服务器中相同的本地图片时,可以避免从服务器下载图片,而是通过客户端中预置的图片记录表获取本地图片在客户端中的本地路径,通过本地路径得到本地图片,并在网盘应用程序中显示本地图片的缩略图,节省了从服务器下载图片或者图片的缩略图的时间。In the existing method for displaying thumbnails of pictures in a network disk, downloading the pictures or their thumbnails in the network disk server is limited by the conditions such as the storage space occupied by the target pictures or their thumbnails being too large, and the network speed being too slow. Slow and waste of time. In the thumbnail display scheme of pictures in a network disk provided by the present invention, a network disk application program is installed in the client, and can be connected to the server through the network disk application program. Send a request to load the thumbnail of the picture to the network disk application, and the picture is the picture backed up by the client to the server through the network disk application. Determine whether the identifier of the picture in the request exists in the preset picture record table, if so, extract the local path corresponding to the identifier of the picture from the picture record table, obtain the local picture on the client side according to the local path, and Display thumbnails of local images in the network disk application. That is, when there is the same local image in the client as the server, you can avoid downloading the image from the server, but obtain the local path of the local image in the client through the preset image record table in the client, and obtain the local image through the local path. , and display the thumbnail of the local picture in the network disk application, saving the time of downloading the picture or the thumbnail of the picture from the server.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1是根据本发明实施例一的一种网盘中图片的缩略图显示方法的步骤流程图;1 is a flowchart of steps of a method for displaying thumbnails of pictures in a network disk according to Embodiment 1 of the present invention;

图2是根据本发明实施例二的一种网盘中图片的缩略图显示装置的结构示意图。FIG. 2 is a schematic structural diagram of an apparatus for displaying thumbnails of pictures in a network disk according to Embodiment 2 of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

实施例一Example 1

详细介绍本发明实施例一提供的一种网盘中图片的缩略图显示方法,所述方法应用于安装有网盘应用程序的客户端,所述客户端可以为PC、智能手机或者平板电脑等用户终端设备。A method for displaying thumbnails of pictures in a network disk provided in Embodiment 1 of the present invention is introduced in detail. The method is applied to a client installed with a network disk application, and the client can be a PC, a smart phone, or a tablet computer, etc. User terminal equipment.

参照图1,示出了本发明实施例一的一种网盘中图片的缩略图显示方法的步骤流程图。Referring to FIG. 1 , a flowchart of steps of a method for displaying thumbnails of pictures in a network disk according to Embodiment 1 of the present invention is shown.

步骤100,向所述网盘应用程序发送加载图片的缩略图的请求。Step 100: Send a request for loading a thumbnail of a picture to the network disk application.

所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符。所述标识符至少为消息摘要算法第五版(Message DigestAlgorithm,MD5)、安全哈希算法(Secure Hash Algorithm,SHA1)和32位循环冗余校验(Cyclic Redundancy Check 32,CRC32)之一。所述请求还可以至少包括对应的图片的名称、类型、备份时间和备份方信息等。The picture is a picture backed up by the client to the server through the network disk application, and the request includes an identifier of the corresponding picture. The identifier is at least one of Message Digest Algorithm (MD5), Secure Hash Algorithm (SHA1) and 32-bit Cyclic Redundancy Check (CRC32). The request may also include at least the name, type, backup time, backup party information, and the like of the corresponding picture.

在所述步骤100之后,步骤102之前,还可以判断所述备份方信息是否与所述客户端的识别信息相同,目的是判断图片是否为客户端上传至服务器的图片。若相同,则执行步骤102。若图片从客户端上传至服务器,则可以将客户端的识别信息作为图片的备份方信息。其中,所述客户端的识别信息可以包括客户端ID和/或所述网盘应用程序的用户名等等。After the step 100 and before the step 102, it can also be judged whether the backup party information is the same as the identification information of the client, in order to judge whether the picture is the picture uploaded by the client to the server. If the same, go to step 102. If the picture is uploaded from the client to the server, the identification information of the client can be used as the backup information of the picture. Wherein, the identification information of the client may include a client ID and/or a username of the network disk application, and the like.

步骤102,判断预置的图片记录表里是否存在所述对应的图片的标识符,若存在,则执行步骤104;若不存在,则流程结束。Step 102, it is judged whether the identifier of the corresponding picture exists in the preset picture record table, and if so, step 104 is executed; if not, the process ends.

所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。即图片记录表中可以记录客户端上传至服务器的图片的标识符及本地路径,还可以记录客户端从服务器下载的图片的标识符和本地路径。The picture record table stores identifiers and local paths of related pictures, and the picture record table is updated periodically; wherein, the related pictures include the client backing up to the server through the network disk application program pictures, and pictures downloaded by the client from the server through the network disk application. That is, the picture record table can record the identifier and local path of the picture uploaded by the client to the server, and can also record the identifier and local path of the picture downloaded by the client from the server.

步骤104,从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径。Step 104: Extract the local path corresponding to the identifier of the corresponding picture from the picture record table.

图片记录表中的标识符与本地路径存在一一对应关系。确定图片记录表中的一个标识符,即相应确定一个与该标识符对应的本地路径。There is a one-to-one correspondence between the identifiers in the picture record table and the local paths. An identifier in the picture record table is determined, that is, a local path corresponding to the identifier is determined accordingly.

步骤106,在所述客户端按照所述本地路径获取本地图片,并在所述网盘应用程序中显示所述本地图片的缩略图。In step 106, the client obtains a local picture according to the local path, and displays a thumbnail of the local picture in the network disk application.

为了增加从客户端本地获取本地图片的准确性,在所述客户端按照所述本地路径获取本地图片之后,还可以执行如下3个步骤中的任意步骤或者任意步骤的组合:In order to increase the accuracy of locally obtained local pictures from the client, after the client obtains the local pictures according to the local path, any one of the following three steps or a combination of any of the steps may be performed:

步骤1、校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。即校验从客户端本地获取到的本地图片的标识符是否与请求中的标识符相同,防止客户端本地的图片被修改,而将修改后的图片作为目标图片。Step 1. Check whether the obtained identifier of the local image is the same as the identifier in the request; if it is the same, perform the operation of displaying the thumbnail of the local image in the network disk application. That is, it is checked whether the identifier of the local image obtained locally from the client is the same as the identifier in the request, so as to prevent the local image of the client from being modified, and use the modified image as the target image.

步骤2、判断所述备份时间是否在所述本地图片的生成时间之后;若是,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。请求中的备份时间可以为客户端将本地图片上传至服务器完毕的系统时间。所述系统时间可以为客户端与服务器共同的系统时间。若备份时间在客户端本地图片的生成时间之前,或者备份时间与客户端本地图片的生成时间相同,则确定客户端本地图片不是目标图片。Step 2: Determine whether the backup time is after the generation time of the local picture; if so, perform the operation of displaying the thumbnail of the local picture in the network disk application. The backup time in the request can be the system time when the client finishes uploading the local image to the server. The system time may be the common system time of the client and the server. If the backup time is before the generation time of the client's local image, or the backup time is the same as the generation time of the client's local image, it is determined that the client's local image is not the target image.

步骤3、判断所述类型是否与所述本地图片的类型相同;若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。常见的图片类型包括jpg、png等等。若请求中的图片类型与客户端本地图片的类型不同,则确定客户端本地图片不是目标图片。Step 3: Determine whether the type is the same as the type of the local picture; if it is the same, execute the operation of displaying the thumbnail of the local picture in the network disk application. Common image types include jpg, png, etc. If the type of the image in the request is different from the type of the client's local image, it is determined that the client's local image is not the target image.

若请求中还包括图片的容量,则还可以判断请求中的容量与客户端本地图片的容量是否相同,若容量相同,则可以进一步确定客户端本地图片为目标图片。If the request also includes the capacity of the image, it can also be judged whether the capacity in the request is the same as the capacity of the client's local image, and if the capacity is the same, it can be further determined that the client's local image is the target image.

综上所述,本发明实施例中的技术方案,客户端中安装有网盘应用程序,通过网盘应用程序可以与服务器连接。向网盘应用程序发送加载图片的缩略图的请求,该图片为客户端通过网盘应用程序备份至服务器的图片。判断预置的图片记录表中是否存在请求中的图片的标识符,若存在,则从图片记录表中提取出与图片的标识符对应的本地路径,在客户端按照本地路径获取本地图片,并在网盘应用程序中显示本地图片的缩略图。即客户端中存在与服务器中相同的本地图片时,可以避免从服务器下载图片,而是通过客户端中预置的图片记录表获取本地图片在客户端中的本地路径,通过本地路径得到本地图片,并在网盘应用程序中显示本地图片的缩略图,节省了从服务器下载图片或者图片的缩略图的时间。To sum up, in the technical solutions in the embodiments of the present invention, a network disk application program is installed in the client, and the network disk application program can be connected to the server. Send a request to load the thumbnail of the picture to the network disk application, and the picture is the picture backed up by the client to the server through the network disk application. Determine whether the identifier of the picture in the request exists in the preset picture record table, if so, extract the local path corresponding to the identifier of the picture from the picture record table, obtain the local picture on the client side according to the local path, and Display thumbnails of local images in the network disk application. That is, when there is the same local image in the client as the server, you can avoid downloading the image from the server, but obtain the local path of the local image in the client through the preset image record table in the client, and obtain the local image through the local path. , and display the thumbnail of the local picture in the network disk application, saving the time of downloading the picture or the thumbnail of the picture from the server.

实施例二Embodiment 2

详细介绍本发明实施例二提供的一种网盘中图片的缩略图显示装置,所述装置应用于安装有网盘应用程序的客户端,所述客户端可以为PC、智能手机或者平板电脑等用户终端设备。Introduce in detail a thumbnail display device for pictures in a network disk provided by the second embodiment of the present invention, the device is applied to a client installed with a network disk application, and the client can be a PC, a smart phone, or a tablet computer, etc. User terminal equipment.

参照图2,示出了本发明实施例二的一种网盘中图片的缩略图显示装置的结构示意图。Referring to FIG. 2 , a schematic structural diagram of an apparatus for displaying thumbnails of pictures in a network disk according to Embodiment 2 of the present invention is shown.

所述装置可以包括:请求发送模块20、标识符判断模块22、本地路径提取模块24、本地图片获取模块26和缩略图显示模块28。The apparatus may include: a request sending module 20 , an identifier judgment module 22 , a local path extraction module 24 , a local picture acquisition module 26 and a thumbnail display module 28 .

下面分别详细介绍各模块的功能以及各模块之间的关系。The function of each module and the relationship between each module are described in detail below.

请求发送模块20,用于向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符。A request sending module 20 is configured to send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes the corresponding The identifier of the image.

标识符判断模块22,用于判断预置的图片记录表里是否存在所述对应的图片的标识符。所述标识符为MD5、SHA1和CRC32之一。所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。The identifier judging module 22 is used for judging whether the identifier of the corresponding picture exists in the preset picture record table. The identifier is one of MD5, SHA1 and CRC32. The picture record table stores identifiers and local paths of related pictures, and the picture record table is updated periodically; wherein, the related pictures include the client backing up to the server through the network disk application program pictures, and pictures downloaded by the client from the server through the network disk application.

本地路径提取模块24,用于若预置的图片记录表里存在所述对应的图片的标识符,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径。The local path extraction module 24 is configured to extract a local path corresponding to the identifier of the corresponding picture from the picture record table if the identifier of the corresponding picture exists in the preset picture record table.

所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。The picture record table stores identifiers and local paths of related pictures, and the picture record table is updated periodically; wherein, the related pictures include the client backing up to the server through the network disk application program pictures, and pictures downloaded by the client from the server through the network disk application.

本地图片获取模块26,用于在所述客户端按照所述本地路径获取本地图片。The local picture obtaining module 26 is configured to obtain a local picture on the client side according to the local path.

缩略图显示模块28,用于在所述网盘应用程序中显示所述本地图片的缩略图。The thumbnail display module 28 is configured to display the thumbnail of the local picture in the network disk application.

所述装置还可以包括:标识符校验模块,用于在所述本地图片获取模块26在客户端按照所述本地路径获取本地图片之后,校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;若相同,则所述缩略图显示模块28在所述网盘应用程序中显示所述本地图片的缩略图。The device may further include: an identifier verification module for verifying whether the identifier of the acquired local image is the same as the identifier of the acquired local image after the local image acquisition module 26 acquires the local image according to the local path on the client side. The identifiers in the request are the same; if they are the same, the thumbnail display module 28 displays the thumbnail of the local picture in the network disk application.

所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一。The request also includes at least one of the name, type, backup time and backup party information of the corresponding picture.

所述装置还可以包括:备份方信息判断模块,用于在所述标识符判断模块22判断预置的图片记录表里是否存在所述对应的图片的标识符之前,判断所述备份方信息是否与所述客户端的识别信息相同;若相同,则所述标识符判断模块22判断预置的图片记录表里是否存在所述对应的图片的标识符。The apparatus may further include: a backup party information judgment module, configured to judge whether the backup party information is before the identifier judgment module 22 judges whether the identifier of the corresponding picture exists in the preset picture record table. It is the same as the identification information of the client; if it is the same, the identifier judging module 22 judges whether the identifier of the corresponding picture exists in the preset picture record table.

所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。The identification information of the client includes the client ID and/or the username of the network disk application.

所述装置还可以包括:备份时间判断模块,用于在所述本地图片获取模块26在客户端按照所述本地路径获取本地图片之后,判断所述备份时间是否在所述本地图片的生成时间之后;若是,则所述缩略图显示模块28在所述网盘应用程序中显示所述本地图片的缩略图。The device may further include: a backup time judgment module, configured to judge whether the backup time is after the generation time of the local picture after the local picture obtaining module 26 obtains the local picture according to the local path on the client side. ; if so, the thumbnail display module 28 displays the thumbnail of the local picture in the network disk application.

所述装置还可以包括:类型判断模块,用于在所述本地图片获取模块26在客户端按照所述本地路径获取本地图片之后,判断所述类型是否与所述本地图片的类型相同;若相同,则所述缩略图显示模块28在所述网盘应用程序中显示所述本地图片的缩略图。The device may further include: a type judgment module for judging whether the type is the same as the type of the local picture after the local picture acquisition module 26 acquires the local picture according to the local path on the client side; if the same , the thumbnail display module 28 displays the thumbnail of the local picture in the network disk application.

综上所述,本发明实施例中的技术方案,客户端中安装有网盘应用程序,通过网盘应用程序可以与服务器连接。向网盘应用程序发送加载图片的缩略图的请求,该图片为客户端通过网盘应用程序备份至服务器的图片。判断预置的图片记录表中是否存在请求中的图片的标识符,若存在,则从图片记录表中提取出与图片的标识符对应的本地路径,在客户端按照本地路径获取本地图片,并在网盘应用程序中显示本地图片的缩略图。即客户端中存在与服务器中相同的本地图片时,可以避免从服务器下载图片,而是通过客户端中预置的图片记录表获取本地图片在客户端中的本地路径,通过本地路径得到本地图片,并在网盘应用程序中显示本地图片的缩略图,节省了从服务器下载图片或者图片的缩略图的时间。To sum up, in the technical solutions in the embodiments of the present invention, a network disk application program is installed in the client, and the network disk application program can be connected to the server. Send a request to load the thumbnail of the picture to the network disk application, and the picture is the picture backed up by the client to the server through the network disk application. Determine whether the identifier of the picture in the request exists in the preset picture record table, if so, extract the local path corresponding to the identifier of the picture from the picture record table, obtain the local picture on the client side according to the local path, and Display thumbnails of local images in the network disk application. That is, when there is the same local image in the client as the server, you can avoid downloading the image from the server, but obtain the local path of the local image in the client through the preset image record table in the client, and obtain the local image through the local path. , and display the thumbnail of the local picture in the network disk application, saving the time of downloading the picture or the thumbnail of the picture from the server.

在此提供的网盘中图片的缩略图显示方案不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造具有本发明方案的系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The thumbnail display scheme of pictures in the network disk provided here is not inherently related to any specific computer, virtual system or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct a system having the aspects of the present invention is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的网盘中图片的缩略图显示方案中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of some or all of the components in the thumbnail display scheme for pictures in the network disk according to the embodiments of the present invention. Full functionality. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本发明公开了A1、一种网盘中图片的缩略图显示方法,应用于安装有网盘应用程序的客户端,所述方法包括:The invention discloses A1, a method for displaying thumbnails of pictures in a network disk, which is applied to a client installed with a network disk application program. The method includes:

向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符;Send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes the identifier of the corresponding picture;

判断预置的图片记录表里是否存在所述对应的图片的标识符;Determine whether the identifier of the corresponding picture exists in the preset picture record table;

若存在,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径;If there is, extract the local path corresponding to the identifier of the corresponding picture from the picture record table;

在所述客户端按照所述本地路径获取本地图片,并在所述网盘应用程序中显示所述本地图片的缩略图。The client obtains a local picture according to the local path, and displays a thumbnail of the local picture in the network disk application.

A2、根据A1所述的方法,其中,所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;A2. The method according to A1, wherein identifiers and local paths of relevant pictures are stored in the picture record table, and the picture record table is updated periodically;

其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。The relevant pictures include pictures backed up by the client to the server through the network disk application, and pictures downloaded by the client from the server through the network disk application.

A3、根据A1所述的方法,其中,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:A3. The method according to A1, wherein after the client obtains the local picture according to the local path, the method further comprises:

校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;Check whether the identifier of the obtained local picture is the same as the identifier in the request;

若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If the same, the operation of displaying the thumbnail of the local picture in the network disk application is performed.

A4、根据A1所述的方法,其中,所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一。A4. The method according to A1, wherein the request further includes at least one of the name, type, backup time and backup party information of the corresponding picture.

A5、根据A4所述的方法,其中,在所述判断预置的图片记录表里是否存在所述对应的图片的标识符之前,所述方法还包括:A5. The method according to A4, wherein, before judging whether the identifier of the corresponding picture exists in the preset picture record table, the method further comprises:

判断所述备份方信息是否与所述客户端的识别信息相同;Determine whether the backup party information is the same as the identification information of the client;

若相同,则执行所述判断预置的图片记录表里是否存在所述对应的图片的标识符的操作。If the same, the operation of judging whether the identifier of the corresponding picture exists in the preset picture record table is performed.

A6、根据A5所述的方法,其中,所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。A6. The method according to A5, wherein the identification information of the client includes a client ID and/or a username of the network disk application.

A7、根据A4所述的方法,其中,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:A7. The method according to A4, wherein after the client obtains the local picture according to the local path, the method further includes:

判断所述备份时间是否在所述本地图片的生成时间之后;Determine whether the backup time is after the generation time of the local picture;

若是,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If so, the operation of displaying the thumbnail of the local picture in the network disk application is performed.

A8、根据A4所述的方法,其中,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:A8. The method according to A4, wherein after the client obtains the local picture according to the local path, the method further includes:

判断所述类型是否与所述本地图片的类型相同;Determine whether the type is the same as the type of the local picture;

若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If the same, the operation of displaying the thumbnail of the local picture in the network disk application is performed.

A9、根据A1所述的方法,其中,所述标识符为MD5、SHA1和CRC32之一。A9. The method of A1, wherein the identifier is one of MD5, SHA1 and CRC32.

本发明还公开了B10、一种网盘中图片的缩略图显示装置,应用于安装有网盘应用程序的客户端,所述装置包括:The invention also discloses B10, a thumbnail display device for pictures in a network disk, which is applied to a client installed with a network disk application program, and the device includes:

请求发送模块,用于向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符;A request sending module, configured to send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes a corresponding picture the identifier;

标识符判断模块,用于判断预置的图片记录表里是否存在所述对应的图片的标识符;an identifier judgment module for judging whether the identifier of the corresponding picture exists in the preset picture record table;

本地路径提取模块,用于若预置的图片记录表里存在所述对应的图片的标识符,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径;The local path extraction module is used to extract the local path corresponding to the identifier of the corresponding picture from the picture recording table if the identifier of the corresponding picture exists in the preset picture recording table;

本地图片获取模块,用于在所述客户端按照所述本地路径获取本地图片;a local picture acquisition module, configured to acquire a local picture on the client side according to the local path;

缩略图显示模块,用于在所述网盘应用程序中显示所述本地图片的缩略图。A thumbnail display module, configured to display the thumbnail of the local picture in the network disk application.

B11、根据B10所述的装置,其中,所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;B11. The device according to B10, wherein identifiers and local paths of related pictures are stored in the picture record table, and the picture record table is updated periodically;

其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片。The relevant pictures include pictures backed up by the client to the server through the network disk application, and pictures downloaded by the client from the server through the network disk application.

B12、根据B10所述的装置,其中,所述装置还包括:B12. The device according to B10, wherein the device further comprises:

标识符校验模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;an identifier verification module, configured to verify whether the identifier of the acquired local image is the same as the identifier in the request after the local image acquisition module acquires the local image on the client side according to the local path;

若相同,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If the same, the thumbnail display module displays the thumbnail of the local picture in the network disk application.

B13、根据B10所述的装置,其中,所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一。B13. The apparatus according to B10, wherein the request further includes at least one of the name, type, backup time and backup party information of the corresponding picture.

B14、根据B13所述的装置,其中,所述装置还包括:B14. The device according to B13, wherein the device further comprises:

备份方信息判断模块,用于在所述标识符判断模块判断预置的图片记录表里是否存在所述对应的图片的标识符之前,判断所述备份方信息是否与所述客户端的识别信息相同;The backup party information judgment module is used to judge whether the backup party information is the same as the identification information of the client before the identifier judgment module judges whether the identifier of the corresponding picture exists in the preset picture record table ;

若相同,则所述标识符判断模块判断预置的图片记录表里是否存在所述对应的图片的标识符。If they are the same, the identifier judging module judges whether the identifier of the corresponding picture exists in the preset picture record table.

B15、根据B14所述的装置,其中,所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。B15. The apparatus according to B14, wherein the identification information of the client includes a client ID and/or a username of the network disk application.

B16、根据B13所述的装置,其中,所述装置还包括:B16. The device according to B13, wherein the device further comprises:

备份时间判断模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,判断所述备份时间是否在所述本地图片的生成时间之后;A backup time judgment module, configured to judge whether the backup time is after the generation time of the local picture after the local picture obtaining module obtains the local picture on the client side according to the local path;

若是,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If so, the thumbnail display module displays the thumbnail of the local picture in the network disk application.

B17、根据B13所述的装置,其中,所述装置还包括:B17. The device according to B13, wherein the device further comprises:

类型判断模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,判断所述类型是否与所述本地图片的类型相同;a type judgment module, configured to judge whether the type is the same as the type of the local image after the local image acquisition module acquires the local image on the client side according to the local path;

若相同,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If the same, the thumbnail display module displays the thumbnail of the local picture in the network disk application.

B18、根据B10所述的装置,其中,所述标识符为MD5、SHA1和CRC32之一。B18. The apparatus of B10, wherein the identifier is one of MD5, SHA1 and CRC32.

Claims (12)

1.一种网盘中图片的缩略图显示方法,应用于安装有网盘应用程序的客户端,所述方法包括:1. A method for displaying thumbnails of pictures in a network disk, applied to a client installed with a network disk application, the method comprising: 向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符;Send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes the identifier of the corresponding picture; 判断预置的图片记录表里是否存在所述对应的图片的标识符;Determine whether the identifier of the corresponding picture exists in the preset picture record table; 若存在,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径;If there is, extract the local path corresponding to the identifier of the corresponding picture from the picture record table; 在所述客户端按照所述本地路径获取本地图片,并在所述网盘应用程序中显示所述本地图片的缩略图;Acquire a local picture on the client side according to the local path, and display a thumbnail of the local picture in the network disk application; 所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;Identifiers and local paths of relevant pictures are stored in the picture record table, and the picture record table is periodically updated; 其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片;Wherein, the relevant pictures include pictures backed up by the client to the server through the network disk application, and pictures downloaded by the client from the server through the network disk application; 所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一;The request also includes at least one of the name, type, backup time and backup party information of the corresponding picture; 在所述判断预置的图片记录表里是否存在所述对应的图片的标识符之前,所述方法还包括:Before judging whether the identifier of the corresponding picture exists in the preset picture record table, the method further includes: 判断所述备份方信息是否与所述客户端的识别信息相同;Determine whether the backup party information is the same as the identification information of the client; 若相同,则执行所述判断预置的图片记录表里是否存在所述对应的图片的标识符的操作。If the same, the operation of judging whether the identifier of the corresponding picture exists in the preset picture record table is performed. 2.根据权利要求1所述的方法,其中,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:2. The method according to claim 1, wherein after the client obtains the local picture according to the local path, the method further comprises: 校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;Check whether the identifier of the obtained local picture is the same as the identifier in the request; 若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If the same, the operation of displaying the thumbnail of the local picture in the network disk application is performed. 3.根据权利要求1所述的方法,其中,所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。3. The method according to claim 1, wherein the identification information of the client comprises a client ID and/or a username of the network disk application. 4.根据权利要求1所述的方法,其中,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:4. The method according to claim 1, wherein after the client obtains the local picture according to the local path, the method further comprises: 判断所述备份时间是否在所述本地图片的生成时间之后;Determine whether the backup time is after the generation time of the local picture; 若是,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If so, the operation of displaying the thumbnail of the local picture in the network disk application is performed. 5.根据权利要求1所述的方法,其中,在所述客户端按照所述本地路径获取本地图片之后,所述方法还包括:5. The method according to claim 1, wherein after the client obtains the local picture according to the local path, the method further comprises: 判断所述类型是否与所述本地图片的类型相同;Determine whether the type is the same as the type of the local picture; 若相同,则执行所述在所述网盘应用程序中显示所述本地图片的缩略图的操作。If the same, the operation of displaying the thumbnail of the local picture in the network disk application is performed. 6.根据权利要求1所述的方法,其中,所述标识符为MD5、SHA1和CRC32之一。6. The method of claim 1, wherein the identifier is one of MD5, SHA1 and CRC32. 7.一种网盘中图片的缩略图显示装置,应用于安装有网盘应用程序的客户端,所述装置包括:7. A device for displaying thumbnails of pictures in a network disk, applied to a client installed with a network disk application program, the device comprising: 请求发送模块,用于向所述网盘应用程序发送加载图片的缩略图的请求;所述图片为所述客户端通过所述网盘应用程序备份至服务器的图片,所述请求包括对应的图片的标识符;A request sending module, configured to send a request for loading a thumbnail of a picture to the network disk application; the picture is a picture that the client backs up to the server through the network disk application, and the request includes a corresponding picture the identifier; 标识符判断模块,用于判断预置的图片记录表里是否存在所述对应的图片的标识符;an identifier judgment module for judging whether the identifier of the corresponding picture exists in the preset picture record table; 本地路径提取模块,用于若预置的图片记录表里存在所述对应的图片的标识符,则从所述图片记录表中提取出与所述对应的图片的标识符对应的本地路径;The local path extraction module is used to extract the local path corresponding to the identifier of the corresponding picture from the picture recording table if the identifier of the corresponding picture exists in the preset picture recording table; 本地图片获取模块,用于在所述客户端按照所述本地路径获取本地图片;a local picture acquisition module, configured to acquire a local picture on the client side according to the local path; 缩略图显示模块,用于在所述网盘应用程序中显示所述本地图片的缩略图;a thumbnail display module, used for displaying the thumbnail of the local picture in the network disk application; 所述图片记录表中存储有相关图片的标识符及本地路径,且所述图片记录表周期性更新;Identifiers and local paths of relevant pictures are stored in the picture record table, and the picture record table is periodically updated; 其中,所述相关图片包括所述客户端通过所述网盘应用程序备份至所述服务器的图片,以及所述客户端通过所述网盘应用程序从所述服务器下载的图片;Wherein, the relevant pictures include pictures backed up by the client to the server through the network disk application, and pictures downloaded by the client from the server through the network disk application; 所述请求还至少包括对应的图片的名称、类型、备份时间和备份方信息之一;The request also includes at least one of the name, type, backup time and backup party information of the corresponding picture; 所述装置还包括:备份方信息判断模块,用于在所述标识符判断模块判断预置的图片记录表里是否存在所述对应的图片的标识符之前,判断所述备份方信息是否与所述客户端的识别信息相同;The device further includes: a backup party information judgment module, configured to judge whether the backup party information is the same as the one before the identifier judgment module judges whether the identifier of the corresponding picture exists in the preset picture record table. The identification information of the client is the same; 若相同,则所述标识符判断模块判断预置的图片记录表里是否存在所述对应的图片的标识符。If they are the same, the identifier judging module judges whether the identifier of the corresponding picture exists in the preset picture record table. 8.根据权利要求7所述的装置,其中,所述装置还包括:8. The apparatus of claim 7, wherein the apparatus further comprises: 标识符校验模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,校验获取得到的本地图片的标识符是否与所述请求中的标识符相同;an identifier verification module, configured to verify whether the identifier of the acquired local image is the same as the identifier in the request after the local image acquisition module acquires the local image on the client side according to the local path; 若相同,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If the same, the thumbnail display module displays the thumbnail of the local picture in the network disk application. 9.根据权利要求7所述的装置,其中,所述客户端的识别信息包括客户端ID和/或所述网盘应用程序的用户名。9. The apparatus according to claim 7, wherein the identification information of the client comprises a client ID and/or a username of the network disk application. 10.根据权利要求7所述的装置,其中,所述装置还包括:10. The apparatus of claim 7, wherein the apparatus further comprises: 备份时间判断模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,判断所述备份时间是否在所述本地图片的生成时间之后;A backup time judgment module, configured to judge whether the backup time is after the generation time of the local picture after the local picture obtaining module obtains the local picture on the client side according to the local path; 若是,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If so, the thumbnail display module displays the thumbnail of the local picture in the network disk application. 11.根据权利要求7所述的装置,其中,所述装置还包括:11. The apparatus of claim 7, wherein the apparatus further comprises: 类型判断模块,用于在所述本地图片获取模块在客户端按照所述本地路径获取本地图片之后,判断所述类型是否与所述本地图片的类型相同;a type judgment module, configured to judge whether the type is the same as the type of the local image after the local image acquisition module acquires the local image on the client side according to the local path; 若相同,则所述缩略图显示模块在所述网盘应用程序中显示所述本地图片的缩略图。If the same, the thumbnail display module displays the thumbnail of the local picture in the network disk application. 12.根据权利要求7所述的装置,其中,所述标识符为MD5、SHA1和CRC32之一。12. The apparatus of claim 7, wherein the identifier is one of MD5, SHA1, and CRC32.
CN201510960339.0A 2015-12-18 2015-12-18 Thumbnail display method and device for pictures in network disk Active CN106899630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510960339.0A CN106899630B (en) 2015-12-18 2015-12-18 Thumbnail display method and device for pictures in network disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510960339.0A CN106899630B (en) 2015-12-18 2015-12-18 Thumbnail display method and device for pictures in network disk

Publications (2)

Publication Number Publication Date
CN106899630A CN106899630A (en) 2017-06-27
CN106899630B true CN106899630B (en) 2020-11-03

Family

ID=59191221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510960339.0A Active CN106899630B (en) 2015-12-18 2015-12-18 Thumbnail display method and device for pictures in network disk

Country Status (1)

Country Link
CN (1) CN106899630B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165365B (en) * 2018-09-14 2021-11-16 浪潮通用软件有限公司 Method for updating picture by using cache frame and timestamp in android native application
CN111277916A (en) * 2020-01-09 2020-06-12 深圳震有科技股份有限公司 Queue-based video thumbnail loading processing method and device, equipment and medium
CN114491257A (en) * 2022-01-25 2022-05-13 河南标图网络科技有限公司 Picture identification system and method based on network disk
CN116561351A (en) * 2022-01-29 2023-08-08 华为技术有限公司 Thumbnail storage method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184177A (en) * 2011-01-04 2011-09-14 北京开心人信息技术有限公司 Method and system for previewing file
CN102970358A (en) * 2012-11-08 2013-03-13 百度在线网络技术(北京)有限公司 Method and device for controlling local cache of mobile client in network disc
CN104253836A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Wireless network based image displaying method and system and mobile terminal
CN104965877A (en) * 2015-06-12 2015-10-07 郑州悉知信息技术有限公司 Webpage picture acquisition method, picture cache server, coordination server and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780676B (en) * 2013-12-12 2017-04-26 北京奇虎科技有限公司 File transmission method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184177A (en) * 2011-01-04 2011-09-14 北京开心人信息技术有限公司 Method and system for previewing file
CN102970358A (en) * 2012-11-08 2013-03-13 百度在线网络技术(北京)有限公司 Method and device for controlling local cache of mobile client in network disc
CN104253836A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Wireless network based image displaying method and system and mobile terminal
CN104965877A (en) * 2015-06-12 2015-10-07 郑州悉知信息技术有限公司 Webpage picture acquisition method, picture cache server, coordination server and system

Also Published As

Publication number Publication date
CN106899630A (en) 2017-06-27

Similar Documents

Publication Publication Date Title
CN103581318B (en) A kind of backup of mobile device data, restoring method and device
CN106899630B (en) Thumbnail display method and device for pictures in network disk
CN103745158A (en) Method and device for repairing system bugs
US9940115B2 (en) Mobile application deployment for distributed computing environments
US20120296871A1 (en) File managing apparatus for processing an online storage service
CN101252575A (en) Systems and methods for managing boot images in a retail store environment
CN104765657A (en) Data backup method, data recovery method and relative device
CN106776143A (en) The method and terminal device of a kind of mirror back-up for end application
US10917484B2 (en) Identifying and managing redundant digital content transfers
CN105204964B (en) Data back up method and device based on cloud disk
US9609043B2 (en) Facilitating access to content from group interactions
CN103687059A (en) Method and apparatus for establishing a connection between a computing device and a mobile device
CN105554137A (en) Backup system and method
US9367572B2 (en) Metadata-based file-identification systems and methods
CN104580376A (en) Method, device and system for constructing connection between terminals in local area network
CN106201789A (en) Data backup method and device and terminal
CN104967646B (en) Document down loading method and device
CN105554136B (en) Backup data restoration method, device and system
US20100125645A1 (en) Providing aggregated directory structure
CN106911751A (en) File acquisition method, device and system
CN103164492A (en) File copying method between electronic devices and electronic devices
CN106909591A (en) File acquisition method, device and system
CN104391662B (en) A kind of data read-write method and device
CN106911747A (en) File acquisition method, device and system
CN112242944A (en) File processing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240115

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.