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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 492 General Q & A
- 696 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 79 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions