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?
July 22Created
July 22Last Updated
3 years agoLast Reply
3Replies
44Views
3Users
0Likes
0Links
HanyuChen | Posts: 10
Reply to: Download document filebytes
Thursday, July 22, 2021 at 05:34pm
0
votes
Hi 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:
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
Duo Liang OneSpan Evangelism and Partner Integrations Developer