node.js - I would like to ask how nodejs stores images in mongodb
大家讲道理
大家讲道理 2017-06-17 09:15:33
0
4
829

The front-end uses vuejs, the back-end uses nodjs, and the database is mongodb. I would like to ask how to implement image uploading? Are images stored in mongodb in base64 format?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(4)
过去多啦不再A梦

base64 is more convenient

过去多啦不再A梦

Save the picture address. . .

刘奇

Stored as an accessible address

代言

1. If you want to physically store images, it is best to use base64.
2. If it is a personal blog and you want to display pictures on the page, then it is best to find an image hosting, upload the pictures, and store the URL of the pictures in your DB

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!