Base64 for FileData in Rest?
Comments
-
Hi Decisions,
I am calling a flow with REST, but I was unsure if Base64 expected for the contents of my file data input. Is this true?
-
Yes, this is true. Base64 encodes the data within your contents and you should also have a string for the filetype with the extension name.
Edit: I realized I misinterpreted this question. For passing filedata as an input into a Flow called via REST, you will have to convert the byte array within the FileData into a string. This can be done with the [b]Convert Byte to Base64 String[/b] step.
With this string, you can transfer this via REST and, once successfully transferred, you can convert the string back into the byte array with the [b]Convert String to Byte Array[/b] pre-built Flow. This will contain the all the information within the original FileData.
[i]edited by amber.blanton@decisions.com on 12/20/2021[/i]
Howdy, Stranger!
Categories
- 4.4K All Categories
- 78 General
- 13 Training
- 209 Installation / Setup
- 1.1K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 709 Forms
- 345 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 186 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 229 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions