This node detects the MIME type (aka. “media type” or “content type”) of given files or binary data by looking at the actual data (i.e. not the file extension).
For example, for a PNG image it will return image/png, for a PDF file it will
return application/pdf.
Technically the MIME type detection works mostly with “magic patterns” which appear at
the beginning of files and which can be used to deduce the file type. For example in case
of PDFs, the magic pattern would be %PDF appearing at the beginning of the file.
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension Palladian for KNIME from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!