I'm uploading a file (multipart/form-data) to a Koa and want to store it into RethinkDB.
I parse it with co-busboy, which results in a stream.
Then I convert the stream into a buffer by attaching data/end listeners to it, gathering all buffers and concatenating them.
After I'm done with this, I get my DB record, put the buffer into the right field and save it.
But I always get a range error, so the update is never saved.
Does the buffer I created need some additional information for RethinkDB to store it?