By Topic

A Method to Store and Access a Folder in a Database

Sign In

Cookies must be enabled to login.After enabling cookies , please use refresh or reload or ctrl+f5 on the browser for the login options.

Formats Non-Member Member
$33 $13
Learn how you can qualify for the best price for this item!
Become an IEEE Member or Subscribe to
IEEE Xplore for exclusive pricing!
close button

puzzle piece

IEEE membership options for an individual and IEEE Xplore subscriptions for an organization offer the most affordable access to essential journal articles, conference papers, standards, eBooks, and eLearning courses.

Learn more about:

IEEE membership

IEEE Xplore subscriptions

2 Author(s)
Changgui Li ; Inst. of Surveying & Mapping, Inf. Eng. Univ., Zhengzhou, China ; Zhiping Lv

In some situation, it's necessary to store a whole folder into a database and provide random access to any file in it. This paper puts forward a new method to store a folder as a whole and access its file randomly in a database based on the integration of BLOB, Stream and Serialization technology. First, the folder is packed up, resulting in a file stream and a directory structure object. Then, the directory structure object is serialized to a directory structure stream. Finally, the file stream and directory structure stream are saved as BLOB data in a database respectively. When reading from the database, we first read the directory structure BLOB data as a stream, and deserialize it to the directory structure object. Then, with the information in the directory structure object, we can choose which file to access and ascertain its location and size in the folder's file BLOB data. Finally, we read the corresponding data section out of the database and realize the random access of a file.

Published in:

Intelligent System Design and Engineering Application (ISDEA), 2010 International Conference on  (Volume:1 )

Date of Conference:

13-14 Oct. 2010