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

UploadFileToMongoGridFS uploads a single file to GridFS. The FilePath -parameter must contain the absolute, full path to a file on the local file system. The component streams the file into GridFS. The document can be in any format (JSON, XML, text...), as it will be converted to byte chunks before being uploaded to GridFS.

Input Parameters

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

Output Result

A string with the GridFS ID of the uploaded document


Known issues

  • None