Meyn.TestLink.TestLink.UploadTestSuiteAttachment C# (CSharp) Method

UploadTestSuiteAttachment() public method

upload an attachment for a test case
public UploadTestSuiteAttachment ( int testsuiteid, string filename, string fileType, byte content, string title, string description ) : AttachmentRequestResponse
testsuiteid int
filename string
fileType string
content byte
title string
description string
return AttachmentRequestResponse
        public AttachmentRequestResponse UploadTestSuiteAttachment(int testsuiteid, string filename, string fileType, byte[] content, string title, string description)
        {
            string base64String;
            try {
                base64String = Convert.ToBase64String(content, 0, content.Length);
            } catch (ArgumentNullException) {
                // System.Console.WriteLine("Binary data array is null.");
                base64String = "";
            }
            stateIsValid();
            object response = proxy.uploadTestSuiteAttachment(devkey, testsuiteid, filename, fileType, base64String, title, description);
            handleErrorMessage(response);
            AttachmentRequestResponse r = new AttachmentRequestResponse(response as XmlRpcStruct);
            return r;
        }
        #endregion