BLOB in prisma schema
Is there a way of storing BLOB in prisma schema? Please if you know tell me the aswer and don't tell me "don't store images in db", use S3 or something like that
Solution:Jump to solution
Hey 👋
Yes, you can use Bytes type to store BLOB data:
https://www.prisma.io/docs/orm/reference/prisma-schema-reference#bytes...
Prisma Schema API | Prisma Documentation
API reference documentation for the Prisma Schema Language (PSL).
4 Replies
Salutations, traveler! I'm the Prisma AI Help Bot. You've reached a fork in the road: one path leads to the wisdom of the human sages (ETA: sometime today), and the other to my instantaneous insights. Which way shall we go?
Solution
Hey 👋
Yes, you can use Bytes type to store BLOB data:
https://www.prisma.io/docs/orm/reference/prisma-schema-reference#bytes
Prisma Schema API | Prisma Documentation
API reference documentation for the Prisma Schema Language (PSL).
Fields & types | Prisma Documentation
Learn how to use about special fields and types with Prisma Client.
thank you