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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com