PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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.
Note: See Declaring a variable for more details.
Example
arrFileList is array of MongoGridFSFileInfo

arrFileList = MongoGridFSListFile(CntMDB..Database["CRM"])
FOR EACH File OF arrFileList
// Processes 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.
FileNameCharacter stringName of file.

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.

Note: 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 required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment