M-Files API 23.11.13135.0
DownloadFileInBlocks_ReadBlock_32bit Method
VaultObjectFileOperations Object : DownloadFileInBlocks_ReadBlock_32bit Method
The identifier of the download operation returned by DownloadFileInBlocks_Begin_32bit.
The number of bytes to be read. For the download session to be closed, the combined size of the blocks must exceed the actual size of the file.  The block size should not be more than 4MB (4,194,304). Before M-Files 23.3, using a block size of larger than 4MB may cause unexpected behavior, including exceptions, depending upon the underlying storage. From M-Files 23.3, M-Files will throw an exception if the block size is larger than 4MB.
The byte offset from the beginning of the file.
Description
Retrieves a specific block of the specified file from the server (uses 32-bit arguments).
Syntax
Visual Basic
Public Function DownloadFileInBlocks_ReadBlock_32bit( _
   ByVal DownloadID As Long, _
   ByVal BlockSize As Long, _
   ByVal Offset As Long _
) As Byte()
Parameters
DownloadID
The identifier of the download operation returned by DownloadFileInBlocks_Begin_32bit.
BlockSize
The number of bytes to be read. For the download session to be closed, the combined size of the blocks must exceed the actual size of the file.  The block size should not be more than 4MB (4,194,304). Before M-Files 23.3, using a block size of larger than 4MB may cause unexpected behavior, including exceptions, depending upon the underlying storage. From M-Files 23.3, M-Files will throw an exception if the block size is larger than 4MB.
Offset
The byte offset from the beginning of the file.
Remarks
See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members