Forum Discussion
PeteWhite
Oct 08, 2018Employee
You want to create an internal datagroup called maintenance and add the filename as a key and the base64 string as the value.
when HTTP_REQUEST {
set image [class match -value -- [URI::basename [HTTP::uri]] equals maintenance]
if { $image != "" } {
HTTP::respond 200 content [b64decode $image]
}
}
I suspect that you would have to set the Content-Type header correctly so that the browser can interpret the file correctly.