So i am building this thing and part of it sometimes will grab an image like below with no file extension as part of the name. however n8n can see what it is e.g png gif etc
That would currently only be possible with the Code-Node. There you can access the binary data + metadata. You can find information about the data structure here.
So instead of accessing and setting the json data you do the same for binary one.