Skip to main content
nicholasf4944
Participating Frequently
May 20, 2024
Solved

Web API not decoding base 64 document

  • May 20, 2024
  • 2 replies
  • 1 view

Hello, 

I am running into an issue when using the Convert binary request body to Appian document feature of Web APIs.

The file is being placed into the document folder I have specified correctly as well as maintaining the correct name and extension. 

The content of the file is not being decoded from Base64.

When I download the file from the document folder, the contents are the Base64 string that I passed into the Web API.

Any help would be greatly appreciated!

Nick

    Best answer by stefanhelzle0001

    Binary is not the same as Base64. Appian now thinks that your base64 encoded file is the actual binary content and stores it for you.

    I am not sure Appian supports base64 encoded files in the body. Can you change that to a binary upload?

    2 replies

    stefanhelzle0001
    Brainy
    May 21, 2024

    Binary is not the same as Base64. Appian now thinks that your base64 encoded file is the actual binary content and stores it for you.

    I am not sure Appian supports base64 encoded files in the body. Can you change that to a binary upload?

    nicholasf4944
    Participating Frequently
    May 21, 2024

    Hi Stefan, 

    You are correct, changing to binary upload resolved the issue!

    Thank you, 

    Nick