Method GetJobAttachment
GetJobAttachment(JobID, string)
Gets the contents of the attachment with name attachmentName
for job with ID jobID
.
public byte[] GetJobAttachment(JobID jobID, string attachmentName)
Parameters
jobID
JobIDThe ID of the job to find the attachment for.
attachmentName
stringThe name of the attachment to find.
Returns
- byte[]
The contents of the attachment.
Remarks
Please note the following regarding job attachments:
- The size limit of job attachments depends on the Documents.MaxSize setting in the file MaintenanceSettings.xml. By default, this is 20 MB.
- Deleting a job will remove all attachments of this job from the system. These cannot be recovered afterwards.
- Deleting job attachments requires the Jobs > UI available and Jobs > Delete user permissions.
- Job attachments are backed up with the backup option All documents located on this DMA.
- Job attachments are synced in a cluster.
Exceptions
- ArgumentNullException
jobID
orattachmentName
is null.- DataMinerCOMException
If the attachment could not be found.
- DataMinerException
The inner exception will be an ArgumentException if the Job could not be found.
- DataMinerSecurityException
The user does not have read permissions for the specified job.