M-Files API 22.6.11519.0
UploadFileBlock_32bit Method
VaultObjectFileOperations Object : UploadFileBlock_32bit Method
The identifier of the upload operation returned by UploadFileBlockBegin_32bit.
The total size of the file as a 32-bit integer.
The byte offset from the beginning of the file.
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 (uses 32-bit arguments).
Syntax
Visual Basic
Public Sub UploadFileBlock_32bit( _
   ByVal UploadID As Long, _
   ByVal TotalSizeInBytes As Long, _
   ByVal Offset As Long, _
   ByVal Block() As Byte _
) 
Parameters
UploadID
The identifier of the upload operation returned by UploadFileBlockBegin_32bit.
TotalSizeInBytes
The total size of the file as a 32-bit integer.
Offset
The byte offset from the beginning of the file.
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

The UploadFileBlock Method needs to be used for files of over 2 GB in size.

This method version is intended to be used in development environments with no support for 64-bit data types.

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

See Also

VaultObjectFileOperations Object  | VaultObjectFileOperations Members