Is there a bug with programmatically downloading a document not completely sign?
Thursday, June 9, 2016 at 06:03amThis works (after unzipping the file)
byte[] bytes = eslClient.PackageService.DownloadZippedDocuments(packageId);
using (Stream file = File.OpenWrite(DocumentName+".zip" ))
{
file.Write(bytes, 0, bytes.Length);
}
This creates a corrupt document
byte[] bytes= eslClient.PackageService.DownloadDocument(packageId, docpackage.Documents[0].Id);
using (Stream file = File.OpenWrite(DocumentName+".pdf" ))
{
file.Write(bytes, 0, bytes.Length);
}
Note: You can use the UI to download the document successfully
Thanks
Jim
Reply to: Is there a bug with programmatically downloading a document not completely sign?
Thursday, June 9, 2016 at 08:33ambyte[] bytes= eslClient.PackageService.DownloadDocument(packageId, docpackage.Documents[0].Id); using (Stream file = File.OpenWrite(DocumentName+â€.pdf†)) { file.Write(bytes, 0, bytes.Length); }The pdf document I got was not corrupted. Can you try the following sample code and see if it works?Reply to: Is there a bug with programmatically downloading a document not completely sign?
Tuesday, June 14, 2016 at 06:17amReply to: Is there a bug with programmatically downloading a document not completely sign?
Friday, June 17, 2016 at 03:47am