Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File reading method and system

A file reading and file technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problem of lack of block storage of file reading methods, etc., to achieve the effect of overall reading

Active Publication Date: 2018-06-01
苏州朗润创新知识产权运营有限公司
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Therefore, the technical problem to be solved by the present invention is to overcome the defect in the prior art that lacks a file reading method for block storage, thereby providing a file reading method and system

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
  • File reading method and system
  • File reading method and system
  • File reading method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Embodiment 1 of the present invention provides a file reading method, such as figure 1 As shown, the file reading method includes the following steps:

[0033] Step S101: Obtain a file reading request input by a user. In a specific implementation, the file read request includes the file hash of the file, and since the file hash is unique, which file the user wants to read can be identified through the file hash.

[0034] Step S102: Obtain the corresponding file block hash according to the file read request. In a specific implementation, according to the file hash in the file read request, the corresponding file block hash set can be found from the file block storage records stored on the blockchain, and the file block hash set includes the file File block hashes for multiple file blocks for .

[0035] Step S103: read the file block data and the index information of the file block data from the storage node storing the file block hash on the block chain. In a specifi...

Embodiment 2

[0048] Embodiment 2 of the present invention provides a method for storing files in blocks, such as Figure 4 As shown, it includes the following steps:

[0049] Step S201: Obtain the file through the file distribution node on the block chain and divide the file into blocks to generate multiple file blocks of the file. In a specific embodiment, see Figure 5 , Step S201 in Embodiment 2 of the present invention can be realized through the following sub-steps:

[0050] Step S201a: Obtain the file through the file distribution node on the blockchain and read the content of the file according to the uniform resource locator of the file;

[0051] Step S201b: The file distribution node performs block processing on the file according to the file block threshold to generate multiple file blocks.

[0052] Step S201 in Embodiment 2 of the present invention uses the file distribution node on the block chain to divide the file into a number of file blocks with equivalent data volume ac...

Embodiment 3

[0075] Embodiment 3 of the present invention provides a file reading system, such as Figure 10 As shown, it includes: an acquisition module 1, a file block data reading module 2 and a file block merging module 3. Among them, the acquisition module 1 is used to obtain the file reading request input by the user, and obtains the corresponding file block hash according to the file reading request; the file block data reading module 2 is used to store the file block hash from the block chain The file block data and the index information of the file block data are read on the storage node of the storage node; the file block merging module 3 is used to merge and generate a file according to the file block data and the index information.

[0076] The acquisition module 1 corresponds to the implementation of steps S101-S102 in Embodiment 1 of the present invention; the file block data reading module 2 corresponds to step S103 in Embodiment 1 of the present invention; the file block me...

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 provides a file reading method and system. The file reading method comprises the following steps of: obtaining a file reading request input by a user; obtaining corresponding file blockhash according to the file reading request; reading file block data and index information of the file block data from a storage node, in which the file block hash is stored, on a block chain; and combining the file block data and the index information to generate a file. According to the file reading method and system provided by the invention, the file block data which is stored in a blocking manner is extracted one by one, and the file is formed according to index positions, in the file, of the file blocks, so that the integrated reading of the file which is stored in a blocking manner is realized.

Description

technical field [0001] The invention relates to the technical field of file storage and reading, in particular to a file reading method and system. Background technique [0002] Blockchain is a decentralized storage and computing technology. Blockchain technology participates in calculations through all nodes in the network, and mutually verifies the authenticity of their information to reach a consensus on the entire network. The data stored in it cannot be tampered with, and it can also achieve full historical records of data. Many existing big data, such as medical data, population data, etc., need to invest a lot of money and human resources in data storage and maintenance. Blockchain utilizes distributed computing resources to realize the storage of big data at low cost. [0003] The Chinese invention patent application with publication number CN107273410A discloses a distributed storage method based on blockchain, which stores files as a whole in a distributed networ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F17/30
CPCG06F3/0619G06F3/0622G06F3/064G06F3/067G06F16/137
Inventor 康昆彬路成业
Owner 苏州朗润创新知识产权运营有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products