Click or drag to resize

RepositoryControllerGetFileDataChunk Method

Return data chunk from specified file

Namespace:  FileHold.DocumentRepository
Assembly:  FileHold.DocumentRepository (in FileHold.DocumentRepository.dll) Version: 17.0.0.0
Syntax
C#
public int GetFileDataChunk(
	Guid token,
	ref byte[] buffer,
	long position,
	int chunkSize
)

Parameters

token
Type: SystemGuid
id of the file to get data from
buffer
Type: SystemByte
buffer for chunk
position
Type: SystemInt64
specifies starting position in the file from which data will be read
chunkSize
Type: SystemInt32
size of the chunk

Return Value

Type: Int32
Number of bytes read.
Remarks
This method is obsolete, use DownloadFileDataChunk instead(). 1. input – id of the file to get data from; specifies starting position in the file from which data will be read; size of the chunk 2. Get [ChunkSize] number of bytes from the file from [Position] position 3. return chunk
See Also