What are schema types Buffer?

I want to send a POST request that includes a large image URL obtained through fileReader’s read operation (fileReader.result). However, I don’t know whether I should define schematype buffer or just string instead on the corresponding attribute of my mongoose Schema.

You are storing the URL in the DB and not the image itself right ? if so then, your schema type should be a string