pyflink.table.expression.Expression.mime_type#
- Expression.mime_type() Expression[source]#
Returns the MIME type based on the file extension in the given URI or object key.
Supported formats: bmp, jpg/jpeg/jpe, png, tif/tiff, webp, heic, pdf. Unsupported or unrecognized extensions are mapped to ‘application/other’.
- Returns:
A STRING representing the MIME type.
Added in version 1.12.0.