// set image from the web app root onSolutionOpen
application.putClientProperty(APP_NG_PROPERTY.WINDOW_BRANDING_ICON_32, "favicon32x32.png");
// set base64 encoded image from solution onSolutionOpen
var img = solutionModel.getMedia("favicon32x32.png")
var imgAsBase64 = new Packages.org.apache.commons.codec.binary.Base64().encodeAsString(img.bytes);
var imgHref = "data:image/png;base64," + imgAsBase64;
application.putClientProperty(APP_NG_PROPERTY.WINDOW_BRANDING_ICON_32, imgHref); |