G
G
ghost12020-09-26 14:03:55
Mongoose
ghost1, 2020-09-26 14:03:55

Hello! Can you help me understand how to upload images to Mondodb in base64?

Mastering Node.Js, Express.Js Mongoose Mongodb. I am developing an ad site https://github.com/ghost-raven1/ads_site I really need a hint from those in the know. Need an easy way to add images to ads. Thanks in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-09-26
@ghost1

100500 times - no need! Don't store pictures in a database. You will need to use computing power, connect to the database, unpack the image from base64, and it weighs more to get it.
Store as white people on the disk and give it to the webserver. If the system is distributed then use object storage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question