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 09, 2010Regardless of what content is being sent, you can base64 encode it when you add it to the LTM configuration and then base64 decode it using b64decode.
If you want to send the raw xbxml to the client from an iRule, you could base64 encode it, add the string either to a datagroup or directly in the iRule under the RULE_INIT event and then use 'HTTP::respond 200 content [b64decode $static::my_b64encoded_string]', assuming you're on 10.0.0 or higher. If you're not on 10.x and want a 9.3 or 9.4 example, can you confirm which version you're running?
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