Assume I have two servers both run on NodeJS. First receive a file using Multer and convert it to buffer as output, then convert it to blob and put it to form-data and post it via NodeJS https.request to second server. What I cannot handle is how to convert buffer to blob in NodeJS. Any help will be appreciated.
Asked
Active
Viewed 3,674 times
3
-
does it help ? https://stackoverflow.com/questions/44147912/arraybuffer-to-blob-conversion/44148694 – Apoorva Chikara Jan 20 '21 at 12:37
-
I tried it but I receive this error: TypeError: Blob is not a constructor – weera Jan 20 '21 at 12:41
-
1Yes, node doesn't have Blob. check out this : https://stackoverflow.com/questions/53637644/how-do-i-create-a-blob-in-node-js – Apoorva Chikara Jan 20 '21 at 12:51