Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过.NET API将文件上载到Documentum_.net_Sharepoint_Documentum - Fatal编程技术网

通过.NET API将文件上载到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

我希望通过.NET API将文件从SharePoint上载到documentum,并寻找可能的选项

我遇到了以下解决方案:

  • 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)。