Forum Discussion
Angel__Sosa_509
Nimbostratus
Mar 02, 2007how to embed images in an Irule
Is there a way to embed a gif or a jpeg in an IRule?
The requirement is that the JPEG or the GIF has to exist local to the F5
The F5 is also serving the page ( This part is done). It embedding the image that isn’t
Thanks in Advance
Angel Sosa
3 Replies
- dennypayne
Employee
Hi Angel,
I have tried this before and the short answer is: not really.
Long answer: See this thread for more info Click here
Denny - Angel__Sosa_509
Nimbostratus
Denny Thanks for responding
So trying to encode the image using base 64, will it work. Ive tried so far and escaped all of the protected tcl characters and removed all of "\n". And I don't receive any errors when I run it passed the LTMs config parser but all I get is no image in return.
So their is no way at all? - hoolio
Cirrostratus
Hi Angel,
In the thread Denny referred to, I posted a working example of how to reply to requests for a page and an image in the same rule; responding to the request for an image with the binary data of the image.
Try checking that post and reply if you have any questions.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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