I was thinking if I store a video or a movie and open that box will that video will be stored in my RAM or else it just load from ROM. I am a bit confused: Can anyone explain this to me?
Can Hive in Flutter Store BigData(some GB files)
6.3k Views Asked by i_have_doubt At
2
I think you have misunderstood the concept of Database.
Any Database solution is to only store pure informational organized data. Not to store large files such as media, documents, or images.
On the contrary, storage need not be organized, all files can exist in one folder.
So, any database solution you use, always store Data Types. In this case you can have a Data Model, which is also an essential thing in using a Database.
Since Hive supports Dart objects, you don't have to convert toJson or any such for string the Data.
So when you have the file fetched from Storag, you can get the path using
path_provider
or from the File itself, and then Create a ObjectHope this clears your doubt.