| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Container.GetMimeType
Returns the mime type for an image stored in a container field.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Container | 15.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Container.GetMimeType"; Container ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Container | The container field or value to inspect. |
Result
Returns text or error.
Description
Returns the mime type for an image stored in a container field.This is very useful for displaying images in web pages.
Used internally in Container.GetDataURL function.
When this returns "application/octet-stream", you could get the file name and use Text.FileExtensionToMimeType.
Examples
Query mime type for photo container:
MBS( "Container.GetMimeType"; Contacts::Photo )
See also
- Container.GetDataURL
- Container.GetType
- Container.GetTypes
- Container.GetTypeSize
- Text.FileExtensionToMimeType
Release notes
- Version 15.5
- Added Container.GetMimeType function.
Blog Entries
This function is free to use.
Created 27th October 2025, last changed 27th October 2025