Changing file dynamicaly in media node

Hello,
I search to change dynamicaly an image file in media node.
I wrote
msg.payload = {"category": "portraits", "name": "MalouAirodo.jpg"}
The original image disapears but there is only the "not found" icon.
The file exist in the category, how can I change it easely and dynamicaly?
Thak you,
Jacques

Is that what the built in help says to send to the node?

Finaly, searching the forum, I found the working solution:
msg.payload = portrait/MalouAirodo.jpg (as string)
Thank you, Jacques

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