Container.GetTypeSize
---------------------

Returns the size of the indicated object type in container field.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Container](component_Container.md) | [1.3](newinversion13.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Container.GetTypeSize"; Container; Type ) 

**MBS**( **"Container.GetTypeSize";** /\* Returns the size of the indicated object type in container field. \*/  
**$Container**; /\* The container field or value to inspect. \*/   
**$Type**) /\* The type code for the type to check. e.g. "JPEG" for a jpeg image.e.g. "JPEG" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Container | The container field or value to inspect. | $container |
| Type | The type code for the type to check. e.g. "JPEG" for a jpeg image. | "JPEG" |

### Description

Returns the size of the indicated object type in container field.  
For referenced files, this function will just return the size of the referenced file independent of the type.  
  
See [Container.GetTotalSize](ContainerGetTotalSize.md) to query size of all data in a container.  
### Examples

Get size of PNG image

 MBS ( "Container.GetTypeSize" ; ContainerField; "PNGf" )  
Get the size of a JPEG image

 MBS ( "Container.GetTypeSize" ; ContainerField; "JPEG" )  
Get the size of a TIFF image

 MBS ( "Container.GetTypeSize" ; ContainerField; "TIFF" )  
### See also

- [Container.Compress](ContainerCompress.md)
- [Container.Decompress](ContainerDecompress.md)
- [Container.GetMimeType](ContainerGetMimeType.md)
- [Container.GetSize](ContainerGetSize.md)
- [Container.GetTotalSize](ContainerGetTotalSize.md)
- [Container.GetType](ContainerGetType.md)
- [Container.GetTypes](ContainerGetTypes.md)
- [DynaPDF.GeneratePreview](DynaPDFGeneratePreview.md)

### Example Databases

- [Containers/Containers](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Containers.shtml#1294FieldAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 4.5pr1](https://www.mbsplugins.de/archive/2014-11-24/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.5pr10](https://www.mbsplugins.de/archive/2013-12-08/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.0pr2](https://www.mbsplugins.de/archive/2012-10-14/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 6th November 2018

  
[Container.GetType](ContainerGetType.md) - [Container.GetTypes](ContainerGetTypes.md)

[HTML Version](ContainerGetTypeSize.shtml)