I Need Help Dealing with Images

I want to use the Google Vision API to deal with the image

I used a webhook to upload the image, and now I have the image in binary form
How can I pass the image to the HTTP node? When I use $binary.image it pass object which the model can’t deal with because it’s expect image

Please share your workflow in a code block so we can see which api youre trying to use. My guess is you just need to convert the image to base64

2 Likes

Hey there! Try looking at this Uploading multipart form file using Http Request node. I think they have the same problem and they solved it

2 Likes

I converted it into a string base 64 after your comment using “Extract from File” Node → Move File to Base64 String
And I edit the “HTTP Request” Node to this form



This should work, right?

Im not sure I can help you without sharing your workflow

The problem is that I don’t know how I do it, like you want the json file from importing it or what should I do to share it

On your workflow, select all the nodes and copy it to your clipboard. Then on a reply here click the code block button and paste

1 Like

Ok great thanks now I have better view. Your request seems to be correct granted the actual image base64 is correct. The pinned data you sent is an incomplete image.

I deleted the rest of the data because the share couldn’t accommodate the full data, exceeding the character limit. So this workflow should work now after the conversion from binary to base64, Right?

I assumed that is the case yes, but dont ask me if it will work, have you actually tried to run it? Are you getting any errors?

All the last errors have been solved, now the error about the billing account so I will contact Google for this, but I want to make sure that everything from n8n side before this

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.