Profile Photo Handling

How can we add the profile photo of a user to database and retreive it after a succesfull login ?

@S19LPPP0132 send the profile photo from client side to backend, use can use fileUpload for that, and multer at backend side. This way you will have the photo at your server side. Then you can save it at your desired location and retrieve it from there for further use.
Better way of doing it is using a separate database for images, use any online available free db(for testing things out) and then save the url of the image in your database.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

If you want to work as a Smart Hands Engineer, we’ve got all the information you need to know before making this career change.