Home > OS >  How to store image into PostgreSQL using Prisma 2 and NodeJS?
How to store image into PostgreSQL using Prisma 2 and NodeJS?

Time:03-22

Good day everyone, i was looking for a similar that i can refer to, but sadly i wasn't found yet until now. Hope someone would give me some guidances on it...

I'm using filepond to send the api request, and use the prisma 2 client to store it

Thank you!

CodePudding user response:

It's usually a good practice to store Images in a Blob Storage and images should not directly be stored in the database, so you can use something like AWS S3 or Cloudinary to store the image and store the Image's S3 Bucket Path in your PostgreSQL Database.

Here's a working example of how you could achieve it.

  • Related