Platforms to show: All Mac Windows Linux Cross-Platform

Back to MongoClientMBS class.

MongoClientMBS.DataToBinary(Data as MemoryBlock) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts the data to a binary object.

Converts a string or MemoryBlock to JSON for MongoDB.
Reads the bytes, converts to base64 and embeds it in a $binary JSON for use in MongoDB.

See also:

MongoClientMBS.DataToBinary(Data as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Converts the data to a binary object.
Example

Dim json As String = MongoClientMBS.DataToBinary("Hello World")

MessageBox json

// shows: { "$binary" : { "base64" : "SGVsbG8gV29ybGQ=", "subType" : "00" }

Converts a string or MemoryBlock to JSON for MongoDB.
Reads the bytes, converts to base64 and embeds it in a $binary JSON for use in MongoDB.

See also:

MongoClientMBS.LogMessage(Message as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sends message through MongoDB logging system.

See also:

MongoClientMBS.NowUTC as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Create a new JSON value with current date and time.

Value is in GMT/UTC.
e.g. { "$date" : "2023-03-09T11:39:34Z" }

MongoClientMBS.Time(SecondsSince1970 as Double) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MongoDB MBS MongoDB Plugin 23.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Create a new JSON value with given timestamp.

Please pass time as seconds since 1970 and in UTC time zone.

e.g. { "$date" : "2023-03-09T11:39:34Z" }

The items on this page are in the following plugins: MBS MongoDB Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...