FRENDS⁴ Common Components : Frends.Common.MongoDB.UploadToMongoGridFS

UploadToMongiGridFS uploads a document, whose body is provided "inline" in the Document -input variable, to MongoDB GridFS. Document specifies the name of the document - essentially a free-form "name" for the data. The document can be in any format (JSON, XML, text...), as it will be converted to byte chunks before being uploaded to GridFS.

If you want to upload directly from a file, use Frends.Common.MongoDB.UploadFileToMongoGridFS

Input Parameters

  • Mongo database connection information
    • ServerAddress (string)
    • ServerPort (string)
    • Database (string)
    • CollectionName (string)
    • Username (string)
    • Password (string)
  • Document (string)
  • Filename (string)

Output Result

A string with the GridFS ID of the uploaded document


Known issues

  • None