Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Checks file type from the data.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
text | The text to check. | ||
Encoding | The text encoding for text parameter. Default is UTF-8 for version. Can also be "hex" or "base64" to provide data encoded with hex or base64 algorithm. |
"Hex" | Optional |
Returns text or error.
PDF document. | |
JPEG | JPEG image. |
GIF | GIF image. |
BMP | Windows BMP image |
WEBP | WebP image. |
PNG | PNG image. |
TIFF | TIFF image. |
GIF | GIF image. |
SVG | SVG image. |
ZIP | ZIP file. |
HEIF | HEIF image file. |
FMP | FileMaker database. |
EXE | Windows executable |
MachO | macOS executable |
ELF | Linux executable |
Check content of some hex data:
MBS( "Text.IdentifyData"; "89504E470D0A1A0A000000..."; "Hex" )
Example result: PNG
This function is free to use.
Created 23th December 2023, last changed 8th January 2024