M-Files API 22.6.11519.0
UploadFileBlock Method
VaultObjectFileOperations Object : UploadFileBlock Method
The identifier of the upload operation returned by UploadFileBlockBegin.
The total size of the file as a 64-bit integer.
The byte offset from the beginning of the file as a 64-bit integer.
The size of the block to be uploaded in bytes. The minimum size is 1 KB and the maximum size is 4 MB. For optimal performance always use multiples of 4096 bytes, the last block being an exception to this.
Description
Uploads a block of the specified file.
Syntax
Visual Basic
Public Sub UploadFileBlock( _
   ByVal UploadID As Long, _
   ByVal TotalSizeInBytes As Unknown, _
   ByVal Offset As Unknown, _
   ByVal Block() As Byte _
) 
Parameters
UploadID
The identifier of the upload operation returned by UploadFileBlockBegin.
TotalSizeInBytes
The total size of the file as a 64-bit integer.
Offset
The byte offset from the beginning of the file as a 64-bit integer.
Block
The size of the block to be uploaded in bytes. The minimum size is 1 KB and the maximum size is 4 MB. For optimal performance always use multiples of 4096 bytes, the last block being an exception to this.
Remarks

This method is available only if M-Files API is used in the server interface mode.

Note

This method requires support for 64-bit data types. Use UploadFileBlock_32bit in development environments that do not support these data types such as VBScript.

Development environment should not be confused with the operating system: This method can be used in 32-bit operating systems.

See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members