本文介绍了CobaltCore 组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 C# 中实现一个自定义的 Wopi 主机,它可以使用 CobaltCore 程序集处理 Cobalt 协议.

I try to implement a custom Wopi host in C# that can handle the Cobalt Protocol using the CobaltCore assembly.

但是我没有找到 CobaltCore.dll 的任何文档对象浏览器有点帮助..

But I didn't found any documentation for CobaltCore.dllObject browser is a little helpful..

如果有人遇到类似问题,请提供一些详细信息.我应该如何使用 Cobalt 来破译这些消息?

Please provide some details if someone had similar issue.How I should use Cobalt to decipher the messages?

推荐答案

有关文字编辑的实现,请访问:

For word editing implementation go here:

我可以只使用 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

这是使用 CobaltCore 的示例实现.几乎是我在一个项目中对本网站上关于 WOPI/FSSHTTP 的回答的组合.

Here is a sample implementation using CobaltCore. Pretty much a combination of my answers about WOPI/FSSHTTP on this website in one project.

https://github.com/thebitllc/WopiBasicEditor

这篇关于CobaltCore 组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 07:55