Method for storing and reading picture

A picture and character technology, applied in the field of picture storage and reading, can solve the problems of slow picture indexing, picture migration, and inability to meet the needs of massive picture storage, so as to facilitate backup, meet the needs of massive picture storage, and improve picture indexing effect of speed

Inactive Publication Date: 2013-01-30
HENAN RUIZHIQI INFORMATION TECH
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Image storage has always been a commonly used storage for websites. Faced with an increasingly large image library, a single image server is far from being able to meet the massive image storage needs.
Generally, the d...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for storing and reading picture
  • Method for storing and reading picture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention is further described below by accompanying drawing:

[0020] The present invention calculates the MD5 value of the picture uploaded by the user. The MD5 value is a hexadecimal character string, which can identify the uniqueness of the picture, and is also a hexadecimal character string. Intercept the first 9 digits of the MD5 value, the first two digits are used as the first layer directory, the middle two digits are used as the second layer directory, and the third layer directory converts the remaining 5 digits into decimal, and the remainder of 1024 is used as the third layer directory, the file exists in this directory. The advantage of such storage is that the directory of each layer will not be larger than 1024, which improves the speed of physically reading files. The configuration file of the present invention is a routing file for storing / reading files, and the storage path of the file can be determined by the first few letters of the MD5...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for storing and reading a picture. The method comprises a picture storing method and a picture reading method, wherein the picture storing method comprises the following steps that: step 1, the picture is uploaded by a user; step 2, a MD5 (Message Digest 5) value of the picture uploaded by the user is computed; a server is determined by two front characters of the MD5 value, a configuration file of server information is read, and the server is determined; a second-level directory of a file picture is determined by a third character and a fourth character of the MD5 value; the fifth to ninth characters of the MD5 value are converted into decimal systems, and the remainder of 1024 is taken as a third-level directory; and step 3, the picture is saved, and the MD5 value is stored into a database. According to the method for storing and reading picture, the distribution-type storage is adopted, a system for storing the file can be formed by one or more servers, a cloud platform is unnecessary to be built, the number of the files in each folder of a picture server can be controlled by the picture server, and the cross-server backup is benefited.

Description

technical field [0001] The invention relates to a picture storage and reading method. Background technique [0002] Image storage has always been a commonly used storage for websites. Faced with an increasingly large image library, a single image server is far from being able to meet the massive image storage needs. Generally, the directory of picture storage is stored by date, but this will face a problem. When there are more and more pictures, the picture index will become slower and slower, and when the server is full, it will face Image transfer problem. Contents of the invention [0003] In view of this, the purpose of the present invention is to provide a method for storing and reading pictures. By adopting distributed storage, one or more servers can form a file storage system without building a cloud platform. The files in each folder of the picture server How much can be controlled by yourself, and it is convenient for cross-server backup. [0004] In order to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08G06F17/30
Inventor 李超周朋辉吴继平李沛
Owner HENAN RUIZHIQI INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products