P
Prisma•2d ago
bockster6669

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:
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).
Jump to solution
4 Replies
Prisma AI Help
Prisma AI Help•2d ago
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
Nurul
Nurul•2d ago
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).
bockster6669
bockster6669OP•2d ago
thank you

Did you find this page helpful?