예제 #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));
        }
예제 #2
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);
 }