Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Removes a stream from container value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Container 3.3 Yes Yes Yes Yes Yes
MBS( "Container.Remove"; ContainerField; Type )   More


Parameter Description Example value
ContainerField The container field or value to inspect.
Type The type code of the stream to remove. Can be "PDF ", "JPEG" or one of the other usual types. "JPEG"


Returns modified container value or error.


Removes a stream from container value.
This function can be used to remove the JPEG preview from an image.
Or if you have a container with PDF and preview, you could remove the PDF to just get the preview image.
Use Container.GetTypes to learn what types are inside a container.


Renames an image to have a new file extension.

$jpegOnly = MBS( "Container.Remove"; $PDFContainer; "JPEG" )

Remove PDF from container value:

/* PDF produced with DynaPDF Pro will have Preview image. Removing PDF will reveal the preview: */
MBS( "Container.Remove"; FinalPDF; "PDF " )

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 21st October 2017

Container.ReadImage   -   Container.Rename

Feedback: Report problem or ask question.

MBS Xojo Plugins