byte array limit for arguments? use file storage
If I am storing a pdf file in form of bytes i am getting this error..

2 Replies
Or should I use file storage instead of storing as bytes?
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