---
title: "Comment by Vivek Gautam on \"How to store an image to a database with React using Base 64.\" | Hashnode"
description: "Great Article , But I think saving the url of the image will be clean and better way of using it . Get the image from client Make some changes in naming / compr"
url: "https://hashnode.com/posts/how-to-store-an-image-to-a-database-with-react-using-base-64/609b660100bbde79d86a57d6/comment/609cc085b684eb4cd52c310e"
---

[Discussion](https://hashnode.com/posts/how-to-store-an-image-to-a-database-with-react-using-base-64/609b660100bbde79d86a57d6)

Comment [How to store an image to a database with React using Base 64.](https://hashnode.com/posts/how-to-store-an-image-to-a-database-with-react-using-base-64/609b660100bbde79d86a57d6)

[Vivek Gautam](https://hashnode.com/@vivekgautamj)

[May 13, 2021](https://hashnode.com/posts/how-to-store-an-image-to-a-database-with-react-using-base-64/609b660100bbde79d86a57d6/comment/609cc085b684eb4cd52c310e)

Great Article , But I think saving the url of the image will be clean and better way of using it .

-   Get the image from client
-   Make some changes in naming / compress it (or use any third party to compress)
-   Save images in S3 using multer , it will return image url
-   Save image url in mongoDB
