Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Container.RenameStream

Renames a stream in a container.

Component Version macOS Windows Linux Server iOS SDK
Container 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Container.RenameStream"; Container; InputType; OutputType )   More

Parameters

Parameter Description Example
Container The container field or value to inspect. $data
InputType The input type. "JPEG"
OutputType The output type. "FILE"

Result

Returns modified container value.

Description

Renames a stream in a container.
See Container.GetTypes to figure out what stream types a container value has.

Examples

Rename JPEG like a file import:

MBS("Container.RenameStream"; Test::InputContainer; "JPEG"; "FILE")

Decode hex encoded zlib compressed PDF in a text field:

Set Field [ PDF::PDFFile ; MBS( "Container.Decompress"; MBS( "Container.RenameStream"; MBS( "Container.DecodeFromHex"; "FILE"; PDF::PDF_hex; "test.pdf"); "FILE"; "ZLIB" )) ]

See also

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 1st May 2022


Container.Rename - Container.Screenshot