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.
-
does it help ? stackoverflow.com/questions/44147912/…Apoorva Chikara– Apoorva Chikara2021-01-20 12:37:02 +00:00Commented Jan 20, 2021 at 12:37
-
I tried it but I receive this error: TypeError: Blob is not a constructorweera– weera2021-01-20 12:41:19 +00:00Commented Jan 20, 2021 at 12:41
-
1Yes, node doesn't have Blob. check out this : stackoverflow.com/questions/53637644/…Apoorva Chikara– Apoorva Chikara2021-01-20 12:51:10 +00:00Commented Jan 20, 2021 at 12:51
Add a comment
|