CopyFile Method
This function copies the binary contents of a file in the filestore. The Vault meta data, such as Name and Version Number, are not copied.
Syntax
public System.byte[] CopyFile(
System.byte[] downloadTicket,
System.string extension,
System.bool allowSync,
PropWriteRequests writeReqs,
out PropWriteResults writeResults
)Public Function CopyFile( _
ByVal downloadTicket() As System.Byte, _
ByVal extension As System.String, _
ByVal allowSync As System.Boolean, _
ByVal writeReqs As PropWriteRequests, _
ByRef writeResults As PropWriteResults _
) As System.Byte()Parameters
| Name | Description |
|---|---|
| downloadTicket | The identifier to the file you want to copy. Call DocumentService.GetDownloadTicketsByFileIds to get a download ticket. |
| extension | The file extension as shown in the System Property "File Extension", like IPT, IAM, DWG. |
| 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. |
| writeReqs | A set of properties to update within the file. |
| writeResults | The result of the property updates. |
Return Value
Returns byte array of the copied file.