Receive files via API call

I would like to send a file to Decisions via a POST method. I have my flow set to be an API service and allowed POST methods with a File Data input, but the file comes through in the flow as random symbols.

Comments

  • The program sending the file to Decisions will need to Base64 encode the file before sending it to Decisions. The Base64 encoded string will need to be passed in as the contents of the file. Below is an example for the JSON body you will need to provide for a flow that is expecting a file input.

    {

    "outputtype": "Json",

    "file": {

    "Id": "StringValue",

    "FileName": "StringValue",

    "Contents": "AAA="

    }

    }

Sign In or Register to comment.