Hey all,
I'm experiencing the same b64decode error " - conversion error invoked from within "b64decode [lindex $::banner_prg_png_class 0]"
I've encoded a png image as directed by this post
http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePage.html
I've created the file and removed all of the 'returns', created the class, and associated the iRule with the VIP.
This code fails:
when HTTP_REQUEST {
log local0.info "Rule initiated"
HTTP::respond 200 content [b64decode [lindex $::banner_png_class 0]] "Content-Type" "image/png"
log local0.info "Response Successful"
}
When I replace the "[lindex $::banner_png_class 0]" with the actual b64 text - it works just fine.
What I'm trying to do in the end is to have a 200 respond with a multilined html response with several images, but I can't get past this step...
Thanks in advance.