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.3K All Categories
- 70 General
- 11 Training
- 206 Installation / Setup
- 1.1K Flows
- 109 Rules
- 268 Administration
- 212 Portal
- 496 General Q & A
- 706 Forms
- 338 Reports
- 3 Designer Extensions
- 48 Example Flows
- 56 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 184 Pages
- 5 Process Mining
- New Features
- 182 Datastructures
- 69 Repository
- 228 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 57 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 130 Lunch And Learn Questions