Autodesk Vault ProfessionalVault API

DownloadFilePart Method

Autodesk.Connectivity.WebServicesFilestoreService

Downloads the binary content of a file.

Required Permissions

AllowAny

Syntax

public System.IO.Stream DownloadFilePart(
   System.byte[] downloadTicket,
   System.long firstByte,
   System.long lastByte,
   System.bool allowSync
)
Public Function DownloadFilePart( _
   ByVal downloadTicket() As System.Byte, _
   ByVal firstByte As System.Long, _
   ByVal lastByte As System.Long, _
   ByVal allowSync As System.Boolean _
) As System.IO.Stream

Parameters

NameDescription
downloadTicketThe download ticket that allows access to the file contents.
firstByteThe index of the first byte to download. A value of 0 indicates the first byte in the file.
lastByteThe index of the last byte to download. The byte at the index is part of the download. For example, if firstByte is 0 and lastByte is 100, there will be 101 bytes downloaded.
allowSyncIn a multi-site environment, this field tells if the file should be synched to the local site. If true and the file is not on the local site, it will be moved to the local site. If false and the file is not on the local site, an error will be thrown.

Return Value

The a stream of the contents the file part.

See Also