PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of mongoGridFSFileInfo variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
mongoGridFSFileInfo (Type of variable)
In french: mongoGridFSInfoFichier
The mongoGridFSFileInfo type is used to find out the advanced characteristics of a file found in a MongoDB database. The characteristics of this file are returned by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
arrFileList is array of mongoGridFSFileInfo
 
arrFileList = MongoGridFSListFile(CntMDB..Database["CRM"])
FOR EACH File OF arrFileList
// Process the file
Trace(File..Name)
END
Remarks

Properties specific to the description of 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 available in read-only.
DateDateTimeCreation date of file in UTC format.

This property is available in read-only.
IDVariantFile identifier.

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

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

This property is available in read-only.
NameCharacter stringFile name.

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

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

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

This property is available in read-only.

Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
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