当我试图发送文档时,将生成一个错误。调用CreateEnvelope:{"errorCode":"NO_DOCUMENT_RECEIVED",“消息”时出错:“文档元素没有包含编码的文档,或者编码有问题。请求中没有找到任何文档。”}
我已经在网上搜索过了,但是我什么也找不到,有人能帮我吗?
发布于 2022-10-04 20:29:57
您可以找到如何使用Base64编码将文档字节传递给使用C# eSignature SDK的eSignature REST的示例。
以下是相关的C#代码:
// Create document objects, one per document
Document doc1 = new Document();
string b64 = Convert.ToBase64String(Document1(signerEmail, signerName, ccEmail, ccName));
doc1.DocumentBase64 = b64;
doc1.Name = "Order acknowledgement"; // can be different from actual file name
doc1.FileExtension = "html"; // Source data format. Signed docs are always pdf.
doc1.DocumentId = "1"; // a label used to reference the dochttps://stackoverflow.com/questions/73952679
复制相似问题