Uploading new files using eB SDK

Hi,

 

Please assist. I need to be able to upload a new file to a newly created document in eB using C#.

I noticed the eB.ContentData.File class. Can I use this?

If possible please provide some code snippets or a sample C# project solution.

Regards

JS

Parents Reply
  • Jemaine,

    Please check the below Snippet. I hope it would be of any help:

    eB.Data.Document eBDoc = new eB.Data.Document(_sesdocID);
    eBDoc.Retrieve("Header;Files");
    eB.Data.File nf = new eB.Data.File(_ses);

    eB.ContentData.File cf = new eB.ContentData.File(nftxtFileNameeB.ContentData.File.FileOperation.Upload);

    nf.ContentData cf;
    nf.Document eBDoc;

    nf.Save();
    eBDoc.Save();

    Regards,
    Manav B.



    Answer Verified By: Jemaine Shezi 

Children