PrismaP
Prisma13mo ago
5 replies
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
API reference documentation for the Prisma Schema Language (PSL).
Prisma Schema API | Prisma Documentation
Was this page helpful?