RepositoryControllerGetFileDataChunk Method

Return data chunk from specified file

Definition

Namespace: FileHold.DocumentRepository
Assembly: FileHold.DocumentRepository (in FileHold.DocumentRepository.dll) Version: 17.1.0.0
C#
[WebMethodAttribute(Description = "Return data chunk from specified file")]
public int GetFileDataChunk(
	Guid token,
	ref byte[] buffer,
	long position,
	int chunkSize
)

Parameters

token  Guid
id of the file to get data from
buffer  Byte
buffer for chunk
position  Int64
specifies starting position in the file from which data will be read
chunkSize  Int32
size of the chunk

Return Value

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