Container.GetTotalSize
----------------------

Returns the size of the whole container in bytes.

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

MBS( "Container.GetTotalSize"; Container ) 

**MBS**( **"Container.GetTotalSize";** /\* Returns the size of the whole container in bytes. \*/  
**$Container**) /\* The container field or value to inspect. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Container | The container field or value to inspect. |  |

### Description

Returns the size of the whole container in bytes.   
A file is typically broken up into several object types when stored in a container field. This function returns the total size of all those objects.  
### Examples

Get Total Size

 MBS ( "Container.GetTotalSize" ; ContainerField )  
### See also

- [Container.Compress](ContainerCompress.md)
- [Container.Deserialize](ContainerDeserialize.md)
- [Container.GetSize](ContainerGetSize.md)
- [Container.GetTypeSize](ContainerGetTypeSize.md)

### Example Databases

- [Containers/Container Compression](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Container%20Compression.shtml#1295FieldAnchor_)
- [Containers/Containers](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Containers.shtml#12918FieldAnchor_)
- [DynaPDF/PDF Attachments](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/PDF%20Attachments.shtml#1298FieldAnchor_)
- [GraphicsMagick/Image Scaling](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Image%20Scaling.shtml#12911FieldAnchor_)

### Blog Entries

- [Compressed Containers](https://www.mbsplugins.de/archive/2015-09-16/Compressed_Containers/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 20th May 2019

  
[Container.GetText](ContainerGetText.md) - [Container.GetType](ContainerGetType.md)

[HTML Version](ContainerGetTotalSize.shtml)