I am using
this example (https://blazor.syncfusion.com/documentation/document-editor/saving-document/#save-document-to-server)
to send a document to the backend.
SfDocumentEditor
editor = container.DocumentEditor;
string
base64Data = await
editor.SaveAsBlob(FormatType.Docx);
byte[]
data = Convert.FromBase64String(base64Data);
the SaveAsBlob line is throwing a nullreference
exception. I have verified that the editor is not null. I am using the latest
version 19.1.0.54
Urgent Please
After updating to Package Version 19.1.0.56 facing this Task Canceled Exception , I have also tested it with latest package version
Hi Adnan,
We tried to reproduce the reported issue at our end, But we couldn’t
Please find the sample from the below link.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/DocumentEditor_c9713bfb-265230761
Please do check whether you can able to reproduce the reported issue from the given sample link. If we misunderstood any of your requirement, please modify the sample and share us the modified sample to validate this issue further from our end.
Regards,
Ajithamarlin E
Hello, I'm encountering the same Task Cancelled exception when using FormatType.Html. It works correctly with FormatType.Docx. Using version 20.2.0.40.
The link you provided in your reply does not work for me, so I don't know what it is referring to.
Both SaveAsBlob and SaveAsBlobAsync give the same result. The task appears to "run" for a while, then eventually throws the exception.
Hi Charles,
SaveasBlobAsync API will not accept the parameter as FormatType.Html.
If your requirement convert the document to html format, please get the string using "FormatType.Docx". Then convert the document to HTml with the help of Synfusion DocIO.
Regards,
Suriya M.