I wonder which way is better to store images in memory:
- Storing images as
BLOB
in DB
or
- Saving images to file and store only path to it in database
What way is more efficient? I suppose that storing files' paths requires more operations because we need to refer to DB and then to file, but I'm not sure if this is less efficent than keeping whole images in DB.