通过.NET API将文件上载到Documentum
我希望通过.NET API将文件从SharePoint上载到documentum,并寻找可能的选项 我遇到了以下解决方案:通过.NET API将文件上载到Documentum,.net,sharepoint,documentum,.net,Sharepoint,Documentum,我希望通过.NET API将文件从SharePoint上载到documentum,并寻找可能的选项 我遇到了以下解决方案: Documentum的互操作程序集(我听说它们将被弃用) codeplex溶液 有人能告诉我首选的方法及其相关协议(HTTP、TCP)吗?我不熟悉Documentum,但理论上,如果您可以执行HttpRequest(PUT操作),您可以将文件上载到任何系统。下面是一个例子: string localFilename = "<path to file you wis
- Documentum的互操作程序集(我听说它们将被弃用)
- codeplex溶液
有人能告诉我首选的方法及其相关协议(HTTP、TCP)吗?我不熟悉Documentum,但理论上,如果您可以执行HttpRequest(PUT操作),您可以将文件上载到任何系统。下面是一个例子:
string localFilename = "<path to file you wish to upload>";
// ex. c:\temp\myFileToUpload.doc
FileStream myStream = new FileStream(localFilename, FileMode.Open, FileAccess.Read);
BinaryReader myReader = new BinaryReader(myStream);
byte[] bytesToOutput = reader.ReadBytes((int)myStream.Length);
myReader.Close();
myStream.Close();
using (WebClient client = new WebClient())
{
client.Credentials = System.Net.CredentialCache.DefaultCredentials;
client.UploadData(uploadPath, "PUT", bytesToOutput);
}
string localFilename=”“;
//例如c:\temp\myFileToUpload.doc
FileStream myStream=newfilestream(localFilename,FileMode.Open,FileAccess.Read);
BinaryReader myReader=新的BinaryReader(myStream);
byte[]bytestooput=reader.ReadBytes((int)myStream.Length);
myReader.Close();
myStream.Close();
使用(WebClient=newWebClient())
{
client.Credentials=System.Net.CredentialCache.DefaultCredentials;
UploadData(uploadPath,“PUT”,bytesToOutput);
}
Documentum的哪个版本?您也可以尝试基于HTTP SOAP的DoCuttoMeFunm Services(DFS)。