I am trying to access the binary data of a node in a loop over items. I do require the loop over items (my actual workflow is more complicated), I have just provided below as a MWE.
What is the error message (if any)?
No error, but binary data is not outputted. See output of last node below.
I may well be missing something but actual use case is more complicated as nodes required between loop and then the code node at the end (can update above if needed). Essentially probably with results is it necessarily requires the binary data node to be before which in this case isn’t possible
We should probably put more examples together on referencing binary data in a code node, I am sure there are some examples here on the forum but I can’t find any. If I get some time I will see if I can put something together.
Side question - are we able to access binary data from a node way back in a js expression in another later node. Currently, I am familiar with just using ‘data’ and having binary data available in the prior node, but would save a step if we could do something like $(‘HTTP Request’).first().binary.data