ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo files
  • Properties specific to mongoGridFSFileInfo variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
Example
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 nameType usedEffect
AliasArray of stringsArray of file alias names.

This property is read-only.
ChunkSizeIntegerSize of file chunks.

This property is read-only.
ContentTypeCharacter stringType of content in MIME format.

This property is read-only.
DateDateTimeCreation date of file in UTC format.

This property is read-only.
IDVariantFile identifier.

This property is read-only.
Md5Character stringHash key (md5) pre-calculated on the file content.

This property is read-only.
MetadataVariantAdditional data stored with the file.

This property is read-only.
NameCharacter stringFile name.

This property is read-only.
SizeIntegerFile size (in bytes).

This property is read-only.
Related Examples:
Native access to MongoDB 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.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/23/2023

Send a report | Local help