How do I retrieve an Array Buffer from the file that is supposed to be a blob? #866
-
How do I get the binary data or an ArrayBuffer from formidable's object, I sent it in a FormData object as a blob, but not sure how to proceed to extract the image data. And your documentation doesn't specify.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One way would be to use node's built in fsPromises.readFile with filepath that you have. |
Beta Was this translation helpful? Give feedback.
One way would be to use node's built in fsPromises.readFile with filepath that you have.
You can then convert the buffer to an ArrayBuffer