Container.ExtractStream
-----------------------

Extracts a single frame and returns as new container value.

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

MBS( "Container.ExtractStream"; Container; InputType { ; NewName; OutputType } ) 

**MBS**( **"Container.ExtractStream";** /\* Extracts a single frame and returns as new container value. \*/  
**$Container**; /\* The container value to modify.e.g. $data \*/   
**$InputType**; /\* The input type.e.g. "JPEG" \*/   
**$NewName**; /\* Optional; The new file name to use.e.g. "test.psd" \*/   
**$OutputType**) /\* Optional; The output type.e.g. "FILE" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Container | The container value to modify. | $data |  |
| InputType | The input type. | "JPEG" |  |
| NewName | The new file name to use. | "test.psd" | Optional |
| OutputType | The output type. | "FILE" | Optional |

### Result

Returns modified container value.

### Description

Extracts a single frame and returns as new container value.  
See [Container.GetTypes](ContainerGetTypes.md) to figure out what stream types a container value has.  
### Examples

Extract a Photoshop image and package it like a file import:

 MBS ("Container.ExtractStream"; Test::InputContainer ; "8BPS"; "test.psd"; "FILE")  
Extract PDF to go into a FILE container:

 MBS ( "Container.ExtractStream"; MyTable::MyPDF ; "PDF "; "test.pdf"; "FILE" )  
### See also

- [Container.GetDataURL](ContainerGetDataURL.md)
- [Container.GetType](ContainerGetType.md)
- [Container.GetTypes](ContainerGetTypes.md)
- [Container.RenameStream](ContainerRenameStream.md)

### Blog Entries

- [MBS Filemaker Plugin, version 4.3pr1](https://www.mbsplugins.de/archive/2014-07-02/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 1st August 2024

  
[Container.Export](ContainerExport.md) - [Container.GetBase64](ContainerGetBase64.md)

[HTML Version](ContainerExtractStream.shtml)