I’m hoping to find a solution for a frustrating problem in Meteor.js. I want to make some API calls to an open API service for face detection. I just need to send an image and receive a JSON object. I cannot find a way to send an image in the post body with meteor.js. The default http package in Meteor has the following method
HTTP.post(url, [callOptions], [asyncCallback])
HTTP.call(method, url, [options], [asyncCallback])
with the options
[options] data Object JSON-able object to stringify and use as the HTTP request body. Overwrites content.
My question is how to attach a binary stream to the post body.
any help? Thanks