Dynamic image

The dynamic content returned by CXP pages is not limited to simple HTML. Instead, arbitrary content can be generated. In this sample, a GIF image is created in CXP code and is then returned to the browser. No HTML markup is used here. Instead, the member variable :ContentType and the method :WriteBinary() of the HTTP response object are used to send the image data back to the browser.

Run in new tab
Live editor
Result built with V2 2156
I'm a warning toast!
I'm a success toast!