Quantcast
Channel: Metastorm BPM forums
Viewing all articles
Browse latest Browse all 67

ECL.WS help - postAttachment

$
0
0
Is there anything I'm missing here, or is there something special that needs to be done to get postAttachment to work using ECL.WS

//THIS WORKS
//ListResult list = eclWS.GetList(eclServiceSession, ListContentsType.Blank, new ListFilter(), "", "", 1, 100);
//Console.Write(list.Data);
 
//THIS DOESN’T WORK – WHY?

FileStream inputFile = File.OpenRead("C:\\<somefile>");
BinaryReader reader = new BinaryReader(inputFile);

eclWS.PostAttachment(eclServiceSession, "<folderid>",EclWSSvc.AttachmentOwnerType.Folder, "C:\\<somefile>",reader.ReadBytes((int)(inputFile.Length)));
 

Forum: Metastorm BPM 9 Designer


Viewing all articles
Browse latest Browse all 67

Latest Images

Trending Articles



Latest Images