Download document filebytes
Thursday, July 22, 2021 at 03:51pmGuys,
When creating a package we have to upload the file via ByteArrayContent. Is there any way to download a document's byte array after it has been uploaded?
Guys,
When creating a package we have to upload the file via ByteArrayContent. Is there any way to download a document's byte array after it has been uploaded?
Reply to: Download document filebytes
Thursday, July 22, 2021 at 05:34pmHi Ryan,
Do you mean to download the original uploaded document? API/SDK does expose a function to download original document, but it's a flattened version and all form fields will be removed:
eslClient.PackageService.DownloadOriginalDocument(new PackageId("package_id"),"document_id");
Duo
Reply to: Hi Ryan, Do you mean to…
Friday, July 23, 2021 at 07:00amDuo,
That might actually help. Can you tell me what the return type is? I see the http request in the features but doesn't say what is returned.
Reply to: Duo, That might actually…
Monday, July 26, 2021 at 08:57amHi Ryan,
This function exactly returns a byte array:
PackageService.cs
public byte[] DownloadOriginalDocument(PackageId packageId, String documentId)
Duo