Forum Discussion
Klaus_Gerthein1
Nimbostratus
Jul 20, 2011Problem with b64decode lindex in Version 10.2.1
Hello,
I would like to send a sorry page when all pool members are down.
I found a solution contributed by citizen_elah .
1. Generate base64 encoded file from a screen shot ....
Kevin_Stewart
Employee
May 02, 2013I would recommend a slightly different approach. Create a single data group with all of your base64-encoded image content, indexed with the name of the image.
ex.
logo.png := /9j/4AAQSkZJRgABAQEASABIAAD/4QDSR...
offlineimage.png := DEBAgALAAAASgAAADIBAgAUAA...
Then use iRule logic like the following:
if { [HTTP::uri] ends_with "/logo.png" } {
HTTP::respond 200 content [b64decode [class lookup "logo.png" image_class]] "Content-Type" "image/png"
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects