|
|
|
|
- Properties specific to mongoGridFSFileInfo variables
mongoGridFSFileInfo (Type of variable) In french: mongoGridFSInfoFichier
The mongoGridFSFileInfo type is used to find out the advanced characteristics of a file in a MongoDB database. The characteristics of this file are returned by several WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. arrFileList is array of mongoGridFSFileInfo arrFileList = MongoGridFSListFile(CntMDB.Database["CRM"]) FOR EACH File OF arrFileList // Process the file Trace(Queue.Name) END
Remarks Properties specific to mongoGridFSFileInfo variables The following properties can be used to handle the file information: | | | Property name | Type used | Effect |
---|
Alias | Array of strings | Array of file alias names.
This property is read-only. | ChunkSize | Integer | Size of file chunks.
This property is read-only. | ContentType | Character string | Type of content in MIME format.
This property is read-only. | Date | DateTime | Creation date of file in UTC format.
This property is read-only. | ID | Variant | File identifier.
This property is read-only. | Md5 | Character string | Hash key (md5) pre-calculated on the file content.
This property is read-only. | Metadata | Variant | Additional data stored with the file.
This property is read-only. | Name | Character string | File name.
This property is read-only. | Size | Integer | File size (in bytes).
This property is read-only. |
Related Examples:
|
Unit examples (WINDEV): Native access to MongoDB
[ + ] This example shows how to use the main functions of native access to MongoDB databases: adding data, reading (searching), modifying and deleting data in the database. The example also shows functions for saving files in the MongoDB GridFS data system.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|