When I tried the exact same code as Webinar demo by Jason to upload files, on ECM there is just a placeholder for the file I uploaded, no actual file is found (size is 0 KB).
FileStream fileStream = new FileStream(fInfo.FullName, FileMode.Open, FileAccess.Read);
DocCon.FileAtts fileAtts = new DocCon.FileAtts();
fileAtts.FileName = "1_ " + fInfo.Name;
fileAtts.FileSize = fInfo.Length;
fileAtts.CreatedDate = DateTime.Now;
fileAtts.ModifiedDate = DateTime.Now;
DocCon.ContentServiceClient docConClient = new DocCon.ContentServiceClient();
string objID = docConClient.UploadContent(ref otAuthCon, contextId, fileAtts, fileStream);
fileStream.Close();
docConClient.Close();
I've checked otAuthCon, contextId, fileAtts, filStream and objID, they're all OK. The size inside fileStream is correct.
Any ideas to solve this problem?
Thanks,
Di