Hi,
After reading this article, https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/mongoose
I’m continuing study about mongoose,
I’m reading this: https://mongoosejs.com/docs/schematypes.html#buffers right now.
In this document it’s written that you can insert some types of data and it will be casted to binary data.
One of the examples is:
const file2 = new Data({ binData: 72987 }); // {"type":"Buffer","data":[27]}
Can someone please explain how they get to [27] from 72987?
Thanks,
@hamishwillee did you read this doc?