Hi @Bourgou,
In this link you can find a rather similar case: it doesn't matter whether your images arrive from a Raspberry/USB/IP camera: encode the image to base64 and push them to the template node. You can copy the template node code from the example flow in that link.
Good luck with it!
Bart