Forum Discussion
jwright47_23019
Nimbostratus
Oct 21, 2015Possible to read TIFF header and reject if format is incorrect?
Our clients upload TIFF images to our server. However, our app requires TIFF images of a particular resolution and compression.
This information is embedded in the TIFF header.
Is it possib...
jwright47_23019
Nimbostratus
Oct 21, 2015I have learned that the TIFF is embedded in xml, base64 encoded. Is it still possible to do this?
I know that the F5 can do xml validation. Could I do this as part of that function?
- Lucas_Thompson_Oct 21, 2015Historic F5 AccountSure. It becomes more complicated, but it's possible. Recently an XML parser was added in irules that you could use, but probably for your use case it would be easier to just use pattern matching on the decoded base64 data. You're not looking to validate the entire document, just a sanity check against certain parameters.
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
