Forum Discussion

Angel__Sosa_509's avatar
Angel__Sosa_509
Icon for Nimbostratus rankNimbostratus
Mar 02, 2007

how 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

  • 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
  • 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?
  • 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