Forum Discussion
Jorge_Cabanilla
Nimbostratus
Jul 08, 2010Send a binary file as content in http:response, I need help
Hi,
Some one knows how to send a binary file as content in an HTTP:respond?
Is it possible to assign a file to a variable?
How to read a file?
I need the next:
...
hoolio
Cirrostratus
Jul 08, 2010Hi Jorge,
You can base64 encode the data before saving it to a variable and then use 'HTTP::respond 200 content [b64decode $my_b64_encoded_data]' to send it. This is done in the Maintenance Page examples in the iRule Codeshare:
http://devcentral.f5.com/wiki/default.aspx/iRules/Automatic_maintenance_page___Sorry_page_with_images.html
http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePage.html
Aaron
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