DownloadFilePart Method
Downloads the binary content of a file.
Required Permissions
AllowAnySyntax
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.StreamParameters
| Name | Description |
|---|---|
| downloadTicket | The download ticket that allows access to the file contents. |
| firstByte | The index of the first byte to download. A value of 0 indicates the first byte in the file. |
| lastByte | The 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. |
| allowSync | In 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.