Showing posts with label MongoDB. Show all posts
Showing posts with label MongoDB. Show all posts

Wednesday, March 31, 2021

Saving an image or file to MongoDB GridFS using Lua

Install the following packages
$: sudo apt install lua5.3
$: sudo apt install luarocks
$: sudo apt install libbson-dev
$: sudo apt install libmongoc-dev
$: sudo apt install liblua5.3-dev
$: sudo luarocks install lua-mongo

Then save image like below:

CPP Quick Guide

Basics Hello world User input While loop If statement For loop Switch statement Read file using ifstream Write to a file using ofstr...