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

MongoDB.ContainerToBinary

Converts a container to JSON for MongoDB.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.ContainerToBinary"; Container )   More

Parameters

Parameter Description Example
Container The container value to use.

Result

Returns JSON or error.

Description

Converts a container to JSON for MongoDB.
Reads the container, converts to base64 and embeds it in a $binary JSON for use in MongoDB.

Examples

Try it:

MBS("MongoDB.ContainerToBinary"; MyTable::Photo)

Release notes

Blog Entries

This function is free to use.

Created 15th March 2023, last changed 15th March 2023


MongoDB.Connect - MongoDB.CreateCollection