Android Data Storage: SharedPreferences and File I/O Operations

SharedPreferences for Key-Value StorageSharedPreferences provides a lightweight mechanism for storing primitive data types in XML format using a key-value pair structure. It is ideal for saving user preferences, session data, and small configuration settings.Initialization and ConfigurationTo use SharedPreferences, obtain an instance through th ...

Posted on Mon, 06 Jul 2026 17:11:44 +0000 by asaschool

Retrieving Files from MongoDB GridFS Using GridFsResource in Spring

MongoDB’s GridFS is designed to store and retrieve files that exceed the BSON document size limit of 16MB by splitting them into smaller chunks. In Spring applications using Spring Data MongoDB, GridFsResource provides a conveneint abstraction for reading these files. GridFS uses two collections: fs.files stores metadata about each file, while ...

Posted on Fri, 08 May 2026 08:15:42 +0000 by wanttoshop