Platforms to show: All Mac Windows Linux Cross-Platform

MongoStreamMBS class

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 generic streaming IO abstraction based on a struct of pointers interface.
Example
Var GridFS As MongoGridFSMBS = Client.GridFS("test", "fs")

// test uploading a file
Var options As New MongoGridFSFileOptionsMBS
options.FileName = "test.pdf"
options.ContentType = "application/pdf"

Var stream As MongoStreamMBS = MongoStreamMBS.NewStreamFromPath("/Users/cs/Desktop/Installation.pdf")
Var file As MongoGridFSFileMBS = GridFS.CreateFileFromStream(stream, options)

file.FileName = "other.pdf"
file.Save

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

  • 3 properties
  • 9 methods
    • method Close
    • method Constructor   Private
    • method Flush
    • method Read(ByteCount as Integer, MinBytes as Integer = -1) as String
    • method ReadAll as String
    • method ReadAllMemory as MemoryBlock
    • method ReadMemory(ByteCount as Integer, MinBytes as Integer = -1) as MemoryBlock
    • method Write(Data as MemoryBlock) as Integer
    • method Write(Data as String) as Integer
  • 2 shared methods

This class has no sub classes.

Blog Entries

Release notes

Some methods using this class:

Some examples using this class:

Some related classes:


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


MongoSSLOptionsMBS   -   MongoURIMBS


The biggest plugin in space...