M-Files API 23.11.13135.0
GetThumbnailAsBytes Method
VaultObjectOperations Object : GetThumbnailAsBytes Method
When True M-Files is allowed to return the default image representing the file type of the requested file. This may happen if M-Files cannot generate thumbnail representing the real content of the requested file.
Description
Gets the thumbnail for the specified object in PNG format.
Syntax
Visual Basic
Public Function GetThumbnailAsBytes( _
   ByVal ObjVer As ObjVer, _
   ByVal FileVer As FileVer, _
   ByVal Width As Long, _
   ByVal Height As Long, _
   ByVal GetFileIconThumbnailIfRealThumbnailNotAvailable As Boolean _
) As Byte()
Parameters
ObjVer
FileVer
Width
Height
GetFileIconThumbnailIfRealThumbnailNotAvailable
When True M-Files is allowed to return the default image representing the file type of the requested file. This may happen if M-Files cannot generate thumbnail representing the real content of the requested file.
Remarks
This method is available only if M-Files API is used in the server interface mode.
See Also

VaultObjectOperations Object  | VaultObjectOperations Members