Uploading large file attachment to comment using Gemini API
Hi,
I am using gemini api and Im having a problem when it comes to large files. The api always timeout if Im uploading a large file. Below is the code that I used. Hope you can help me. Thanks.
m_smProxyManager = new CounterSoft.Gemini.WebServices.ServiceManager("url", "user", "password", "apikey", false);
var fileEn = new FileEN();
fileEn.Encoded = true;
fileEn.CommentID = 0;
fileEn.ContentLength = int.Parse(contentlength);
fileEn.ContentType = contenttype;
fileEn.IssueID = int.Parse(newissueid);
fileEn.ProjectID = int.Parse(newprojecid);
fileEn.FileName = thefilename;
fileEn.FileData = filecontent;
fileEn.TimeStamp = StrToByteArray(tstamps);
fileEn.DateCreated = DateTime.Parse(created);
m_smProxyManager.IssuesService.CreateAttachment(int.Parse(newissueid), fileEn);
Lance Garcia
· 1 |
|
Monday, February 6, 2012, 6:51:03 AM |