CobaltCore assembly

I am trying to implement a custom Wopi host in C # that can handle the Cobalt protocol using the CobaltCore assembly.

But I did not find any documentation for the CobaltCore.dll Object Browser is a bit useful.

Please provide some details if anyone had a similar problem. How should I use Cobalt to decrypt messages?

+2
source share
3 answers

To implement text editing, go here:

Can I use Office Web Apps Server .

// fsshttpb payload, basically decode from base64 encoded

byte[] test1 = System.Convert.FromBase64String("DAALAJzPKfM5lAabBgIAAO4CAABaBBYADW1zd29yZAd3YWN6AggA1RyhD3cBFgIGAAMFABoEIAAL3Do4buY4RJXm4575cgEiigICAAALAawCAFUDAQ==");

// create an atom object from the fsshttp input
AtomFromByteArray atomRequest = new AtomFromByteArray(test1);

RequestBatch requestBatch = new RequestBatch();
requestBatch.DeserializeInputFromProtocol(atomRequest);

// now you can inspect requestBatch to view the decoded objects

edit:

CobaltCore. WOPI/FSSHTTP .

https://github.com/thebitllc/WopiBasicEditor

+1

, , Julia, " can not" , .. , OWA , OWA.   C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS , ,

    &access_token=1&access_token_ttl=0 

wopi url .

, OWA . cfi.Version

FileInfo info = new FileInfo("C:\\WOPI OWA WORD EDITOR\\OWA_Source_Documents\\" + fi.Name);
cfi.Version = info.LastWriteTimeUtc.ToString("s");

, .

Word, , , , .

 cfi.SupportsCoauth = true; // all three (3) needed to see the edit in browser menu in view mode .
 cfi.SupportsCobalt = true; // all three (3) needed to see the edit in browser menu in view mode .
 cfi.SupportsFolders = true; // all three (3) needed to see the edit in browser menu in view mode .
 cfi.SupportsLocks = true;
 cfi.SupportsScenarioLinks = false;
 cfi.SupportsSecureStore = true;
 cfi.SupportsUpdate = true;

, , , false.

cfi.WebEditingDisabled = false;

+1

thebitllc .

 System.IO.FileStream _FileStream = new System.IO.FileStream("C:\\WOPI OWA WORD EDITOR\\OWA_Updated_Documents\\output.docx", System.IO.FileMode.Create, System.IO.FileAccess.Write);
GenericFdaStream myCobaltStream =  new GenericFda(cobaltFile.CobaltEndpoint, null).GetContentStream();
myCobaltStream.CopyTo(_FileStream);
_FileStream.Close(); 
+1
source

All Articles