[SOLVED] Chromecast binding - set image (channel image) manually to a PNG file

Unfortunately that does not work:

2018-10-22 19:56:41.185 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert 'http://192.168.137.29:8080/radiostation.png' to a state type which item 'Chromecast_Audio1_Kitchen_Image' accepts: [RawType, UnDefType].

jpg returns the same error.

here is the solution:

convert the picture with e.g. https://www.base64-image.de/ and then:

// the coded picture is shortened here
Chromecast_Audio1_Kitchen_Image.postUpdate("data:image/png;base64,iVBORw0KGgoAAA........AAElFTkSuQmCC")

by the way, the radio does not stop playing!