Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to add a file to Vault Professional 2014 using C# as development language. This is my below section of code. Though the code does not produce any error but still i am getting exception SOAP Exception 8000.
Can some body please suggest me where am i going wrong..
using (FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read))
{
ByteArray fileData = new ByteArray();
fileData.Bytes = new byte[stream.Length];
stream.Read(fileData.Bytes, 0, fileData.Bytes.Length);
mgr.DocumentService.AddUploadedFile(Folder2,System.IO.Path.GetFileName(filePath), "", System.IO.File.GetLastWriteTime(filePath), null, null, FileClassification.None, false, fileData);
}
Senior Software Engineer
Solved! Go to Solution.

