nicooo
nicooo13mo ago

byte array limit for arguments? use file storage

If I am storing a pdf file in form of bytes i am getting this error..
No description
2 Replies
nicooo
nicoooOP13mo ago
Or should I use file storage instead of storing as bytes?
lee
lee13mo ago
See https://docs.convex.dev/database/types says Convex stores ArrayBuffers, so you can call .buffer on the uint8array. There is a size limit of 8kb though, so if you need to store large files, file storage would be better.
Data Types | Convex Developer Hub
All Convex documents are defined as Javascript objects. These objects can have

Did you find this page helpful?