Exemple #1
0
        /// <summary>
        /// Returns the contents of the given incident attachment.
        /// </summary>
        /// <param name="incidentId"></param>
        /// <param name="fileId"></param>
        /// <returns></returns>
        public byte[] getFileData(int incidentId, int fileId)
        {
            Incident incident = new Incident();

            incident.ID             = new ID(); // incident id
            incident.ID.id          = incidentId;
            incident.ID.idSpecified = true;
            FileAttachmentCommon file = new FileAttachmentCommon();

            file.ID             = new ID(); // file id
            file.ID.id          = fileId;
            file.ID.idSpecified = true;
            return(_rnowClient.GetFileData(_rnowClientInfoHeader, incident, file.ID, false));
        }
 /// <summary>
 /// Returns the contents of the given incident attachment.
 /// </summary>
 /// <param name="incidentId"></param>
 /// <param name="fileId"></param>
 /// <returns></returns>
 public byte[] getFileData(int incidentId, int fileId)
 {
     Incident incident = new Incident();
     incident.ID = new ID(); // incident id
     incident.ID.id = incidentId;
     incident.ID.idSpecified = true;
     FileAttachmentCommon file = new FileAttachmentCommon();
     file.ID = new ID(); // file id
     file.ID.id = fileId;
     file.ID.idSpecified = true;
     return _rnowClient.GetFileData(_rnowClientInfoHeader, incident , file.ID, false);
 }