# Frontend to backend

**URL:** <https://forum.codewithmosh.com/t/frontend-to-backend/29421>\
**Category:** Uncategorized\
**Created:** [October 24, 2024, 11:13am UTC](https://forum.codewithmosh.com/t/frontend-to-backend/29421 "2024-10-24T11:13:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivakumar](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sivakumar](https://forum.codewithmosh.com/u/sivakumar)\
**Post date:** [October 24, 2024, 11:13am UTC](https://forum.codewithmosh.com/t/frontend-to-backend/29421/1 "2024-10-24T11:13:57Z")

</div>

Hi,

I don’t know how to send an image frontend to backend and database…

can you please help me… I am backend using node.js

---

<div class="post-metadata">

**Author:** ![achintha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/achintha/32/8624_2.png) [@achintha](https://forum.codewithmosh.com/u/achintha)\
**Post date:** [October 27, 2024, 5:11am UTC](https://forum.codewithmosh.com/t/frontend-to-backend/29421/2 "2024-10-27T05:11:26Z")

</div>

You can use npm packages like multer to receive and deal with them from a node js backend. A better way is to store those files or images on the server or in file storage. But if you want to store them in the database you could use columns with the blob data type. However, it could affect the size and performance of your database if you start storing larger files.

---

<div class="post-metadata">

**Author:** ![sivakumar](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sivakumar](https://forum.codewithmosh.com/u/sivakumar)\
**Post date:** [October 28, 2024, 9:48am UTC](https://forum.codewithmosh.com/t/frontend-to-backend/29421/3 "2024-10-28T09:48:01Z")

</div>

it’s not suitable for mongodb database larger file uploadings right?

---

<div class="post-metadata">

**Author:** ![achintha](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/achintha/32/8624_2.png) [@achintha](https://forum.codewithmosh.com/u/achintha)\
**Post date:** [October 28, 2024, 11:08am UTC](https://forum.codewithmosh.com/t/frontend-to-backend/29421/4 "2024-10-28T11:08:03Z")

</div>

I haven’t used MongoDB. However, in my opinion, storing files inside a database could lead to space and performance issues.
