How can I access Binary Format File from First Node of my workflow in Final Node of n8n Workflow

Hello, My workflow is for resumes Processing. I can simple explain it, that user will uploads a resume, which will triggers the workflow. then it will extracts information and processes the data. After execution of the workflow, I also want to access the original CV file uploaded at the start.

But when I try to use the uploaded file in the final node by setting it as input, it is not working for me, I get a binary file error. I understand that the last node can’t directly access the file from the first node.

Is there a way to access the original uploaded file from the first node in the final step of the workflow?
Please help me if you can.

Hi you can try to convert the file at the beginning to base64 string and convert it back before the last node to binary. This should work.

@jamshed

Yeah, you can just pull the file again as with binary it has to be the node just before you can’t reference back if nodes inbetween (store it when it comes in, and access again when need), or some people either use a merge node, connect that binary node , and that last node to the final node, then it can access, but personally for simple sake, just call the file again. Hope that makes sense can share exmaple if needed.

Samuel

Hey @jamshed hope all is good.

here is an example of using the merge node, mentioned above:

We read a file in the beginning, which introduces binary into the workflow, then something happens (some info it set, some logic is checked) and finally we need to get that binary again and do some action with it (in my case I just saved it again with a different name) - this is where the Merge node comes in.

1 Like

Thats it :slight_smile:

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