Skip to main content
nicholasf4944
Participating Frequently
May 20, 2024 8:19 PM UTC
Solved

Web API not decoding base 64 document

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

    stefanhelzle0001
    Brainy
    May 21, 2024 6:20 AM UTC

    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 6:20 AM UTC

    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 12:57 PM UTC

    Hi Stefan, 

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

    Thank you, 

    Nick