PDF Retrieval
Comments
-
Hi Support,
I currently have a working API call in decisions bringing in PDF byte data, however the output to this call is a string and I have been unable to retrieve the PDF file from this in a document viewer with an option to download. Could you advise please?
Thanks in advance.
-
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]Hi Lee, [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]In your API Rest Service reference, You will need to deselect the Output Raw Value option, and select the Service Return Data Type of Binary. [/font][/color]
[color=#222222]
[/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]This will allow the API call to pass data through as binary instead of a string, allowing Decisions to handle the data correctly. [/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]A filename for file data will appear, ensure to add the extension .pdf to your filename. [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color][color=rgb(127, 140, 141)][font=Roboto]"[img]att3[/img]"[/font][/color]
[color=#7f8c8d]
[/color]
[color=rgb(127, 140, 141)][font=Roboto] "[img]att2[/img]"[/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]A form can be added to contain your document viewer allowing the user to view the PDF within the form. With a button to allow the option to download it locally. [/font][/color]
[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color][color=rgb(127, 140, 141)][font=Roboto]"[img]att1[/img]"[/font][/color][color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]
[/font][/color]
Details of using document viewers can be found here: https://documentation.decisions.com/v6/docs/document-viewer-form[color=rgb(34, 34, 34)][font=Arial, Helvetica, sans-serif]I hope this helps. [/font][/color]
[i]edited by tim@decisions.com on 1/13/2020[/i]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions