I'm trying to create a flow that will upload an image to pushbullet. The pushbullet APi has 2 parts for uploading an image. I have the first part working, but cannot seem to get the image upload to work correctly. I've captured some wireshark traffic of the upload and the upload size is almost double what the actual file size is. I've captured a valid one with curl and the it looks identical except for the actual image content.
I'm using the file in to read the image and pass it along to an http request node. When i run it with an actual pushbullet URL i get the expected response but when i go to view the image i get an error, somethig along the lines that the image was invalid. Any suggestions?
Hi, I would guess that at some point you are not handling the image as a binary buffer. At some point pushbullet will need it in some format (maybe base64 encoded? You'll have to read docs).
I think the problem is within my function. The file in node reads the file as a binary object then passes it to this function. This function then converts it to a string. The pushbullet APi doesnt specify what format it must be in, only that it must be in a multipart/form-data.