I'm a newbie working on a first full MERN stack web app(real-estate-web-app).
I came a across a problem that needed an admin to save images to the db(using their dashboard). (server built in node/express). I solved the problem by uploading the images to db, using a buffer data type. When i retrieve the images in the frontend, i need to set src to : "data: image/png;base64,..."
SO my 2 questions are:
1). Is my approach of uploading images safe? Or should I use another approach? And is it safe to use "data: image/png;base64,..." in the src attribute? (because I noticed that this is slow)