Platforms to show: All Mac Windows Linux Cross-Platform

MongoGridFSFileMBS class   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
class MongoDB MBS MongoDB Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This class provides a MongoDB GridFS file abstraction.
Example
Var GridFS As MongoGridFSMBS = Client.GridFS("test", "fs")

Var options As New MongoGridFSFileOptionsMBS
options.FileName = "test.txt"
options.ContentType = "text/plain"

Var file As MongoGridFSFileMBS = GridFS.CreateFile(options)
Var BytesWritten As Integer = file.Write("Hello World")
file.Save

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Seek Modes

Constant Value Description
SeekCurrent 1 Position from current position.
SeekEnd 2 Position from end of file.
SeekSet 0 Position from start of file.

This class has no sub classes.

Blog Entries

Release notes

  • Version 25.2
    • Added MongoStreamMBS, MongoGridFSFileMBS, MongoGridFSFileListMBS, MongoGridFSFileOptionsMBS and MongoGridFSMBS classes.

Some methods using this class:

Some related classes:


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


MongoGridFSFileListMBS   -   MongoGridFSFileOptionsMBS


The biggest plugin in space...