Base64 for FileData in Rest?

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]

Sign In or Register to comment.